1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

Move calibrationCompleted flag to a 4th element in the accZero structure

Allows the flag indicating that calibration was completed to be output in the values for `acc_calibration`.
This commit is contained in:
Bruce Luckcuck 2019-10-21 11:49:11 -04:00
parent 565f1f4db5
commit 365c6cb1f6
6 changed files with 10 additions and 8 deletions

View file

@ -36,10 +36,11 @@ typedef struct int16_flightDynamicsTrims_s {
int16_t roll;
int16_t pitch;
int16_t yaw;
int16_t calibrationCompleted;
} flightDynamicsTrims_def_t;
typedef union flightDynamicsTrims_u {
int16_t raw[3];
int16_t raw[4];
flightDynamicsTrims_def_t values;
} flightDynamicsTrims_t;