Browse Source

Copter: enable channels in ESC calibration

mission-4.1.18
Andrew Tridgell 8 years ago
parent
commit
49b18819ce
  1. 2
      ArduCopter/esc_calibration.cpp

2
ArduCopter/esc_calibration.cpp

@ -100,6 +100,7 @@ void Copter::esc_calibration_passthrough() @@ -100,6 +100,7 @@ void Copter::esc_calibration_passthrough()
// arm motors
motors->armed(true);
motors->enable();
SRV_Channels::enable_by_mask(motors->get_motor_mask());
uint32_t last_notify_update_ms = 0;
while(1) {
@ -144,6 +145,7 @@ void Copter::esc_calibration_auto() @@ -144,6 +145,7 @@ void Copter::esc_calibration_auto()
// arm and enable motors
motors->armed(true);
motors->enable();
SRV_Channels::enable_by_mask(motors->get_motor_mask());
// flash LEDS
AP_Notify::flags.esc_calibration = true;

Loading…
Cancel
Save