AP_InertialNav: remove unused velocity fns

remove get_longitude_velocity and get_latitude_velocity
This commit is contained in:
Randy Mackay 2013-10-25 23:00:47 +09:00
parent 8b293f10a4
commit e563a236ab
2 changed files with 0 additions and 40 deletions

View File

@ -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)
{

View File

@ -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