mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 03:03:34 +08:00
commander: move comment to the right place
It's now the same way as in the ARM logic further down.
This commit is contained in:
@@ -2271,9 +2271,9 @@ Commander::run()
|
|||||||
}
|
}
|
||||||
|
|
||||||
stick_off_counter++;
|
stick_off_counter++;
|
||||||
/* do not reset the counter when holding the arm button longer than needed */
|
|
||||||
|
|
||||||
} else if (!(arm_switch_is_button == 1 && sp_man.arm_switch == manual_control_setpoint_s::SWITCH_POS_ON)) {
|
} else if (!(arm_switch_is_button == 1 && sp_man.arm_switch == manual_control_setpoint_s::SWITCH_POS_ON)) {
|
||||||
|
/* do not reset the counter when holding the arm button longer than needed */
|
||||||
stick_off_counter = 0;
|
stick_off_counter = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user