MBot Software Library
v1.0
An API documentation to mbot_firmware repository
mbot_firmware
src
controller.h
1
#include <mbot_lcm_msgs_serial.h>
2
#include <mbot/defs/mbot_params.h>
3
4
typedef
struct
mbot_pid_cfg_t
{
5
float
kp;
6
float
ki;
7
float
kp;
8
float
Tf;
9
}
mbot_pid_cfg_t
;
10
11
typedef
struct
mbot_ctlr_cfg_t
{
12
mbot_pid_cfg_t
right;
13
mbot_pid_cfg_t
left;
14
mbot_pid_cfg_t
back;
15
mbot_pid_cfg_t
vx;
16
mbot_pid_cfg_t
vy;
17
mbot_pid_cfg_t
wz;
18
}
mbot_ctlr_cfg_t
;
19
20
rc_filter_t
left_wheel_pid;
21
rc_filter_t
right_wheel_pid;
22
rc_filter_t
back_wheel_pid;
23
rc_filter_t
mbot_vx_pid;
24
rc_filter_t
mbot_vy_pid;
25
rc_filter_t
mbot_wz_pid;
26
27
int
mbot_init_ctlr(
mbot_ctlr_cfg_t
ctlr_cfg);
28
int
mbot_motor_vel_ctlr(serial_mbot_motor_vel_t vel_cmd, serial_mbot_motor_vel_t vel, serial_mbot_motor_pwm_t &mbot_motor_pwm);
29
int
mbot_ctlr(serial_twist2D_t vel_cmd, serial_twist2D_t vel, serial_mbot_motor_vel_t &mbot_motor_vel);
mbot_ctlr_cfg_t
Definition:
controller.h:11
mbot_pid_cfg_t
Definition:
controller.h:4
rc_filter_t
Struct containing configuration and state of a SISO filter.
Definition:
filter.h:43
Generated by
1.9.1