19#include "front_controller.h"
27#define CC_MIN_THRESHOLD 0.5f
28#define CC_KP 0.00000005
29#define ACCELERATION_LIMIT_M_S2 1
30#define ACCELERATION_LIMIT_KM_HS ACCELERATION_LIMIT_M_S2 * 3.6
31#define ACCELERATION_LIMIT_PER_1000HZ_CYCLE ACCELERATION_LIMIT_KM_HS / 1000
32#define CURRENT_STEP_LIMIT 0.0001
35 float current_motor_velocity;
36 float target_motor_velocity;
StatusCode cruise_control_init(FrontControllerStorage *storage)
Initializes the cruise control module.
Definition: cruise_control.c:77
StatusCode cruise_control_run()
Runs one cruise control calculation cycle. Called within motor_can.c when cruise control mode is on.
Definition: cruise_control.c:30
StatusCode
StatusCodes for various errors.
Definition: status.h:27
Definition: cruise_control.h:34
Front Controller storage.
Definition: front_controller.h:72