diff --git a/docs/en/actuators/internal_combustion_engine.md b/docs/en/actuators/internal_combustion_engine.md index 5d8cd7f99e8..74cc0a4bb4a 100644 --- a/docs/en/actuators/internal_combustion_engine.md +++ b/docs/en/actuators/internal_combustion_engine.md @@ -13,7 +13,7 @@ The engine can be commanded to start automatically (for example on arming, or on - For continuous operation without a propeller, a flywheel is recommended. - Keep clear of the propeller arc whenever the vehicle is powered. - Verify that the engine stop functionality (ignition off, choke closed) reliably stops the engine before you rely on it. -::: + ::: ## Hardware Requirements @@ -264,7 +264,7 @@ The module runs at 50 Hz. | `IC Engine Ignition` | `ignition_on` | Spark/ignition enable. `false` cuts the spark and stops the engine (optional: many engine spark boxes always run when powered). | | `IC Engine Throttle` | `throttle_control` | Throttle servo setpoint, `0`…`1`. `NAN` while the engine is commanded off. | | `IC Engine Choke` | `choke_control` | Choke servo setpoint, `0`…`1`, where `1` is fully closed (richest mixture). Optional actuator. | -| `IC Engine Starter` | `starter_engine_control` | Electric starter motor setpoint, `0`…`1`. Optional actuator: the engine can also be hand-started. | +| `IC Engine Starter` | `starter_engine_control` | Electric starter motor setpoint, `0`…`1`. Optional actuator: the engine can also be hand-started. | ### State Machine diff --git a/docs/en/modules/modules_system.md b/docs/en/modules/modules_system.md index 18e1217ae0c..d8ac97da4d3 100644 --- a/docs/en/modules/modules_system.md +++ b/docs/en/modules/modules_system.md @@ -411,36 +411,15 @@ Source: [modules/internal_combustion_engine_control](https://github.com/PX4/PX4- ### Description -Controls a spark-ignition internal combustion engine (ICE): ignition, throttle, choke, and +Controls a spark-ignition internal combustion engine (ICE): ignition, throttle, choke and electric starter motor. A state machine sequences the start attempts, restarts the engine if -it stops in flight, and runs a closed loop idle RPM governor. +it stops in flight, and runs a closed-loop idle RPM governor. -The throttle demand is taken from motor 1 of the control allocator. The resulting setpoints are -published in [InternalCombustionEngineControl.msg](../msg_docs/InternalCombustionEngineControl.md), -which the mixer maps to the four `IC Engine *` output functions (ignition, throttle, choke, starter). -In the "Stopped" state the throttle setpoint is NAN, which by definition drives the output to -the disarmed value configured for that output. - -The engine speed is read from [Rpm.msg](../msg_docs/Rpm.md) and is required for operation: the -state machine only declares the engine running once the measured RPM exceeds ICE_MIN_RUN_RPM. -The state machine state is reported in -[InternalCombustionEngineStatus.msg](../msg_docs/InternalCombustionEngineStatus.md). - -### Enabling - -The module and the RPM capture driver are not in the default builds and have to be added to the -board configuration: - -``` -CONFIG_MODULES_INTERNAL_COMBUSTION_ENGINE_CONTROL=y -CONFIG_DRIVERS_RPM_CAPTURE=y -``` - -The module is then started at boot if +The module is not in the default builds, and is only started at boot if [ICE_EN](../advanced_config/parameter_reference.md#ICE_EN) is set. -See [Internal Combustion Engines](../actuators/internal_combustion_engine.md) for the hardware -setup, actuator configuration, start sequence timing, and idle governor tuning. +See [Internal Combustion Engines](../actuators/internal_combustion_engine.md) for the firmware +and hardware setup, actuator configuration, start sequence timing and idle governor tuning. ### Usage {#internal_combustion_engine_control_usage} diff --git a/docs/en/msg_docs/InternalCombustionEngineControl.md b/docs/en/msg_docs/InternalCombustionEngineControl.md index e4a1e975bd0..357c119b04d 100644 --- a/docs/en/msg_docs/InternalCombustionEngineControl.md +++ b/docs/en/msg_docs/InternalCombustionEngineControl.md @@ -6,24 +6,24 @@ pageClass: is-wide-page Internal combustion engine (ICE) actuator setpoints. -Published by the internal_combustion_engine_control module, which runs the engine +Published by the `internal_combustion_engine_control` module, which runs the engine start/stop state machine and the idle RPM governor. The mixer maps these setpoints onto the IC Engine output functions (ignition, throttle, choke, starter), which are assigned to the flight controller outputs. -The resulting state machine state is reported in InternalCombustionEngineStatus. +The resulting state machine state is reported in `InternalCombustionEngineStatus`. **TOPICS:** internal_combustion_engine_control ## Fields -| Name | Type | Unit [Frame] | Range/Enum | Description | -| ------------------------------------------------------------- | --------- | ------------ | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -| timestamp | `uint64` | us | | Time since system start | -| ignition_on | `bool` | | | Activate/deactivate the ignition (spark plug) | -| throttle_control | `float32` | norm | [0 : 1] | Throttle actuator setpoint, rate limited by ICE_THR_SLEW. 0 is closed throttle (Invalid: NaN Stops the engine, output goes to its disarmed value) | -| choke_control | `float32` | norm | [0 : 1] | Choke actuator setpoint, 1 is fully closed | -| starter_engine_control | `float32` | norm | [0 : 1] | (Electric) starter motor setpoint | -| user_request_motor_on | `bool` | | | User intent for the engine to be running, from the source selected by ICE_ON_SOURCE | +| Name | Type | Unit [Frame] | Range/Enum | Description | +| ------------------------------------------------------------- | --------- | ------------ | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | +| timestamp | `uint64` | us | | Time since system start | +| ignition_on | `bool` | | | Activate/deactivate the ignition (spark plug) | +| throttle_control | `float32` | norm | [0 : 1] | Throttle actuator setpoint, rate limited by `ICE_THR_SLEW`. 0 is closed throttle (Invalid: NaN Stops the engine: output goes to its disarmed value) | +| choke_control | `float32` | norm | [0 : 1] | Choke actuator setpoint, 1 is fully closed | +| starter_engine_control | `float32` | norm | [0 : 1] | (Electric) starter motor setpoint | +| user_request_motor_on | `bool` | | | User intent for the engine to be running, from the source selected by `ICE_ON_SOURCE` | ## Source Message @@ -34,20 +34,20 @@ The resulting state machine state is reported in InternalCombustionEngineStatus. ```c # Internal combustion engine (ICE) actuator setpoints # -# Published by the internal_combustion_engine_control module, which runs the engine +# Published by the `internal_combustion_engine_control` module, which runs the engine # start/stop state machine and the idle RPM governor. # The mixer maps these setpoints onto the IC Engine output functions (ignition, # throttle, choke, starter), which are assigned to the flight controller outputs. -# The resulting state machine state is reported in InternalCombustionEngineStatus. +# The resulting state machine state is reported in `InternalCombustionEngineStatus`. uint64 timestamp # [us] Time since system start bool ignition_on # Activate/deactivate the ignition (spark plug) -float32 throttle_control # [norm] [@range 0, 1] [@invalid NaN Stops the engine, output goes to its disarmed value] Throttle actuator setpoint, rate limited by ICE_THR_SLEW. 0 is closed throttle +float32 throttle_control # [norm] [@range 0, 1] [@invalid NaN Stops the engine: output goes to its disarmed value] Throttle actuator setpoint, rate limited by `ICE_THR_SLEW`. 0 is closed throttle float32 choke_control # [norm] [@range 0, 1] Choke actuator setpoint, 1 is fully closed float32 starter_engine_control # [norm] [@range 0, 1] (Electric) starter motor setpoint -bool user_request_motor_on # User intent for the engine to be running, from the source selected by ICE_ON_SOURCE +bool user_request_motor_on # User intent for the engine to be running, from the source selected by `ICE_ON_SOURCE` ``` ::: diff --git a/docs/en/msg_docs/index.md b/docs/en/msg_docs/index.md index a27d9f147ee..f6d90ab1eea 100644 --- a/docs/en/msg_docs/index.md +++ b/docs/en/msg_docs/index.md @@ -171,7 +171,7 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m - [HeaterStatus](HeaterStatus.md) - [HoverThrustEstimate](HoverThrustEstimate.md) - [InputRc](InputRc.md) -- [InternalCombustionEngineControl](InternalCombustionEngineControl.md) +- [InternalCombustionEngineControl](InternalCombustionEngineControl.md) — Internal combustion engine (ICE) actuator setpoints. - [InternalCombustionEngineStatus](InternalCombustionEngineStatus.md) - [IridiumsbdStatus](IridiumsbdStatus.md) - [IrlockReport](IrlockReport.md) — IRLOCK_REPORT message data.