AP_InertialNav: remove unused velocity fns
remove get_longitude_velocity and get_latitude_velocity
This commit is contained in:
parent
8b293f10a4
commit
e563a236ab
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user