Copter: enable channels in ESC calibration
This commit is contained in:
parent
84114d067a
commit
49b18819ce
@ -100,6 +100,7 @@ void Copter::esc_calibration_passthrough()
|
|||||||
// arm motors
|
// arm motors
|
||||||
motors->armed(true);
|
motors->armed(true);
|
||||||
motors->enable();
|
motors->enable();
|
||||||
|
SRV_Channels::enable_by_mask(motors->get_motor_mask());
|
||||||
|
|
||||||
uint32_t last_notify_update_ms = 0;
|
uint32_t last_notify_update_ms = 0;
|
||||||
while(1) {
|
while(1) {
|
||||||
@ -144,6 +145,7 @@ void Copter::esc_calibration_auto()
|
|||||||
// arm and enable motors
|
// arm and enable motors
|
||||||
motors->armed(true);
|
motors->armed(true);
|
||||||
motors->enable();
|
motors->enable();
|
||||||
|
SRV_Channels::enable_by_mask(motors->get_motor_mask());
|
||||||
|
|
||||||
// flash LEDS
|
// flash LEDS
|
||||||
AP_Notify::flags.esc_calibration = true;
|
AP_Notify::flags.esc_calibration = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user