PID控制
This commit is contained in:
@@ -86,6 +86,6 @@ bool ArmorFinder::sendBoxPosition(uint16_t shoot_delay) {
|
||||
// 计算是否满足开火条件 (例如残差小于 1.5 度)
|
||||
can_fire = AutoTrigger::should_fire(*this, MUZZLE_VELOCITY, yaw, pitch_comp, 0.5);
|
||||
|
||||
return sendTarget(serial, yaw, shoot_delay, can_fire);
|
||||
return sendTarget(serial, last_yaw, shoot_delay, can_fire);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user