TradHeli: disable aux channels 7 and 8

This commit is contained in:
Randy Mackay 2014-02-07 22:02:01 +09:00
parent bc311542ab
commit 1426078cdb
2 changed files with 4 additions and 4 deletions

View File

@ -227,6 +227,10 @@ void AP_MotorsHeli::Init()
// initialise swash plate
init_swash();
// disable channels 7 and 8 from being used by RC_Channel_aux
RC_Channel_aux::disable_aux_channel(_motor_to_channel_map[AP_MOTORS_HELI_AUX]);
RC_Channel_aux::disable_aux_channel(_motor_to_channel_map[AP_MOTORS_HELI_RSC]);
}
// set update rate to motors - a value in hertz

View File

@ -12,10 +12,6 @@
#include <RC_Channel.h> // RC Channel Library
#include "AP_Motors.h"
// output channels
#define AP_MOTORS_HELI_EXT_GYRO CH_7 // tail servo uses channel 7
#define AP_MOTORS_HELI_EXT_RSC CH_8 // main rotor controlled with channel 8
// maximum number of swashplate servos
#define AP_MOTORS_HELI_NUM_SWASHPLATE_SERVOS 3