AP_HAL: add force_safety_on method

This commit is contained in:
Randy Mackay 2014-09-14 17:23:13 +09:00
parent 2efeb768e0
commit 033b14db16

View File

@ -60,6 +60,13 @@ public:
*/ */
virtual void set_failsafe_pwm(uint32_t chmask, uint16_t period_us) {} virtual void set_failsafe_pwm(uint32_t chmask, uint16_t period_us) {}
/*
force the safety switch on, disabling PWM output from the IO board
return false (indicating failure) by default so that boards with no safety switch
do not need to implement this method
*/
virtual bool force_safety_on(void) { return false; }
/* /*
force the safety switch off, enabling PWM output from the IO board force the safety switch off, enabling PWM output from the IO board
*/ */