Browse Source

RC_Channel: added motor tilt auxillary channel

master
Andrew Tridgell 9 years ago
parent
commit
a41ffc176c
  1. 4
      libraries/RC_Channel/RC_Channel_aux.cpp
  2. 1
      libraries/RC_Channel/RC_Channel_aux.h

4
libraries/RC_Channel/RC_Channel_aux.cpp

@ -114,6 +114,10 @@ void RC_Channel_aux::aux_servo_function_setup(void) @@ -114,6 +114,10 @@ void RC_Channel_aux::aux_servo_function_setup(void)
case RC_Channel_aux::k_flaperon2:
set_angle_out(4500);
break;
case RC_Channel_aux::k_motor_tilt:
// tenth percentage tilt
set_range_out(0,1000);
break;
default:
break;
}

1
libraries/RC_Channel/RC_Channel_aux.h

@ -74,6 +74,7 @@ public: @@ -74,6 +74,7 @@ public:
k_motor6 = 38,
k_motor7 = 39,
k_motor8 = 40,
k_motor_tilt = 41, ///< tiltrotor motor tilt control
k_rcin1 = 51, ///< these are for pass-thru from arbitrary rc inputs
k_rcin2 = 52,
k_rcin3 = 53,

Loading…
Cancel
Save