From 47722a9c4b0dc843921bcae8de82c22a9987b2c4 Mon Sep 17 00:00:00 2001 From: rusefillc <48498823+rusefillc@users.noreply.github.com> Date: Wed, 20 Jul 2022 07:30:37 -0400 Subject: [PATCH] Updated Lua Scripting (markdown) --- Lua-Scripting.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Lua-Scripting.md b/Lua-Scripting.md index 7bb97088..123b3c28 100644 --- a/Lua-Scripting.md +++ b/Lua-Scripting.md @@ -209,7 +209,7 @@ Puts MCU into standby low current consumption mode. Reads the specified sensor. - Parameters - - `name`: Name of the sensor to read. [A list of sensor indices can be found here.](https://github.com/rusefi/rusefi/blob/master/firmware/controllers/sensors/sensor_type.h) + - `name`: Name of the sensor to read. [A list of sensor names can be found here.](https://github.com/rusefi/rusefi/blob/master/firmware/controllers/sensors/sensor_type.h) - Returns - A reading from the sensor, or `nil` if the sensor has a problem or isn't configured. @@ -379,6 +379,12 @@ function onTick() end ``` +# set sensor value +``` +vssSensor = Sensor.new("VSS"); +vssSensor.set(90) +``` + # CAN receive ``` canRxAdd(0x500)