Skip to content

Commit

Permalink
Make a reset.
Browse files Browse the repository at this point in the history
  • Loading branch information
liyixin135 committed Aug 4, 2024
1 parent 043c114 commit e5865b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/chassis_gimbal_shooter_cover_manual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,22 +209,22 @@ void ChassisGimbalShooterCoverManual::wPressing()
void ChassisGimbalShooterCoverManual::aPressing()
{
ChassisGimbalShooterManual::aPressing();
if (switch_buff_srv_->getTarget() != rm_msgs::StatusChangeRequest::ARMOR && is_gyro_)
changeGyroSpeedMode(LOW);
if (switch_buff_srv_->getTarget() == rm_msgs::StatusChangeRequest::ARMOR && is_gyro_)
changeGyroSpeedMode(NORMAL);
}

void ChassisGimbalShooterCoverManual::sPressing()
{
ChassisGimbalShooterManual::sPressing();
if (switch_buff_srv_->getTarget() != rm_msgs::StatusChangeRequest::ARMOR && is_gyro_)
changeGyroSpeedMode(LOW);
if (switch_buff_srv_->getTarget() == rm_msgs::StatusChangeRequest::ARMOR && is_gyro_)
changeGyroSpeedMode(NORMAL);
}

void ChassisGimbalShooterCoverManual::dPressing()
{
ChassisGimbalShooterManual::dPressing();
if (switch_buff_srv_->getTarget() != rm_msgs::StatusChangeRequest::ARMOR && is_gyro_)
changeGyroSpeedMode(LOW);
if (switch_buff_srv_->getTarget() == rm_msgs::StatusChangeRequest::ARMOR && is_gyro_)
changeGyroSpeedMode(NORMAL);
}

void ChassisGimbalShooterCoverManual::wRelease()
Expand Down

0 comments on commit e5865b5

Please sign in to comment.