AP_InertialSensor: Correct scaling of batch data

This commit is contained in:
Andrew Tridgell 2018-03-07 19:09:15 +11:00 committed by Lucas De Marchi
parent 8b9ce3869c
commit e8726865ab
1 changed files with 2 additions and 2 deletions

View File

@ -324,8 +324,8 @@ public:
uint32_t last_sent_ms;
// all samples are multiplied by this
static const uint16_t multiplier_accel = INT16_MAX/radians(2000);
static const uint16_t multiplier_gyro = INT16_MAX/(16*GRAVITY_MSS);
static const uint16_t multiplier_accel = INT16_MAX/(16*GRAVITY_MSS);
static const uint16_t multiplier_gyro = INT16_MAX/radians(2000);
uint16_t multiplier = multiplier_accel;
// push blocks to DataFlash at regular intervals. each