Skip to content

Commit

Permalink
Modify something wrong.
Browse files Browse the repository at this point in the history
  • Loading branch information
liyixin135 committed Jun 15, 2024
1 parent 4b71f2f commit 6438dd6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/chassis_gimbal_shooter_manual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,15 @@ void ChassisGimbalShooterManual::mouseLeftPress()
prepare_shoot_ = false;
}
if (prepare_shoot_)
if ((!turn_flag_) || (turn_flag_ && track_data_.id != 0))
{
if (!turn_flag_ || (turn_flag_ && track_data_.id != 0))
{
shooter_cmd_sender_->setMode(rm_msgs::ShootCmd::PUSH);
shooter_cmd_sender_->checkError(ros::Time::now());
}
else
shooter_cmd_sender_->setMode(rm_msgs::ShootCmd::READY);
}
}

void ChassisGimbalShooterManual::mouseRightPress()
Expand Down

0 comments on commit 6438dd6

Please sign in to comment.