diff --git a/firmware/controllers/lua/examples/etb-test-script.lua b/firmware/controllers/lua/examples/etb-test-script.lua new file mode 100644 index 0000000000..ff680f8d1a --- /dev/null +++ b/firmware/controllers/lua/examples/etb-test-script.lua @@ -0,0 +1,7 @@ +setTickRate(20) + +ppsSensor = Sensor.new("AcceleratorPedal") + +function onTick() + ppsSensor : set(25) +end diff --git a/firmware/controllers/lua/examples/ford-focus-ii-pps.txt b/firmware/controllers/lua/examples/ford-focus-ii-pps.txt index 82f0dd6b3f..426cf5037e 100644 --- a/firmware/controllers/lua/examples/ford-focus-ii-pps.txt +++ b/firmware/controllers/lua/examples/ford-focus-ii-pps.txt @@ -1,6 +1,7 @@ -- https://sourceforge.net/p/ecu/wiki/canbus/ -- todo: CAN ID 430h, period 50ms, produced by SJB. Byte 7: Bit2 A/C request (button pressed). +-- see also 'etb-test-script.lua' canRxAdd(0x201) setTickRate(20)