SirStone a024a2e32b DevControlBot: fix gun plumbing — detach from body turn, non-blocking fire, degree slop
The gun turn math is written for setAdjustGunForBodyTurn(true) (absolute bearing
-> normalizeRelativeAngle(bearing - getGunDirection())), but the flag was never
set: the gun inherited the body's turn. Set the three adjust flags.

Two firing bugs found while measuring the geometric baseline against a stationary
SittingDuck:
- computeGun called the BLOCKING fire(), which calls go() itself, and the run
  loop called go() again => every shot double-stepped the server. Use setFire.
- the fire slop compared a degrees error against degToRad(FireSlopDeg) = 0.052
  deg. Compare in degrees; 1 deg (3 deg fired mid-slew, up to 3 deg off).

Baseline vs stationary: 110/112 hits, aim error sd 0.04 deg.
2026-10-06 08:28:15 +02:00
S
Description
No description provided
120 MiB
Languages
Nim 76%
Python 16.6%
Shell 3.9%
Java 2.7%
HTML 0.7%