mirror of
https://gitee.com/dlmu-cone/half-steering-basic-framework
synced 2026-10-24 01:52:20 +08:00
累计问题解决,拨盘电机仍有问题
This commit is contained in:
@@ -229,7 +229,7 @@ static void RemoteControlSet()
|
||||
else
|
||||
shoot_cmd_send.friction_mode = FRICTION_OFF;
|
||||
// 拨弹控制,遥控器固定为一种拨弹模式,可自行选择
|
||||
if (rc_data[TEMP].rc.dial < -500)
|
||||
if (rc_data[TEMP].rc.dial >500)
|
||||
shoot_cmd_send.load_mode = LOAD_1_BULLET;
|
||||
else
|
||||
shoot_cmd_send.load_mode = LOAD_STOP;
|
||||
@@ -341,6 +341,8 @@ static void EmergencyHandler()
|
||||
{
|
||||
robot_state = ROBOT_STOP;
|
||||
gimbal_cmd_send.gimbal_mode = GIMBAL_ZERO_FORCE;
|
||||
gimbal_cmd_send.yaw = 0;
|
||||
gimbal_cmd_send.pitch = 0;
|
||||
chassis_cmd_send.chassis_mode = CHASSIS_ZERO_FORCE;
|
||||
shoot_cmd_send.shoot_mode = SHOOT_OFF;
|
||||
shoot_cmd_send.friction_mode = FRICTION_OFF;
|
||||
|
||||
Reference in New Issue
Block a user