增加驱动两路刹车电机

This commit is contained in:
2025-07-06 10:57:41 +08:00
parent 9b3f5819ac
commit 8c9396e1f5
7 changed files with 50 additions and 26 deletions

View File

@@ -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;