SRV_Channels: added 4 channel dspoiler support

This commit is contained in:
Andrew Tridgell 2017-07-01 16:01:32 +10:00
parent 907534d55f
commit 7627246ff8
2 changed files with 8 additions and 4 deletions

View File

@ -53,8 +53,8 @@ public:
k_mount2_tilt = 13, ///< mount2 pitch (tilt)
k_mount2_roll = 14, ///< mount2 roll
k_mount2_open = 15, ///< mount2 open (deploy) / close (retract)
k_dspoiler1 = 16, ///< differential spoiler 1 (left wing)
k_dspoiler2 = 17, ///< differential spoiler 2 (right wing)
k_dspoilerLeft1 = 16, ///< differential spoiler 1 (left wing)
k_dspoilerRight1 = 17, ///< differential spoiler 1 (right wing)
k_aileron_with_input = 18, ///< aileron, with rc input
k_elevator = 19, ///< elevator
k_elevator_with_input = 20, ///< elevator, with rc input
@ -114,6 +114,8 @@ public:
k_motor10 = 83,
k_motor11 = 84,
k_motor12 = 85,
k_dspoilerLeft2 = 86, ///< differential spoiler 2 (left wing)
k_dspoilerRight2 = 87, ///< differential spoiler 2 (right wing)
k_nr_aux_servo_functions ///< This must be the last enum value (only add new values _before_ this one)
} Aux_servo_function_t;

View File

@ -102,8 +102,10 @@ void SRV_Channel::aux_servo_function_setup(void)
case k_elevator_with_input:
case k_aileron:
case k_elevator:
case k_dspoiler1:
case k_dspoiler2:
case k_dspoilerLeft1:
case k_dspoilerLeft2:
case k_dspoilerRight1:
case k_dspoilerRight2:
case k_rudder:
case k_steering:
case k_flaperon_left: