File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 33
44import time
55import board
6- import busio
76
87import adafruit_gps
98
@@ -87,21 +86,20 @@ def format_dop(dop):
8786 print (f" PDOP (Position Dilution of Precision): { format_dop (gps .pdop )} " )
8887 print (f" HDOP (Horizontal Dilution of Precision): { format_dop (gps .hdop )} " )
8988 print (f" VDOP (Vertical Dilution of Precision): { format_dop (gps .vdop )} " )
90- print (f "Satellites used for fix:" )
89+ print ("Satellites used for fix:" )
9190 for s in gps .sat_prns :
9291 talker = talkers [s [0 :2 ]]
9392 number = s [2 :]
93+ print (f" { talker } -{ number } " , end = "" )
9494 if gps .sats is None :
95- print (f" { talker } - { number } - no info" )
95+ print (" - no info" )
9696 else :
9797 try :
9898 sat = gps .sats [s ]
9999 if sat is None :
100- print (f" { talker } - { number } - no info" )
100+ print (" - no info" )
101101 else :
102- print (
103- f" { talker } -{ number } Elevation:{ sat [1 ]} * Azimuth:{ sat [2 ]} * SNR:{ sat [3 ]} dB"
104- )
102+ print (f"Elevation:{ sat [1 ]} * Azimuth:{ sat [2 ]} * SNR:{ sat [3 ]} dB" )
105103 except KeyError :
106- print (f" { talker } - { number } - no info" )
104+ print (" - no info" )
107105 print ()
You can’t perform that action at this time.
0 commit comments