mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-02 10:23:25 +08:00
Sub: clear spool-up block each cycle in motors_output
This commit is contained in:
committed by
Peter Barker
parent
48af7707ba
commit
67256d852a
@@ -9,6 +9,12 @@ void Sub::enable_motor_output()
|
||||
// motors_output - send output to motors library which will adjust and send to ESCs and servos
|
||||
void Sub::motors_output()
|
||||
{
|
||||
// Sub has no pre-takeoff RPM gate that asserts the spool-up block,
|
||||
// so clear it every cycle before motors.output() runs output_logic().
|
||||
// Without this the block set during ground-idle ramp would never clear
|
||||
// and the spool would stay in GROUND_IDLE.
|
||||
motors.set_spoolup_block(false);
|
||||
|
||||
// Motor detection mode controls the thrusters directly
|
||||
if (control_mode == Mode::Number::MOTOR_DETECT){
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user