Browse Source

AP_InertialNav: remove unused velocity fns

remove get_longitude_velocity and get_latitude_velocity
mission-4.1.18
Randy Mackay 11 years ago
parent
commit
4348a272bf
  1. 22
      libraries/AP_InertialNav/AP_InertialNav.cpp
  2. 18
      libraries/AP_InertialNav/AP_InertialNav.h

22
libraries/AP_InertialNav/AP_InertialNav.cpp

@ -269,28 +269,6 @@ float AP_InertialNav::get_longitude_diff() const @@ -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)
{

18
libraries/AP_InertialNav/AP_InertialNav.h

@ -145,24 +145,6 @@ public: @@ -145,24 +145,6 @@ public:
*/
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…
Cancel
Save