Skip to content

Commit

Permalink
Fix a logic problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
YoujianWu committed Mar 25, 2024
1 parent a89c2e6 commit 44d6df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chassis_gimbal_shooter_manual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ void ChassisGimbalShooterManual::vPress()

void ChassisGimbalShooterManual::shiftPress()
{
if (chassis_cmd_sender_->getMsg()->mode != rm_msgs::ChassisCmd::FOLLOW || is_gyro_)
if (chassis_cmd_sender_->getMsg()->mode != rm_msgs::ChassisCmd::FOLLOW && is_gyro_)
{
chassis_cmd_sender_->setMode(rm_msgs::ChassisCmd::FOLLOW);
vel_cmd_sender_->setAngularZVel(1.0);
Expand Down

0 comments on commit 44d6df4

Please sign in to comment.