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:
Andrew Tridgell 2013-10-05 15:46:35 +10:00
parent 58187ea449
commit 34a328f66d

View File

@ -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__