mirror of https://github.com/ArduPilot/ardupilot
AP_InertialNav: fixed use of ahrs.get_velocity with EKF disabled
This commit is contained in:
parent
811e8571f1
commit
31c256bdd8
|
@ -30,7 +30,7 @@ void AP_InertialNav_NavEKF::update(float dt)
|
|||
|
||||
_haveabspos = _ahrs.get_position(_abspos);
|
||||
|
||||
_ahrs.get_velocity_NED(_velocity_cm);
|
||||
_ahrs_ekf.get_NavEKF().getVelNED(_velocity_cm);
|
||||
_velocity_cm *= 100; // convert to cm/s
|
||||
|
||||
// InertialNav is NEU
|
||||
|
|
Loading…
Reference in New Issue