From 22517422f934d61247d6af8f702bbc194c7d4018 Mon Sep 17 00:00:00 2001 From: Jonathan Challinger Date: Fri, 18 Nov 2016 17:48:22 -0800 Subject: [PATCH] AP_Motors: add option to disable motor PWM output while disarmed --- libraries/AP_Motors/AP_MotorsMatrix.cpp | 9 +++++++-- libraries/AP_Motors/AP_MotorsMulticopter.cpp | 16 +++++++++++++++- libraries/AP_Motors/AP_MotorsMulticopter.h | 2 ++ 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Motors/AP_MotorsMatrix.cpp b/libraries/AP_Motors/AP_MotorsMatrix.cpp index 816256dd02..a4b9662bf4 100644 --- a/libraries/AP_Motors/AP_MotorsMatrix.cpp +++ b/libraries/AP_Motors/AP_MotorsMatrix.cpp @@ -88,15 +88,20 @@ void AP_MotorsMatrix::output_to_motors() int16_t motor_out[AP_MOTORS_MAX_NUM_MOTORS]; // final pwm values sent to the motor switch (_spool_mode) { - case SHUT_DOWN: + case SHUT_DOWN: { // sends minimum values out to the motors // set motor output based on thrust requests for (i=0; i