mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 07:13:56 -04:00
AC_WPNav: add rangefinder_used accessor
This commit is contained in:
parent
0ab4a184d4
commit
f3e2b182a1
@ -55,6 +55,7 @@ public:
|
||||
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; }
|
||||
bool rangefinder_used_and_healthy() const { return _rangefinder_use && _rangefinder_healthy; }
|
||||
|
||||
// get expected source of terrain data if alt-above-terrain command is executed (used by Copter's ModeRTL)
|
||||
|
Loading…
Reference in New Issue
Block a user