Skip to content

Commit

Permalink
Turn off the scope when moving.
Browse files Browse the repository at this point in the history
  • Loading branch information
liyixin135 committed Oct 18, 2023
1 parent f39aad9 commit 8b531e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/chassis_gimbal_shooter_manual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,9 @@ void ChassisGimbalShooterManual::leftSwitchMidOn(ros::Duration duration)
{
if (track_data_.id == 0)
gimbal_cmd_sender_->setMode(rm_msgs::GimbalCmd::RATE);
else
gimbal_cmd_sender_->setMode(rm_msgs::GimbalCmd::TRACK);
else说了HEAD就代表当前,所以上一个版本其实就是当前 - 1,我们也可以用

gimbal_cmd_sender_->setMode(rm_msgs::GimbalCmd::TRACK);
}

void ChassisGimbalShooterManual::leftSwitchUpRise()
Expand Down Expand Up @@ -414,6 +415,8 @@ void ChassisGimbalShooterManual::rPress()
adjust_image_transmission_ = false;
}
}
if (x_scale_ != 0 || y_scale_ != 0)
use_scope_ = false;
}

void ChassisGimbalShooterManual::gPress()
Expand Down

0 comments on commit 8b531e8

Please sign in to comment.