mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AC_WPNav: add rangefinder_used accessor
used by zigzag mode to determine if terrain altitudes can be used
This commit is contained in:
parent
89eb876faf
commit
5ebaeaf5d2
@ -57,6 +57,9 @@ public:
|
||||
/// provide rangefinder altitude
|
||||
void set_rangefinder_alt(bool use, bool healthy, float alt_cm) { _rangefinder_available = use; _rangefinder_healthy = healthy; _rangefinder_alt_cm = alt_cm; }
|
||||
|
||||
// return true if range finder may be used for terrain following
|
||||
bool rangefinder_used() const { return _rangefinder_use && _rangefinder_healthy; }
|
||||
|
||||
///
|
||||
/// brake controller
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user