Tracker NONE implementiert und kleine Verbesserungen
This commit is contained in:
26
nmea0183.py
26
nmea0183.py
@@ -99,7 +99,6 @@ def GGA(boatdata, msg):
|
||||
|
||||
def GLL(boatdata, msg):
|
||||
# Position data: position fix, time of position fix, and status
|
||||
# UTC of position ignored
|
||||
if not msg.status == 'A':
|
||||
return
|
||||
lat_fac = 1 if msg.lat_dir == 'N' else -1
|
||||
@@ -341,7 +340,15 @@ def VBW(boatdata, msg):
|
||||
print("-> VBW")
|
||||
|
||||
def VHW(boatdata, msg):
|
||||
#print("-> VHW")
|
||||
# Heading und Geschwindigkeit durch das Wasser
|
||||
# Aktuelle Meßdaten von Sensoren
|
||||
# msg.heading_true # degrees decimal
|
||||
# msg.heading_magnetic degrees decimal
|
||||
# print("-> VHW")
|
||||
if msg.heading_true is not None:
|
||||
boatdata.setValue("HDT", float(msg.heading_true))
|
||||
if msg.heading_magnetic is not None:
|
||||
boatdata.setValue("HDM", float(msg.heading_magnetic))
|
||||
boatdata.setValue("STW", float(msg.water_speed_knots))
|
||||
|
||||
def VPW(boatdata, msg):
|
||||
@@ -350,19 +357,10 @@ def VPW(boatdata, msg):
|
||||
pass
|
||||
|
||||
def VTG(boatdata, msg):
|
||||
# Track made good and speed over ground
|
||||
"""
|
||||
(('True Track made good', 'true_track', <class 'float'>),
|
||||
('True Track made good symbol', 'true_track_sym'),
|
||||
('Magnetic Track made good', 'mag_track', <class 'decimal.Decimal'>),
|
||||
('Magnetic Track symbol', 'mag_track_sym'),
|
||||
('Speed over ground knots', 'spd_over_grnd_kts', <class 'decimal.Decimal'>),
|
||||
('Speed over ground symbol', 'spd_over_grnd_kts_sym'),
|
||||
('Speed over ground kmph', 'spd_over_grnd_kmph', <class 'float'>),
|
||||
('Speed over ground kmph symbol', 'spd_over_grnd_kmph_sym'),
|
||||
('FAA mode indicator', 'faa_mode'))
|
||||
['', 'T', '', 'M', '0.117', 'N', '0.216', 'K', 'A']
|
||||
$IIVTG,312.000000,T,,M,2.000000,N,3.704000,K,A*28
|
||||
Track made good and speed over ground
|
||||
Calculated from previous GPS positions
|
||||
Only true track is used at the moment. magnetic is ignored
|
||||
"""
|
||||
if msg.faa_mode != 'A':
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user