From 53ee7d861d1c1bdd9e4e30a219957af8e61ce5f1 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sun, 29 Aug 2021 13:15:52 +0100 Subject: [PATCH] AP_HAL_ChibiOS: remove safe PWM --- libraries/AP_HAL_ChibiOS/RCOutput.cpp | 24 +++--------------------- libraries/AP_HAL_ChibiOS/RCOutput.h | 7 ------- 2 files changed, 3 insertions(+), 28 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/RCOutput.cpp b/libraries/AP_HAL_ChibiOS/RCOutput.cpp index c0ffa23c94..adbef52761 100644 --- a/libraries/AP_HAL_ChibiOS/RCOutput.cpp +++ b/libraries/AP_HAL_ChibiOS/RCOutput.cpp @@ -508,7 +508,7 @@ void RCOutput::write(uint8_t chan, uint16_t period_us) if (safety_state == AP_HAL::Util::SAFETY_DISARMED && !(safety_mask & (1U< 0; } #endif - uint16_t safe_pwm[max_channels]; // pwm to use when safety is on bool corked; // mask of channels that are running in high speed uint16_t fast_channel_mask;