1
0
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:
James Cotton 2011-12-24 16:14:28 -06:00
parent 1092ac3184
commit 9bf06bbd3e

View File

@ -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];
}
}
/**
* @}