Post Crash Brake

Summary

The post crash brake controller applies the brakes when a crash is detected. It is a safety feature found on some modern cars.

When it detects sudden deceleration on either the X or Y axis, it starts by pressing the brakes until the speed is under 0.5m/s, at which point it will apply the parking brake to hold the car in place.

The system will also activate the hazard lights once it has stopped the car.


File Info

Filename postCrashBrake.lua
Path /lua/vehicle/controller/postCrashBrake.lua
Type Auxiliary
Usage type Multiple (Not useful)

JBeam Properties

number
type
50
default
The acceleration (g) required to trigger the system.
number
type
3
default
The number of crashes before the system is disabled.


Example Usage


"controller": [
    ["fileName"],
    ["postCrashBrake", {"brakeThreshold": 60}],
],
Last modified: December 18, 2021

Any further questions?

Join our discord
Our documentation is currently incomplete and undergoing active development. If you have any questions or feedback, please visit this forum thread.