Updated Lua Scripting (markdown)

This commit is contained in:
rusefillc 2021-12-15 20:28:29 -05:00
parent 9faf4b1a4e
commit 783432ae98
1 changed files with 7 additions and 1 deletions

View File

@ -41,11 +41,17 @@ end
## User Settings
### `getOutput(name)`
For example ``getOutput("clutchUpState")`` ``getOutput("brakePedalState")``
See https://github.com/rusefi/rusefi/blob/master/firmware/controllers/lua/generated/output_lookup_generated.cpp for output names.
### `getCalibration(name)`
Gets current calibration value for specified scalar setting. For example ``getCalibration("cranking.rpm")``
See https://github.com/rusefi/rusefi/blob/master/firmware/controllers/lua/generated/value_lookup_generated.cpp for field names
See https://github.com/rusefi/rusefi/blob/master/firmware/controllers/lua/generated/value_lookup_generated.cpp for field names.
### `setCalibration(name, value, needEvent)`