Skip to content

Commit

Permalink
Modify wrong id.
Browse files Browse the repository at this point in the history
  • Loading branch information
liyixin135 committed Jul 15, 2024
1 parent df36619 commit 9aaf324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rm_common/include/rm_common/decision/command_sender.h
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ class ShooterCommandSender : public TimeStampCommandSenderBase<rm_msgs::ShootCmd
}
}
double gimbal_error_tolerance;
gimbal_error_tolerance = track_data_.id == 7 ? track_buff_error_ : track_armor_error_;
gimbal_error_tolerance = track_data_.id == 12 ? track_buff_error_ : track_armor_error_;
if (((gimbal_des_error_.error > gimbal_error_tolerance && time - gimbal_des_error_.stamp < ros::Duration(0.1)) ||
(track_data_.accel > target_acceleration_tolerance_)) ||
(!suggest_fire_.data && armor_type_ == rm_msgs::StatusChangeRequest::ARMOR_OUTPOST_BASE))
Expand Down

0 comments on commit 9aaf324

Please sign in to comment.