Skip to main content
FW version: Stable

Safety features

Lynx implements multiple functions to enhance operational safety.

/safetyopts Parameter

This bitwise parameter controls the enabling/disabling of safety features.

BitDescription
0Permanently disarms from accelerator signal (sig_acc) if NaN
Without this setting, NaN on accelerator still disarms but allows rearming once NaN clears.
1Disarms from brake signal (sig_brake) if NaN
2Forces brake mode and prevents acceleration if sig_brake is NaN
3Prevents recovery from timeout on CAN msg 0x5FF
4Disables timeout on CAN msg 0x5FF

Disarming Block

The built-in safety system monitors various inputs and can disable the accelerator signal path (before entering the driver) and cruise function when safety risks are detected. This ensures the motor won't accelerate from accelerator input and cruise remains deactivated during potential safety risks. The system structure is illustrated below.

disarming.jpg

Disarm Reasons

Various sources can trigger safety risk conditions, resulting in device disarming. The following list details potential sources:

  • Positive values: Device will recover from disarm state
  • Negative values: Device remains disarmed until reboot
/disarm_reason valueDescription
0Device armed
1Initial state after device boot
2Accelerator signal (sig_acc) is NaN
10Seat switch activated
11Reverse activation disarm
12Map change disarm (mapopts&4)
13BMS state disarm (undervoltage and others)
14BMS charging indication
15BMS error
16Device shutdown in progress
17Identrun in progress
18Accelerator signal (sig_acc) NaN - permanent disarm (safetyopts&1)
19Geofence message timeout
20Geofence message disarm command
21Driver error state
23Step-up charging active
24Device in slave configuration
25Accelerator disarm braking (drvopts&128)
26Brake signal (sig_brake) NaN (safetyopts&2)
27Brake signal disarm !(drvopts&1)
28Driver override
29Device locked

While most input reactions are hardcoded, the disarming block can be customized through the safetyopts, drvopts, and mapopts parameters.