Skip to content

Commit

Permalink
Modify param name in msg.
Browse files Browse the repository at this point in the history
  • Loading branch information
liyixin135 committed Jul 19, 2024
1 parent a9bf537 commit 617b8c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/chassis_gimbal_shooter_manual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,11 +686,11 @@ void ChassisGimbalShooterManual::sentryMode()
if (track_data_.id == 0)
{
gimbal_cmd_sender_->setMode(rm_msgs::GimbalCmd::TRAJ);
double yaw_des, pitch_des;
yaw_des = M_PI * count_ / 900;
pitch_des = 0.15 * sin(2 * M_PI * count_ / 900) + 0.2;
double traj_yaw, traj_pitch;
traj_yaw = M_PI * count_ / 900;
traj_pitch = 0.15 * sin(2 * M_PI * count_ / 900) + 0.2;
count_ = (count_ + 1) % 900;
gimbal_cmd_sender_->setYawAndPitchTraj(yaw_des, pitch_des);
gimbal_cmd_sender_->setYawAndPitchTraj(traj_yaw, traj_pitch);
shooter_cmd_sender_->setMode(rm_msgs::ShootCmd::READY);
count_++;
}
Expand Down

0 comments on commit 617b8c3

Please sign in to comment.