X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altosui%2FAltosTelemetry.java;h=7d68b5b5394898c62698ee90bdcf05e519ed43e2;hb=cb239b7161feea8646425b1f5788c3c82ae24321;hp=91b6d0481436c536ae8f5d46f3ac1e04e91e4b2a;hpb=7f5b5848ad6ef5c808638a29c3dc0101b56ed11e;p=fw%2Faltos diff --git a/altosui/AltosTelemetry.java b/altosui/AltosTelemetry.java index 91b6d048..7d68b5b5 100644 --- a/altosui/AltosTelemetry.java +++ b/altosui/AltosTelemetry.java @@ -326,6 +326,16 @@ public class AltosTelemetry extends AltosRecord { AltosParse.word(words[i++], "fp:"); flight_pres = AltosParse.parse_int(words[i++]); + /* Old TeleDongle code with kalman-reporting TeleMetrum code */ + if ((flight_vel & 0xffff0000) == 0x80000000) { + speed = ((short) flight_vel) / 16.0; + acceleration = flight_accel / 16.0; + height = flight_pres; + flight_vel = MISSING; + flight_pres = MISSING; + flight_accel = MISSING; + } + AltosParse.word(words[i++], "gp:"); ground_pres = AltosParse.parse_int(words[i++]);