MBot Software Library  v1.0
An API documentation to mbot_firmware repository
mbot_diff_defs.h
1 #include <rc/defs/common_defs.h>
2 
3 #ifndef RC_DIFF_DEFS_H
4 #define RC_DIFF_DEFS_H
5 
6 #define LEFT_MOTOR_CHANNEL 1
7 #define RIGHT_MOTOR_CHANNEL 3
8 // #define DIFF_WHEEL_RADIUS 0.08
9 // #define DIFF_BASE_RADIUS 0.075
10 
11 typedef enum mbot_fram_cfg_length_t{
12  WHEEL_CALIBRATION_LEN = 8 * sizeof(float), // 8 floats
13  PID_VALUES_LEN = 20 * sizeof(float), // 20 floats
14 } mbot_fram_cfg_length_t;
15 
16 typedef enum mbot_fram_cfg_offset_t{
17  WHEEL_CALIBRATION_ADDR = MPU_FINAL_FRAM_ADDR, // have to start at 102 since thats where the MPU stops
18  PID_VALUES_ADDR = WHEEL_CALIBRATION_ADDR + WHEEL_CALIBRATION_LEN,
19 } mbot_fram_cfg_offset_t;
20 
21 #endif