X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdrivers%2Fao_pad.h;h=d77d105a524d5aa41da53b10216dc932e545d406;hb=dcbd87bc685924a6587a5f4dae47d34f417601b0;hp=d5ca3a888871e82bc94672951950ea7578347e4e;hpb=7a0ed0ff4192060854d69e640de2c30105eb2f62;p=fw%2Faltos diff --git a/src/drivers/ao_pad.h b/src/drivers/ao_pad.h index d5ca3a88..d77d105a 100644 --- a/src/drivers/ao_pad.h +++ b/src/drivers/ao_pad.h @@ -19,6 +19,7 @@ #define _AO_PAD_H_ #define AO_PAD_MAX_CHANNELS 8 +#define AO_PAD_MAX_BOXES 100 struct ao_pad_command { uint16_t tick; @@ -38,14 +39,16 @@ struct ao_pad_query { uint8_t channels; /* which chanels are present */ uint8_t armed; /* which channels are armed */ uint8_t arm_status; /* status of arming switch */ + uint8_t battery; /* battery voltage in decivolts */ uint8_t igniter_status[AO_PAD_MAX_CHANNELS]; /* status for each igniter */ }; -/* Set current armed pads, report back status +/* Arm pads for 3 seconds, no report */ - #define AO_PAD_ARM 2 +#define AO_PAD_ARM_TIME AO_SEC_TO_TICKS(3) + /* Fire current armed pads for 200ms, no report */ #define AO_PAD_FIRE 3