altosui: Handle old TeleDongle receiving kalman telemetry packets
authorKeith Packard <keithp@keithp.com>
Fri, 3 Jun 2011 06:16:30 +0000 (23:16 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 3 Jun 2011 06:16:30 +0000 (23:16 -0700)
commitdc0b49dcbaa2d0a69e002c151337b6e9fd3060d9
tree183e7f0f027e796fa253413e4ac38a87fb05194e
parent4d27e281f81aee88adff3d84085356ec310e4b92
altosui: Handle old TeleDongle receiving kalman telemetry packets

The telemetry packets now send the kalman height/speed/accel values
instead of the ad-hoc values. If received by an old TeleDongle box,
the speed value will be of the form 0x8000abcd, which will be printed
as a 32-bit value by TeleDongle. We only want the abcd part, which is
the speed * 16. Detect this automatically and compute the correct
values for all three.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosTelemetry.java