diff --git a/Lua-Scripting.md b/Lua-Scripting.md index 8c566500..b85e147a 100644 --- a/Lua-Scripting.md +++ b/Lua-Scripting.md @@ -9,10 +9,10 @@ rusEFI strives to offer users as much flexibility as possible, to provide a comp rusEFI provides a number of hooks to interface with the firmware and to manipulate its state and read/write the current configuration. - Hooks for CAN bus communications; see [CAN bus](#can-bus). -- Inputs from sensors can be read directly; see [Input](#input). +- Inputs from sensors can be read directly; see [Input](#input). You can also produce sensor values with Lua. - ECU general purpose outputs see [Output](#output). - Aspects of the engine can be controlled directly; see [Engine Control](#engine-control). -- ECU Configurations can be accessed via the [`getCalibration()`](#getcalibrationname) hook, and manipulated via the [`setCalibration()`](#setcalibrationname-value-needevent) hook. +- ECU Configurations can be accessed (read/write) via the [`getCalibration()`](#getcalibrationname) hook, and manipulated via the [`setCalibration()`](#setcalibrationname-value-needevent) hook. - Configuration names are dynamically updated to match the current firmware; see here for the current list: [https://github.com/rusefi/rusefi/blob/master/firmware/controllers/lua/generated/value_lookup_generated.md](https://github.com/rusefi/rusefi/blob/master/firmware/controllers/lua/generated/value_lookup_generated.md). - ECU internal state, i.e. logic outputs from the firmware can be read via the universal [`getOutput()`](#getoutputname) hook, and some can be altered via correspondingly named hooks i.e. `setOutputName()` where `OutputName` is name of the output, e.g. [`setClutchUpState()`](#setclutchupstatevalue). See also: [Output](#output). - Output names are dynamically updated to match the current firmware; see here for the current list: [https://github.com/rusefi/rusefi/blob/master/firmware/controllers/lua/generated/output_lookup_generated.cpp](https://github.com/rusefi/rusefi/blob/master/firmware/controllers/lua/generated/output_lookup_generated.cpp).