修改角度阈值

This commit is contained in:
2026-03-24 08:51:06 +08:00
parent 5cd4da1fcc
commit d4e3887a84

View File

@@ -77,7 +77,7 @@ bool ArmorFinder::sendBoxPosition(uint16_t shoot_delay) {
double pitch_comp = BallisticSolver::get_pitch(x_target, y_target, MUZZLE_VELOCITY, BALLISTIC_K);
// 计算是否满足开火条件 (例如残差小于 1.5 度)
can_fire = AutoTrigger::should_fire(*this, MUZZLE_VELOCITY, yaw, pitch_comp, 1.5);
can_fire = AutoTrigger::should_fire(*this, MUZZLE_VELOCITY, yaw, pitch_comp, 0.5);
return sendTarget(serial, yaw, shoot_delay, can_fire);
}