diff options
| author | Keith Packard <keithp@keithp.com> | 2012-06-04 20:50:10 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-06-04 20:50:10 -0700 | 
| commit | 06afa2c3e78ea5bc9f1eb4913ee35c0eab0ac1bf (patch) | |
| tree | 1a3c72e830280688fab3dfaf1756e46912524750 /src | |
| parent | f1b14932149153a096961fff94191778f88581d9 (diff) | |
altos: Legacy telemetry needs original ADC record
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/ao.h | 12 | 
1 files changed, 11 insertions, 1 deletions
| diff --git a/src/core/ao.h b/src/core/ao.h index da1fd67b..a4136a9b 100644 --- a/src/core/ao.h +++ b/src/core/ao.h @@ -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; | 
