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

cruise_control Firmware More...

Functions

StatusCode cruise_control_init (SteeringStorage *steering_storage)
 Initailize cruise control. More...
 
StatusCode cruise_control_down_handler ()
 Cruise control traget speed decrease event handler. More...
 
StatusCode cruise_control_up_handler ()
 Cruise control target speed increase event handler. More...
 
StatusCode cruise_control_run_medium_cycle ()
 Listen for cruise control buttons and update state appropriately. More...
 

Detailed Description

cruise_control Firmware

Function Documentation

◆ cruise_control_down_handler()

StatusCode cruise_control_down_handler ( )

Cruise control traget speed decrease event handler.

Returns
STATUS_CODE_OK if handled successfully STATUS_CODE_UNINITIALIZED if cruise control is not initialized

◆ cruise_control_init()

StatusCode cruise_control_init ( SteeringStorage steering_storage)

Initailize cruise control.

Parameters
storagePointer to the SteeringStorage instance
Returns
STATUS_CODE_OK if initialized successfully STATUS_CODE_INVALID_ARGS if an invalid parameter is passed in

◆ cruise_control_run_medium_cycle()

StatusCode cruise_control_run_medium_cycle ( )

Listen for cruise control buttons and update state appropriately.

Returns
STATUS_CODE_INVALID_ARGS if the car is not in drive or is not driving within the defined cruise control range

◆ cruise_control_up_handler()

StatusCode cruise_control_up_handler ( )

Cruise control target speed increase event handler.

Returns
STATUS_CODE_OK if handled successfully STATUS_CODE_UNINITIALIZED if cruise control is not initialized