Skip to content

Commit

Permalink
Modify the wrong of shoot when tracking and exiting auto_mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
liyixin135 committed Jul 11, 2024
1 parent def92d6 commit 506e1e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/chassis_gimbal_shooter_manual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ void ChassisGimbalShooterManual::mouseRightPress()
{
if (is_auto_ && robot_id_ != rm_msgs::GameRobotStatus::BLUE_HERO && robot_id_ != rm_msgs::GameRobotStatus::RED_HERO)
sentryMode();
else if (!mouse_left_event_.getState() && shooter_cmd_sender_->getMsg()->mode == rm_msgs::ShootCmd::PUSH)
shooter_cmd_sender_->setMode(rm_msgs::ShootCmd::READY);
else
{
if (track_data_.id == 0)
Expand Down

0 comments on commit 506e1e1

Please sign in to comment.