Skip to content

Commit

Permalink
Merge branch 'master' into follow-feedforward
Browse files Browse the repository at this point in the history
  • Loading branch information
liyixin135 committed Jul 16, 2024
2 parents 58f53c7 + fd616fe commit 86eac74
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/chassis_gimbal_shooter_manual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,13 @@ void ChassisGimbalShooterManual::mouseLeftPress()
}
if (prepare_shoot_)
{
shooter_cmd_sender_->setMode(rm_msgs::ShootCmd::PUSH);
shooter_cmd_sender_->checkError(ros::Time::now());
if (!mouse_right_event_.getState() || (mouse_right_event_.getState() && 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);
}
}

Expand Down

0 comments on commit 86eac74

Please sign in to comment.