rusefi icon indicating copy to clipboard operation
rusefi copied to clipboard

`Launch Control` activation/deactivation from Lua script

Open kifir23917 opened this issue 8 months ago • 0 comments

We need to have a possibility of activation/deactivation Launch Control from Lua script. To implement this functionality we need to:

  1. register new Lua function setLaunchControlActivated that accepts a single boolean parameter
  2. add a new option Lua to the [Activation Mode] drop-down list on Launch Control dialog in TunerStudio: Screenshot - Lua Activation Mode (Launch Control)

When Activation Mode is Lua, ALL the following conditions should be satisfied to make an engine working in PreLaunch/Launch modes:

  • switch condition: true was passed as parameter to the latest setLaunchControlActivated fuction call
  • speed condition: Vechicle Speed is less than [Speed Threshold (kph)] setting
  • TPS condition: TPS is greater than [TPS Threshold] setting
  • RPM condition: RPM is between [Launch RPM(rpm)] - [Launch Control Window(RPM))] and [Launch RPM(rpm)] (for PreLaunch mode) OR RPM is greater than [Launch RPM(rpm)] setting (for Launch Mode)

kifir23917 avatar Jun 13 '24 13:06 kifir23917