X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fkernel%2Fao_log.h;h=09ae7add80b683f469454cf721c4ad5f7c185410;hb=064e30c73ff539ec53d15efe6cbab982b9c35eaf;hp=103cb70b46597988f21eb07aedb17bc327b3155d;hpb=eb77758b7dcdd0bcef12cd1d56cf4d447cbe5c8c;p=fw%2Faltos diff --git a/src/kernel/ao_log.h b/src/kernel/ao_log.h index 103cb70b..09ae7add 100644 --- a/src/kernel/ao_log.h +++ b/src/kernel/ao_log.h @@ -259,15 +259,30 @@ struct ao_log_mega { struct { uint32_t pres; /* 4 */ uint32_t temp; /* 8 */ - int16_t accel_x; /* 12 */ - int16_t accel_y; /* 14 */ - int16_t accel_z; /* 16 */ - int16_t gyro_x; /* 18 */ - int16_t gyro_y; /* 20 */ - int16_t gyro_z; /* 22 */ - int16_t mag_x; /* 24 */ - int16_t mag_z; /* 26 */ - int16_t mag_y; /* 28 */ + union { + struct { + int16_t accel_along; /* 12 */ + int16_t accel_across; /* 14 */ + int16_t accel_through; /* 16 */ + int16_t gyro_roll; /* 18 */ + int16_t gyro_pitch; /* 20 */ + int16_t gyro_yaw; /* 22 */ + int16_t mag_along; /* 24 */ + int16_t mag_across; /* 26 */ + int16_t mag_through; /* 28 */ + }; + struct { + int16_t accel_x; /* 12 */ + int16_t accel_y; /* 14 */ + int16_t accel_z; /* 16 */ + int16_t gyro_x; /* 18 */ + int16_t gyro_y; /* 20 */ + int16_t gyro_z; /* 22 */ + int16_t mag_x; /* 24 */ + int16_t mag_z; /* 26 */ + int16_t mag_y; /* 28 */ + }; + }; int16_t accel; /* 30 */ } sensor; /* 32 */ /* AO_LOG_TEMP_VOLT */