mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Merge branch 'pt/CC3D_Release' of ssh://git.openpilot.org/OpenPilot into pt/CC3D_Release
This commit is contained in:
commit
f1f4144c27
@ -420,6 +420,10 @@ static int32_t updateSensorsCC3D(AccelsData * accelsData, GyrosData * gyrosData)
|
|||||||
gyrosData->z += gyro_correct_int[2];
|
gyrosData->z += gyro_correct_int[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Because most crafts wont get enough information from gravity to zero yaw gyro, we try
|
||||||
|
// and make it average zero (weakly)
|
||||||
|
gyro_correct_int[2] += - gyrosData->z * yawBiasRate;
|
||||||
|
|
||||||
GyrosSet(gyrosData);
|
GyrosSet(gyrosData);
|
||||||
AccelsSet(accelsData);
|
AccelsSet(accelsData);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user