Firmware and MegaTune patch for 1.0.23 - ALS, Launch control, Soft revlimiter, etc
With this modification, the current ALS code reworked a little to meet racer's needs. Several options implemented, whose you see only on expensive professional systems before. Take a look to the setup window:
Let me explain the config variables:
Global settings
- Low RPM: ALS (retard, enrichment, spark-cutting) is disabled below this rpm to avoid engine stalling (you don't need this on a working system, only while experimenting). Suggested value: your idle RPM without enabled ALS.
- Deactivation time: ALS disabled after the specified interval. Suggested value: 5-15 seconds. set always!
- Deactivation EGT: ALS disabled if exhaust gas temperature is over the specified limit. Suggested value: 800 degrees Celsius. (under the melting point of your exhaust system material...) set always!
- Reactivation Minimum TPS: After deactivation (time elapsed), you only need to open throttle wider than this value to re-activate the ALS. Suggested value: 70-80%. Always set this higher than all 'Decrease end TPS'-es!
- Fuel enrichment: The fuel surplus while the ALS is active. Suggested value: 15-25%.
- Throttle kicker solenoid: Define an output channel if you have one (always-open-throttle-racecar-owners simply disable and forget this option :-) ). The firmware automatically release the TKS if the conditions disabled the ALS, even the ALS switch is on.
Igniton retarding and spark cutting is done as seen of the figure:
Note: the horizontal axis is labelled TPS, don't think that is RPM!
Ignition Retarding
- Maximum retard: The maximum ignition retarding value needed when you release the pedal. Suggested value: The highest ignition advance value plus 5-10. Zero disables retarding.
- Decrease start TPS: The maximum throttle opening you want to use the maximum retard. Suggested value: The TPS value you read with active throttle kicker plus 10-20%.
- Decrease end TPS: The minimum throttle opening you don't want to use ignition retarding. Suggested value: Set the minimum throttle where the engine can produce the desired boost. It must be 40-60%, or you need to re-think your engine implementation. If you set this too low: the turbo lag will be bigger. If you set this too high: the engine will be too weak.
Spark Cutting
- Maximum cut level: Percentage of sparks to be 'cut' (dismiss the event). The maximum ignition cut value needed when you release the pedal. Suggested value: 20-30%. Zero disables spark cutting.
- Decrease start TPS: The maximum throttle opening you want to use the maximum cut level. Suggested value: Simply set the TPS value you read with active throttle kicker. Add more 5%, when needed.
- Decrease end TPS: The minimum throttle opening you don't want to use ignition retarding. Suggested value: 10-20% bigger than start TPS.
You can enable ALS functions in my_make:\nÿ1ÿ
Override default maximum 20 degree ATDC limit:\nÿ2ÿ
The patch contains implementation of three new soft revlimiters. Soft revlimiters cut spark instead of cutting fuel if the desired maximum rpm are about to beaten. These are used for idle control, launch control and redline control. Idle control is TPS sensitive, and disabled, if ALS enabled and working. Launch control can be enabled with a button on the steering wheel, and it can be combined with the ALS. Redline control is for normal overrun protection without unsafe lean run, which is essential for the turbo engines. All (soft)revlimiters in one window:
And there is a little explaining about these.
Idle control
Used on racecars, where no other methods (IAC stepper, PWM solenoid) can be applied, especially where always open throttle is needed. The main function is to limit the rpm on a reasonable low range, when the pedal is depressed, and ALS is not active. See the figure.
- Enable: Enable or disable sparkcut based idle control.
- Minimum RPM: The operational range starting rpm. Suggested value: 800-1000.
- Maximum TPS: The maximum TPS where the idle control allowed to operate. Suggested value: The idle TPS value (0% in normal case), or add more 2-3%.
- Control range: The operational range. Suggested value: 200-300.
You can enable spark-cut based idle control in my_make:\nÿ3ÿ
Launch control
Used on start line, to achieve best performance with the less effort. Driver must press gas pedal to 100%, and press a button on the wheel. Launch control routine need to limit the rpm into a desired range, while the button pressed, and allow ALS to work (ALS normally disabled on so high TPS). See the figure how it is achieved:
- Minimum RPM: The operational range starting rpm. Suggested value: The highest torque rpm, or whatever.
- Control range: The operational range. This one can be set via the control range of the redline control. Suggested value: 200-500.
You can enable launch control in my_make:\nÿ4ÿ
Redline control
Simple sparkcut-based revlimiter, used below the hard RPM limiter, as you see on this figure:
- Minimum RPM: The operational range starting rpm. Suggested value: Hard rpm limit minus the control range.
- Control range: The operational range. Suggested value: 200-500.
You can enable launch control in my_make:\nÿ5ÿ
If you are understand and accepted the warnings generated in compile time, when using SOFTRPM based new functions, you can disable them with the following line in my_make:\nÿ6ÿ
Fero's suggestion for ALS:
* I think that the ignition resolution could be 1 deg(not 0.25) in ATDC mode so, the ignition window could be bigger than 64 degrees then. It could be 40 degrees ATDC and 54 degrees BTDC for example.
* Theres should be an RPM range at the low RPM settings, so the ignition cut, and the retard could not be changed so fast, it could be a smooth rpm range to activate the retard, and cut settings.