mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
Force the loading of the sensor gains and biases at the beginning
This commit is contained in:
parent
1092ac3184
commit
9bf06bbd3e
@ -259,7 +259,6 @@ static void SensorsTask(void *parameters)
|
||||
* Locally cache some variables from the AtttitudeSettings object
|
||||
*/
|
||||
static void settingsUpdatedCb(UAVObjEvent * objEv) {
|
||||
if(objEv->obj == RevoCalibrationHandle()) {
|
||||
RevoCalibrationData cal;
|
||||
RevoCalibrationGet(&cal);
|
||||
|
||||
@ -275,8 +274,6 @@ static void settingsUpdatedCb(UAVObjEvent * objEv) {
|
||||
accel_scale[0] = cal.accel_scale[REVOCALIBRATION_ACCEL_SCALE_X];
|
||||
accel_scale[1] = cal.accel_scale[REVOCALIBRATION_ACCEL_SCALE_Y];
|
||||
accel_scale[2] = cal.accel_scale[REVOCALIBRATION_ACCEL_SCALE_Z];
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* @}
|
||||
|
Loading…
Reference in New Issue
Block a user