mirror of
https://github.com/opentx/opentx.git
synced 2025-07-14 03:49:52 +03:00
Re #3043: added Air speed parser
This commit is contained in:
parent
09846ca917
commit
ef5746de11
1 changed files with 5 additions and 0 deletions
|
@ -51,12 +51,17 @@ def ParseSWR(packet, dataId, prim, appId, data, crc):
|
|||
print "packet: %s (%4d)" % (dump(packet), lineNumber) ,
|
||||
print " SWR: %d" % (data & 0xFF)
|
||||
|
||||
def ParseAirSpeed(packet, dataId, prim, appId, data, crc):
|
||||
print "packet: %s (%4d)" % (dump(packet), lineNumber) ,
|
||||
print " Aspd: %.1f m/s" % (data/10.0)
|
||||
|
||||
appIdParsers = (
|
||||
(0x0300, 0x030f, ParseFlVSS),
|
||||
(0xf101, 0xf101, ParseRSSI),
|
||||
(0xf102, 0xf103, ParseAdc),
|
||||
(0xf104, 0xf104, ParseBatt),
|
||||
(0xf105, 0xf105, ParseSWR),
|
||||
(0x0a00, 0x0a0f, ParseAirSpeed),
|
||||
)
|
||||
|
||||
def dump(data, maxLen = None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue