Browse Source

AP_InertialNav: remove unused get_hgt_ctrl_limit

master
Peter Barker 7 years ago committed by Randy Mackay
parent
commit
c3eff57f60
  1. 8
      libraries/AP_InertialNav/AP_InertialNav.h
  2. 17
      libraries/AP_InertialNav/AP_InertialNav_NavEKF.cpp
  3. 8
      libraries/AP_InertialNav/AP_InertialNav_NavEKF.h

8
libraries/AP_InertialNav/AP_InertialNav.h

@ -104,14 +104,6 @@ public:
*/ */
virtual float get_altitude() const = 0; virtual float get_altitude() const = 0;
/**
* get_hgt_ctrl_limit - get maximum height to be observed by the control loops in cm and a validity flag
* this is used to limit height during optical flow navigation
* it will return invalid when no limiting is required
* @return
*/
virtual bool get_hgt_ctrl_limit(float& limit) const = 0;
/** /**
* get_velocity_z - returns the current climbrate. * get_velocity_z - returns the current climbrate.
* *

17
libraries/AP_InertialNav/AP_InertialNav_NavEKF.cpp

@ -158,23 +158,6 @@ bool AP_InertialNav_NavEKF::get_hagl(float &height) const
return valid; return valid;
} }
/**
* get_hgt_ctrl_limit - get maximum height to be observed by the control loops in cm and a validity flag
* this is used to limit height during optical flow navigation
* it will return invalid when no limiting is required
* @return
*/
bool AP_InertialNav_NavEKF::get_hgt_ctrl_limit(float& limit) const
{
// true when estimate is valid
if (_ahrs_ekf.get_hgt_ctrl_limit(limit)) {
// convert height from m to cm
limit *= 100.0f;
return true;
}
return false;
}
/** /**
* get_velocity_z - returns the current climbrate. * get_velocity_z - returns the current climbrate.
* *

8
libraries/AP_InertialNav/AP_InertialNav_NavEKF.h

@ -94,14 +94,6 @@ public:
*/ */
bool get_hagl(float &hagl) const; bool get_hagl(float &hagl) const;
/**
* get_hgt_ctrl_limit - get maximum height to be observed by the control loops in cm and a validity flag
* this is used to limit height during optical flow navigation
* it will return invalid when no limiting is required
* @return
*/
bool get_hgt_ctrl_limit(float& limit) const;
/** /**
* get_velocity_z - returns the current climbrate. * get_velocity_z - returns the current climbrate.
* *

Loading…
Cancel
Save