Only in the log file (no obvious space in the telem packets), but at
least we should be able to check for pyro failures.
Signed-off-by: Keith Packard <keithp@keithp.com>
public int v_pbatt() { return data16(2); }
public int nsense() { return data16(4); }
public int sense(int i) { return data16(6 + i * 2); }
+ public int pyro() { return data16(26); }
/* AO_LOG_GPS_TIME elements */
public int latitude() { return data32(0); }
int16_t v_pbatt; /* 6 */
int16_t n_sense; /* 8 */
int16_t sense[10]; /* 10 */
- } volt; /* 30 */
+ uint16_t pyro; /* 30 */
+ } volt; /* 32 */
/* AO_LOG_GPS_TIME */
struct {
int32_t latitude; /* 4 */
log.u.volt.n_sense = AO_ADC_NUM_SENSE;
for (i = 0; i < AO_ADC_NUM_SENSE; i++)
log.u.volt.sense[i] = ao_data_ring[ao_log_data_pos].adc.sense[i];
+ log.u.pyro = ao_pyro_fired;
ao_log_mega(&log);
next_other = log.tick + AO_OTHER_INTERVAL;
}
#define ao_lowbit(x) ((x) & (-x))
+uint16_t ao_pyro_fired;
+
/*
* Given a pyro structure, figure out
* if the current flight state satisfies all
extern uint8_t ao_pyro_wakeup;
+extern uint16_t ao_pyro_fired;
+
void
ao_pyro_set(void);