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