File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 5
5
# Will wait for a fix and print a message every second with the current location
6
6
# and other details.
7
7
import time
8
- import math
9
8
import board
10
9
import busio
11
10
85
84
print ("Latitude: {0:.6f} degrees" .format (gps .latitude ))
86
85
print ("Longitude: {0:.6f} degrees" .format (gps .longitude ))
87
86
print (
88
- "Precise Latitude: {:3.0f } degs, {:2.4f} mins" .format (
89
- math . floor ( gps .latitude_degrees ) , gps .latitude_minutes
87
+ "Precise Latitude: {} degs, {:2.4f} mins" .format (
88
+ gps .latitude_degrees , gps .latitude_minutes
90
89
)
91
90
)
92
91
print (
93
- "Precise Longitude: {:3.0f } degs, {:2.4f} mins" .format (
94
- math . floor ( gps .longitude_degrees ) , gps .longitude_minutes
92
+ "Precise Longitude: {} degs, {:2.4f} mins" .format (
93
+ gps .longitude_degrees , gps .longitude_minutes
95
94
)
96
95
)
97
96
print ("Fix quality: {}" .format (gps .fix_quality ))
You can’t perform that action at this time.
0 commit comments