Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off the scope when moving #86

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading