Midnight Sun Firmware
Loading...
Searching...
No Matches
Steering

Steering Board Firmware. More...

Functions

StatusCode motor_can_process_rx (CanMessage *msg)
 
StatusCode steering_pedal_calib_init (SteeringStorage *storage)
 Initialize pedal calibration module. More...
 
StatusCode steering_pedal_calib_request (SteeringStorage *storage)
 Request calibration start via CAN — safe to call from any task. More...
 
StatusCode steering_pedal_calib_rx (SteeringStorage *storage)
 Handle CAN status updates from front controller during calibration. More...
 
bool steering_pedal_calib_is_active (SteeringStorage *storage)
 Check if calibration is currently active. More...
 

Detailed Description

Steering Board Firmware.

Steering Firmware.

Function Documentation

◆ steering_pedal_calib_init()

StatusCode steering_pedal_calib_init ( SteeringStorage storage)

Initialize pedal calibration module.

Parameters
storagePointer to steering storage
Returns
STATUS_CODE_OK on success, error otherwise

◆ steering_pedal_calib_is_active()

bool steering_pedal_calib_is_active ( SteeringStorage storage)

Check if calibration is currently active.

Parameters
storagePointer to steering storage
Returns
true if calibration is active, false otherwise

◆ steering_pedal_calib_request()

StatusCode steering_pedal_calib_request ( SteeringStorage storage)

Request calibration start via CAN — safe to call from any task.

Sets the pedal_calib_request CAN signal high. The display task's steering_pedal_calib_rx() processes the first cycle and clears the "press to continue" subtitle.

Parameters
storagePointer to steering storage
Returns
STATUS_CODE_OK on success, error otherwise

◆ steering_pedal_calib_rx()

StatusCode steering_pedal_calib_rx ( SteeringStorage storage)

Handle CAN status updates from front controller during calibration.

Must be called from the display task only (makes LVGL calls).

Parameters
storagePointer to steering storage
Returns
STATUS_CODE_OK on success, error otherwise