From 3c5c77889c2487f1e637c79aa9d8682b024a4b64 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 16 Mar 2018 07:28:50 +1100 Subject: [PATCH] HAL_VRBRAIN: fixed build with DShot --- libraries/AP_HAL_VRBRAIN/RCOutput.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/AP_HAL_VRBRAIN/RCOutput.cpp b/libraries/AP_HAL_VRBRAIN/RCOutput.cpp index 9a14c96ff5..a740a49651 100644 --- a/libraries/AP_HAL_VRBRAIN/RCOutput.cpp +++ b/libraries/AP_HAL_VRBRAIN/RCOutput.cpp @@ -667,6 +667,13 @@ void VRBRAINRCOutput::set_output_mode(uint16_t mask, enum output_mode mode) ioctl(_alt_fd, PWM_SERVO_SET_ONESHOT, 1); } break; + case MODE_PWM_DSHOT150: + case MODE_PWM_DSHOT300: + case MODE_PWM_DSHOT600: + case MODE_PWM_DSHOT1200: + // treat as normal PWM for now + hal.console->printf("DShot not supported\n"); + FALLTHROUGH; case MODE_PWM_NORMAL: ioctl(_pwm_fd, PWM_SERVO_SET_ONESHOT, 0); if (_alt_fd != -1) {