diff --git a/libraries/AP_InertialNav/AP_InertialNav.h b/libraries/AP_InertialNav/AP_InertialNav.h index 7a8661e462..2a88fc052c 100644 --- a/libraries/AP_InertialNav/AP_InertialNav.h +++ b/libraries/AP_InertialNav/AP_InertialNav.h @@ -86,11 +86,11 @@ public: virtual const Vector3f& get_velocity() const = 0; /** - * get_velocity_xy - returns the current horizontal velocity in cm/s + * get_speed_xy - returns the current horizontal speed in cm/s * - * @returns the current horizontal velocity in cm/s + * @returns the current horizontal speed in cm/s */ - virtual float get_velocity_xy() const = 0; + virtual float get_speed_xy() const = 0; // // Z Axis methods diff --git a/libraries/AP_InertialNav/AP_InertialNav_NavEKF.cpp b/libraries/AP_InertialNav/AP_InertialNav_NavEKF.cpp index 804e98ecf6..7c91234dad 100644 --- a/libraries/AP_InertialNav/AP_InertialNav_NavEKF.cpp +++ b/libraries/AP_InertialNav/AP_InertialNav_NavEKF.cpp @@ -118,11 +118,11 @@ const Vector3f &AP_InertialNav_NavEKF::get_velocity() const } /** - * get_velocity_xy - returns the current horizontal velocity in cm/s + * get_speed_xy - returns the current horizontal speed in cm/s * - * @returns the current horizontal velocity in cm/s + * @returns the current horizontal speed in cm/s */ -float AP_InertialNav_NavEKF::get_velocity_xy() const +float AP_InertialNav_NavEKF::get_speed_xy() const { return norm(_velocity_cm.x, _velocity_cm.y); } diff --git a/libraries/AP_InertialNav/AP_InertialNav_NavEKF.h b/libraries/AP_InertialNav/AP_InertialNav_NavEKF.h index 59389033f5..fd3604214b 100644 --- a/libraries/AP_InertialNav/AP_InertialNav_NavEKF.h +++ b/libraries/AP_InertialNav/AP_InertialNav_NavEKF.h @@ -76,11 +76,11 @@ public: float get_pos_z_derivative() const; /** - * get_velocity_xy - returns the current horizontal velocity in cm/s + * get_speed_xy - returns the current horizontal speed in cm/s * - * @returns the current horizontal velocity in cm/s + * @returns the current horizontal speed in cm/s */ - float get_velocity_xy() const override; + float get_speed_xy() const override; /** * get_altitude - get latest altitude estimate in cm