Midnight Sun Firmware
Loading...
Searching...
No Matches
motor_can.h
1#pragma once
2
3/************************************************************************************************
4 * @file motor_can.h
5 *
6 * @brief Header file for motor can
7 *
8 * @date 2025-11-25
9 * @author Midnight Sun Team #24 - MSXVI
10 ************************************************************************************************/
11
12/* Standard library Headers */
13#include <stdint.h>
14
15/* Inter-component Headers */
16#include "status.h"
17
18/* Intra-component Headers */
19#include "front_controller.h"
20#include "ws22_motor_can.h"
21
28#define VEL_TO_RPM_RATIO 0.57147 // from MSXV
29
37
45
StatusCode motor_can_init(FrontControllerStorage *storage)
Initializes the motor can, loads front controller storage data.
Definition: motor_can.c:94
StatusCode motor_can_update_target_current_velocity()
Updates target current and velocity of motors based on drive state.
Definition: motor_can.c:48
StatusCode
StatusCodes for various errors.
Definition: status.h:27
Front Controller storage.
Definition: front_controller.h:66