mirror of https://github.com/ArduPilot/ardupilot
AP_AHRS: use TAS in DCM drift correction code
Co-authored-by: luweiagi <luweiagi@163.com>
This commit is contained in:
parent
92241daef1
commit
46b9f06011
|
@ -727,7 +727,7 @@ AP_AHRS_DCM::drift_correction(float deltat)
|
||||||
float airspeed_TAS = _last_airspeed_TAS;
|
float airspeed_TAS = _last_airspeed_TAS;
|
||||||
#if AP_AIRSPEED_ENABLED
|
#if AP_AIRSPEED_ENABLED
|
||||||
if (airspeed_sensor_enabled()) {
|
if (airspeed_sensor_enabled()) {
|
||||||
airspeed_TAS = AP::airspeed()->get_airspeed();
|
airspeed_TAS = AP::airspeed()->get_airspeed() * get_EAS2TAS();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue