Fix for BDS0,9 SQL insertion.
This commit is contained in:
parent
9efd480fe2
commit
822b05944b
@ -117,7 +117,7 @@ class modes_output_sql(modes_parse.modes_parse):
|
|||||||
elif subtype == 19:
|
elif subtype == 19:
|
||||||
subsubtype = (longdata >> 48) & 0x07
|
subsubtype = (longdata >> 48) & 0x07
|
||||||
if subsubtype == 0:
|
if subsubtype == 0:
|
||||||
[velocity, heading, vert_spd] = self.parseBDS09_0(shortdata, longdata)
|
[velocity, heading, vert_spd, turnrate] = self.parseBDS09_0(shortdata, longdata)
|
||||||
retstr = "INSERT INTO vectors (icao, seen, speed, heading, vertical) VALUES (" + "%i" % icao24 + ", datetime('now'), " + "%.0f" % velocity + ", " + "%.0f" % heading + ", " + "%.0f" % vert_spd + ")";
|
retstr = "INSERT INTO vectors (icao, seen, speed, heading, vertical) VALUES (" + "%i" % icao24 + ", datetime('now'), " + "%.0f" % velocity + ", " + "%.0f" % heading + ", " + "%.0f" % vert_spd + ")";
|
||||||
|
|
||||||
elif subsubtype == 1:
|
elif subsubtype == 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user