增加驱动两路刹车电机
This commit is contained in:
@@ -29,7 +29,8 @@ typedef struct BrakeSystem
|
||||
uint8_t brake_command; // 刹车命令变量:1表示刹车,2表示释放
|
||||
uint8_t brake_motor_state; // 刹车电机状态变量:0停止,1前进,2后退
|
||||
uint8_t brake_command_in_progress; // 刹车命令执行状态:0表示空闲,1表示正在执行
|
||||
|
||||
uint8_t brake_direction;
|
||||
|
||||
uint8_t emergency_stop_switch; // 急停开关
|
||||
uint8_t remote_emergency_stop; // 遥控器急停开关
|
||||
uint8_t remote_fault; // 遥控器故障
|
||||
@@ -41,6 +42,7 @@ typedef struct BrakeSystem
|
||||
uint8_t old_brake_position; // 旧的刹车位置
|
||||
Timer brake_apply_timer; // 刹车定时器
|
||||
Timer brake_release_timer; // 释放刹车定时器
|
||||
Timer brake_param_timer; //参数更新时间
|
||||
|
||||
} BrakeSystem;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user