X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=ao-tools%2Flib%2Fao-eeprom-read.h;h=9e60a5af9acdd0750b30e9934a190d47f1ab071d;hb=611ef4497b97bcf5239d6bc2ee13eeba9efd1503;hp=11e4f91d92e0fe6f9daa13b1ff9828ac55de91a9;hpb=681638032041efcb05b9623e2a0332ca4e2d0958;p=fw%2Faltos diff --git a/ao-tools/lib/ao-eeprom-read.h b/ao-tools/lib/ao-eeprom-read.h index 11e4f91d..9e60a5af 100644 --- a/ao-tools/lib/ao-eeprom-read.h +++ b/ao-tools/lib/ao-eeprom-read.h @@ -466,6 +466,37 @@ struct ao_log_mini { } u; /* 16 */ }; /* 16 */ +struct ao_log_motor { + char type; /* 0 */ + uint8_t csum; /* 1 */ + uint16_t tick; /* 2 */ + union { /* 4 */ + /* AO_LOG_FLIGHT */ + struct { + uint16_t flight; /* 4 */ + int16_t ground_accel; /* 6 */ + int16_t ground_accel_along; /* 8 */ + int16_t ground_accel_across; /* 10 */ + int16_t ground_accel_through; /* 12 */ + int16_t ground_motor_pressure; /* 14 */ + } flight; /* 16 */ + /* AO_LOG_STATE */ + struct { + uint16_t state; /* 4 */ + uint16_t reason; /* 6 */ + } state; + /* AO_LOG_SENSOR */ + struct { + uint16_t pressure; /* 4 */ + uint16_t v_batt; /* 6 */ + int16_t accel; /* 8 */ + int16_t accel_across; /* 10 */ + int16_t accel_along; /* 12 */ + int16_t accel_through; /* 14 */ + } sensor; /* 16 */ + } u; +}; + #define ao_log_pack24(dst,value) do { \ (dst)[0] = (value); \ (dst)[1] = (value) >> 8; \