mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
ICE: small cosmetic changes and make message definition clearer
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
uint64 timestamp # time since system start (microseconds)
|
uint64 timestamp # time since system start (microseconds)
|
||||||
|
|
||||||
bool ignition_on # activate/deactivate ignition (Spark Plug)
|
bool ignition_on # activate/deactivate ignition (spark plug)
|
||||||
float32 throttle_control # [0,1] - Motor should idle with 0. Includes slew rate if enabled.
|
float32 throttle_control # setpoint for throttle actuator, with slew rate if enabled, idles with 0 [norm] [@range 0,1]
|
||||||
float32 choke_control # [0,1] - 1 fully closes the air inlet.
|
float32 choke_control # setpoint for choke actuator, 1: fully closed [norm] [@range 0,1]
|
||||||
float32 starter_engine_control # [0,1] - control value for electric starter motor.
|
float32 starter_engine_control # setpoint for (electric) starter motor [norm] [@range 0,1]
|
||||||
|
|
||||||
uint8 user_request # user intent for the ICE being on/off
|
uint8 user_request # user intent for the ICE being on/off
|
||||||
|
|||||||
@@ -217,7 +217,6 @@ void InternalCombustionEngineControl::Run()
|
|||||||
|
|
||||||
case State::Fault: {
|
case State::Fault: {
|
||||||
|
|
||||||
// do nothing
|
|
||||||
if (user_request == UserOnOffRequest::Off) {
|
if (user_request == UserOnOffRequest::Off) {
|
||||||
_state = State::Stopped;
|
_state = State::Stopped;
|
||||||
_starting_retry_cycle = 0;
|
_starting_retry_cycle = 0;
|
||||||
@@ -392,7 +391,7 @@ The state machine:
|
|||||||
|
|
||||||
- Checks if [Rpm.msg](../msg_docs/Rpm.md) is updated to know if the engine is running
|
- Checks if [Rpm.msg](../msg_docs/Rpm.md) is updated to know if the engine is running
|
||||||
- Allows for user inputs from:
|
- Allows for user inputs from:
|
||||||
- AUX{N}
|
- Manual control AUX
|
||||||
- Arming state in [VehicleStatus.msg](../msg_docs/VehicleStatus.md)
|
- Arming state in [VehicleStatus.msg](../msg_docs/VehicleStatus.md)
|
||||||
|
|
||||||
The module publishes [InternalCombustionEngineControl.msg](../msg_docs/InternalCombustionEngineControl.md).
|
The module publishes [InternalCombustionEngineControl.msg](../msg_docs/InternalCombustionEngineControl.md).
|
||||||
|
|||||||
Reference in New Issue
Block a user