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 3
3
4
4
import time
5
5
import board
6
- import busio
7
6
8
7
import adafruit_gps
9
8
@@ -87,21 +86,20 @@ def format_dop(dop):
87
86
print (f" PDOP (Position Dilution of Precision): { format_dop (gps .pdop )} " )
88
87
print (f" HDOP (Horizontal Dilution of Precision): { format_dop (gps .hdop )} " )
89
88
print (f" VDOP (Vertical Dilution of Precision): { format_dop (gps .vdop )} " )
90
- print (f "Satellites used for fix:" )
89
+ print ("Satellites used for fix:" )
91
90
for s in gps .sat_prns :
92
91
talker = talkers [s [0 :2 ]]
93
92
number = s [2 :]
93
+ print (f" { talker } -{ number } " , end = "" )
94
94
if gps .sats is None :
95
- print (f" { talker } - { number } - no info" )
95
+ print (" - no info" )
96
96
else :
97
97
try :
98
98
sat = gps .sats [s ]
99
99
if sat is None :
100
- print (f" { talker } - { number } - no info" )
100
+ print (" - no info" )
101
101
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" )
105
103
except KeyError :
106
- print (f" { talker } - { number } - no info" )
104
+ print (" - no info" )
107
105
print ()
You can’t perform that action at this time.
0 commit comments