altos: Legacy telemetry needs original ADC record
authorKeith Packard <keithp@keithp.com>
Tue, 5 Jun 2012 03:50:10 +0000 (20:50 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 5 Jun 2012 03:50:10 +0000 (20:50 -0700)
The legacy telemetry packets included the raw ADC structure directly,
so make sure that doesn't change further, allowing teledongle firmware
to remain compatible with old TM firmware.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao.h

index da1fd67b68378ebec58055e8835a71b8110429fe..a4136a9b2fea02707dd6e5ad0709d25082bca8a8 100644 (file)
@@ -574,6 +574,16 @@ ao_gps_report_init(void);
  * ao_telemetry_orig.c
  */
 
+struct ao_adc_orig {
+       uint16_t        tick;           /* tick when the sample was read */
+       int16_t         accel;          /* accelerometer */
+       int16_t         pres;           /* pressure sensor */
+       int16_t         temp;           /* temperature sensor */
+       int16_t         v_batt;         /* battery voltage */
+       int16_t         sense_d;        /* drogue continuity sense */
+       int16_t         sense_m;        /* main continuity sense */
+};
+
 struct ao_telemetry_orig {
        uint16_t                serial;
        uint16_t                flight;
@@ -591,7 +601,7 @@ struct ao_telemetry_orig {
        int16_t                 ground_pres;
        int16_t                 accel_plus_g;
        int16_t                 accel_minus_g;
-       struct ao_adc           adc;
+       struct ao_adc_orig      adc;
        struct ao_gps_orig      gps;
        char                    callsign[AO_MAX_CALLSIGN];
        struct ao_gps_tracking_orig     gps_tracking;