mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
AHRS: update for new _fly_forward flag
This commit is contained in:
parent
2600afe18a
commit
0399aa9480
@ -325,7 +325,7 @@ void AP_AHRS_Quaternion::update(void)
|
||||
// the quaternion system uses opposite sign for accel
|
||||
accel = - _imu->get_accel();
|
||||
|
||||
if (_centripetal && _gps && _gps->status() == GPS::GPS_OK) {
|
||||
if (_fly_forward && _gps && _gps->status() == GPS::GPS_OK) {
|
||||
// compensate for linear acceleration. This makes a
|
||||
// surprisingly large difference in the pitch estimate when
|
||||
// turning, plus on takeoff and landing
|
||||
|
Loading…
Reference in New Issue
Block a user