Copter: allow Tri copters to init ESCs through APM/PX4

This commit is contained in:
Randy Mackay 2013-05-19 17:28:39 +09:00
parent 91b08cdcec
commit 5235f4cacd

View File

@ -21,6 +21,11 @@ void AP_MotorsTri::Init()
// set update rate for the 3 motors (but not the servo on channel 7)
set_update_rate(_speed_hz);
// set the motor_enabled flag so that the ESCs can be calibrated like other frame types
motor_enabled[AP_MOTORS_MOT_1] = true;
motor_enabled[AP_MOTORS_MOT_2] = true;
motor_enabled[AP_MOTORS_MOT_4] = true;
}
// set update rate to motors - a value in hertz