The pedalbox of the HRD05 reads the sensors installed on the accelerator and brake pedals. There are 2 sensors for each pedal, which are checked for signal plausiblity (see APPS regulations).
A CAN bus network is used to share digital messages among the various systems within the car.
A proper safe state is a torque request to 0. The inverter must remain active via the 'enable' bit DMC_EnableRq
! If the inverter would be switched off, a huge back-EMF regenerating torque would be created at high speeds. Refer to docs/Brusa/DMC5_ControlConcept_0.3.pdf
, section 6.1.
The implementation of the rules is described below. Additionally, @rule
annotations can be found in the source code itself.
Two sensors are used for each pedal. The raw signal is software-filtered with a moving average. After comparing the sensor values with the offset given during the startup phase, the APPS signal is generated by taking the average of the 2 sensor values.
If an implausibility occurs, the requested torque and brake torque are both set to zero.
The maximum delay of digital transmission can at most be 500ms. The safe state is activated if no valid CAN has been received for the duration of the timeout, set by the CAN_TIMEOUT
constant.
Regarding T 11.9.2.d
, handling data corruption is provided by the CAN protocol, as it implements a cyclic redundancy check (CRC) / checksum.
The car will respond to APPS when the following conditions are met:
- The tractive system (TS) status is active, as received from a CAN message from the dashboard.
- The inverter notified that it's ready to be operated, via CAN bit
DMC_Ready
. - The driver has applied pressure to the brake pedal, read using the position sensors.
- The driver requested to start the car with the button on the dashboard, this status is received via the dash CAN message.
A buzzer is activated by setting a digital output pin high for 2 seconds.
@todo