AP_InertialNav: use vector.xy().length() instead of norm(x,y)

This commit is contained in:
Josh Henderson 2021-09-11 06:32:32 -04:00 committed by Andrew Tridgell
parent 06251335da
commit f76f86c207

View File

@ -81,7 +81,7 @@ const Vector3f &AP_InertialNav_NavEKF::get_velocity() const
*/ */
float AP_InertialNav_NavEKF::get_speed_xy() const float AP_InertialNav_NavEKF::get_speed_xy() const
{ {
return norm(_velocity_cm.x, _velocity_cm.y); return _velocity_cm.xy().length();
} }
/** /**