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 77import time
88import board
99import busio
10+ import math
1011
1112import adafruit_gps
1213
8485 print ("Latitude: {0:.6f} degrees" .format (gps .latitude ))
8586 print ("Longitude: {0:.6f} degrees" .format (gps .longitude ))
8687 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
8990 )
9091 )
9192 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
9495 )
9596 )
9697 print ("Fix quality: {}" .format (gps .fix_quality ))
You can’t perform that action at this time.
0 commit comments