mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 16:50:35 +08:00
ICE: allow throttle setpoint to be set to NAN to stop motor without disarming
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -291,7 +291,7 @@ void InternalCombustionEngineControl::controlEngineStop()
|
||||
_ignition_on = false;
|
||||
_choke_control = _param_ice_stop_choke.get() ? 1.f : 0.f;
|
||||
_starter_engine_control = 0.f;
|
||||
_throttle_control = 0.f;
|
||||
_throttle_control = NAN; // this will set it to the DISARMED value
|
||||
}
|
||||
|
||||
void InternalCombustionEngineControl::controlEngineFault()
|
||||
@@ -393,6 +393,9 @@ The state machine:
|
||||
- Allows for user inputs from:
|
||||
- Manual control AUX
|
||||
- Arming state in [VehicleStatus.msg](../msg_docs/VehicleStatus.md)
|
||||
- In the state "Stopped" the throttle is set to NAN, which by definition will set the
|
||||
throttle output to the disarmed value configured for the specific output.
|
||||
|
||||
|
||||
The module publishes [InternalCombustionEngineControl.msg](../msg_docs/InternalCombustionEngineControl.md).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user