From 033b14db16e18c297e04819feab54f0899a1baf4 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Sun, 14 Sep 2014 17:23:13 +0900 Subject: [PATCH] AP_HAL: add force_safety_on method --- libraries/AP_HAL/RCOutput.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/AP_HAL/RCOutput.h b/libraries/AP_HAL/RCOutput.h index af40f20f25..d08533c1bd 100644 --- a/libraries/AP_HAL/RCOutput.h +++ b/libraries/AP_HAL/RCOutput.h @@ -60,6 +60,13 @@ public: */ 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 */