From 4350cee7cf06978e08ddb76212597823c43fa6e1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 14 Mar 2018 17:04:37 +1100 Subject: [PATCH] Rover: added mask to set_output_mode() --- APMrover2/AP_MotorsUGV.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/APMrover2/AP_MotorsUGV.cpp b/APMrover2/AP_MotorsUGV.cpp index 58fa713cb8..910e581cb8 100644 --- a/APMrover2/AP_MotorsUGV.cpp +++ b/APMrover2/AP_MotorsUGV.cpp @@ -329,11 +329,11 @@ void AP_MotorsUGV::setup_pwm_type() case PWM_TYPE_ONESHOT: case PWM_TYPE_ONESHOT125: // tell HAL to do immediate output - hal.rcout->set_output_mode(AP_HAL::RCOutput::MODE_PWM_ONESHOT); + hal.rcout->set_output_mode(0xFFFF, AP_HAL::RCOutput::MODE_PWM_ONESHOT); break; case PWM_TYPE_BRUSHED_WITH_RELAY: case PWM_TYPE_BRUSHED_BIPOLAR: - hal.rcout->set_output_mode(AP_HAL::RCOutput::MODE_PWM_BRUSHED); + hal.rcout->set_output_mode(0xFFFF, AP_HAL::RCOutput::MODE_PWM_BRUSHED); /* * Group 0: channels 0 1 * Group 1: channels 4 5 6 7