From 37301f67a0238676902051ddbccca37b426af4ce Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 10 Apr 2017 09:49:35 +1000 Subject: [PATCH] SRV_Channel: added left and right motor tilt controls --- libraries/SRV_Channel/SRV_Channel.h | 2 ++ libraries/SRV_Channel/SRV_Channel_aux.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libraries/SRV_Channel/SRV_Channel.h b/libraries/SRV_Channel/SRV_Channel.h index 91fb7f3c70..a1e56386bf 100644 --- a/libraries/SRV_Channel/SRV_Channel.h +++ b/libraries/SRV_Channel/SRV_Channel.h @@ -103,6 +103,8 @@ public: k_tracker_pitch = 72, ///< antennatracker pitch k_throttleLeft = 73, k_throttleRight = 74, + k_tiltMotorLeft = 75, ///< vectored thrust, left tilt + k_tiltMotorRight = 76, ///< vectored thrust, right tilt k_nr_aux_servo_functions ///< This must be the last enum value (only add new values _before_ this one) } Aux_servo_function_t; diff --git a/libraries/SRV_Channel/SRV_Channel_aux.cpp b/libraries/SRV_Channel/SRV_Channel_aux.cpp index 24d31f7ac1..ff5582192d 100644 --- a/libraries/SRV_Channel/SRV_Channel_aux.cpp +++ b/libraries/SRV_Channel/SRV_Channel_aux.cpp @@ -106,6 +106,8 @@ void SRV_Channel::aux_servo_function_setup(void) case k_steering: case k_flaperon1: case k_flaperon2: + case k_tiltMotorLeft: + case k_tiltMotorRight: set_angle(4500); break; case k_throttle: