19#include "front_controller.h"
20#include "ws22_motor_can.h"
28#define VEL_TO_RPM_RATIO 0.57147
char * motor_can_get_current_state_str()
print a state as a string
StatusCode motor_can_init(FrontControllerStorage *storage)
Initializes the motor can, loads front controller storage data.
Definition: motor_can.c:128
StatusCode motor_can_get_current_state(VehicleDriveState *current_state)
retrieve current vehicle drive state
Definition: motor_can.c:138
StatusCode motor_can_update_target_current_velocity()
Updates target current and velocity of motors based on drive state.
Definition: motor_can.c:58
VehicleDriveState
Vehicle drive states.
Definition: global_enums.h:32
StatusCode
StatusCodes for various errors.
Definition: status.h:27
Front Controller storage.
Definition: front_controller.h:72