Browse Source

TradHeli: disable aux channels 7 and 8

master
Randy Mackay 11 years ago
parent
commit
1426078cdb
  1. 4
      libraries/AP_Motors/AP_MotorsHeli.cpp
  2. 4
      libraries/AP_Motors/AP_MotorsHeli.h

4
libraries/AP_Motors/AP_MotorsHeli.cpp

@ -227,6 +227,10 @@ void AP_MotorsHeli::Init() @@ -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

4
libraries/AP_Motors/AP_MotorsHeli.h

@ -12,10 +12,6 @@ @@ -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

Loading…
Cancel
Save