diff --git a/libraries/AP_InertialNav/AP_InertialNav.cpp b/libraries/AP_InertialNav/AP_InertialNav.cpp index e0e7db178d..d0470544a0 100644 --- a/libraries/AP_InertialNav/AP_InertialNav.cpp +++ b/libraries/AP_InertialNav/AP_InertialNav.cpp @@ -269,28 +269,6 @@ float AP_InertialNav::get_longitude_diff() const return (_position.y / _lon_to_cm_scaling); } -// get velocity in latitude & longitude directions -float AP_InertialNav::get_latitude_velocity() const -{ - // make sure we've been initialised - if( !_xy_enabled ) { - return 0; - } - - return _velocity.x; - // Note: is +_velocity.x the output velocity in logs is in reverse direction from accel lat -} - -float AP_InertialNav::get_longitude_velocity() const -{ - // make sure we've been initialised - if( !_xy_enabled ) { - return 0; - } - - return _velocity.y; -} - // set_velocity_xy - set velocity in latitude & longitude directions (in cm/s) void AP_InertialNav::set_velocity_xy(float x, float y) { diff --git a/libraries/AP_InertialNav/AP_InertialNav.h b/libraries/AP_InertialNav/AP_InertialNav.h index 338a831579..21c986442b 100644 --- a/libraries/AP_InertialNav/AP_InertialNav.h +++ b/libraries/AP_InertialNav/AP_InertialNav.h @@ -144,24 +144,6 @@ public: * @return difference in 100 nano degrees (i.e. degree value multiplied by 10,000,000) */ float get_longitude_diff() const; - - /** - * get_latitude_velocity - returns the current velocity in latitude direction. - * - * @see get_velocity().x - * - * @return : latitude velocity in cm/s - */ - float get_latitude_velocity() const; - - /** - * get_longitude_velocity - returns the current velocity in longitude direction. - * - * @see get_velocity().y - * - * @return : longitude velocity in cm/s - */ - float get_longitude_velocity() const; /** * get_velocity - returns the current velocity in cm/s