Browse Source

SRV_Channel: added left and right motor tilt controls

master
Andrew Tridgell 8 years ago
parent
commit
37301f67a0
  1. 2
      libraries/SRV_Channel/SRV_Channel.h
  2. 2
      libraries/SRV_Channel/SRV_Channel_aux.cpp

2
libraries/SRV_Channel/SRV_Channel.h

@ -103,6 +103,8 @@ public: @@ -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;

2
libraries/SRV_Channel/SRV_Channel_aux.cpp

@ -106,6 +106,8 @@ void SRV_Channel::aux_servo_function_setup(void) @@ -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:

Loading…
Cancel
Save