Go to the source code of this file.
◆ CONTROL_MODE_COUNT
| #define CONTROL_MODE_COUNT 2 |
The states of motor control: running and stopping ;电机控制的状态,分为运行和停止两种状态
◆ MOTOR_COUNT
number of motors controlled ;控制的电机个数
◆ OP_MODE_COUNT
types of motor operation modes: speed mode and speed mode ;电机运行模式的种类,速度模式和速度模式两种
◆ motor_control_mode
| Enumerator |
|---|
| MOTOR_CONTROL_INDEPEND | |
| MOTOR_CONTROL_ALL | |
◆ motor_op_mode
| Enumerator |
|---|
| MOTOR_DISABLE | |
| MOTOR_ENABLE | |
◆ cmd_all()
Command processing when all motors are enabled ;所有电机使能时的命令处理
◆ cmd_indivdual()
| void cmd_indivdual |
( |
void |
| ) |
|
Command processing when independently controlling motors ;独立控制电机时的命令处理
◆ disable_all_motor()
| void disable_all_motor |
( |
void |
| ) |
|
Disable all motors ;禁用所有电机
◆ enable_all_motor()
| void enable_all_motor |
( |
void |
| ) |
|
Enable all motors ;使能所有电机
◆ process_cmd()
| void process_cmd |
( |
void |
| ) |
|
Command processing:handling commands sent by the upper computer ;命令处理:处理上位机发送的命令