mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_HAL: added safety_switch_state() function in hal.util
will be used by copter to check safety switch is set
This commit is contained in:
parent
58187ea449
commit
34a328f66d
@ -25,6 +25,14 @@ public:
|
||||
// commands
|
||||
virtual bool run_debug_shell(AP_HAL::BetterStream *stream) = 0;
|
||||
|
||||
enum safety_state {
|
||||
SAFETY_NONE, SAFETY_DISARMED, SAFETY_ARMED
|
||||
};
|
||||
|
||||
/*
|
||||
return state of safety switch, if applicable
|
||||
*/
|
||||
virtual enum safety_state safety_switch_state(void) { return SAFETY_NONE; }
|
||||
};
|
||||
|
||||
#endif // __AP_HAL_UTIL_H__
|
||||
|
Loading…
Reference in New Issue
Block a user