feat(ground-ai): add the trigger decision channel
Estimate hit probability and request movement speed from the weapon solution. Use visible aim samples, stock shell penetration, and separate burst paths.
This commit is contained in:
1 parent
1590a2fea9
commit
4e658cae9c
20 files changed
+693
-113
No files matched your search
@@ -352,6 +352,18 @@
|
||||
"scanPeriodSec": 6.0
|
||||
},
|
||||
|
||||
// Fire permission (decision layer design, section 6). A main-gun shot needs its estimated hit
|
||||
// probability to reach the fire threshold. The hit probability compares the visible part of the
|
||||
// target (its projected width, targetHalfHeightM high, shrunk when only part of it is visible)
|
||||
// with the expected angular error: aimErrorDeg, plus moveErrDegPerMps per m/s of own speed and
|
||||
// turnErrDegPerDegSec per deg/s of hull turn (times stabErrFactor with a stabilizer), plus the
|
||||
// lead uncertainty on a crossing target, with the barrel's current offset as the mean error.
|
||||
// The threshold starts at fireThreshold and drops by aimingThresholdBonus when the target aims
|
||||
// at the bot, by up to closeThresholdBonus inside closeRangeM, by enemyReloadThresholdBonus for
|
||||
// enemyReloadSec after the target fired, and by fleetingThresholdBonus when it crosses faster
|
||||
// than fleetingLateralMps partly hidden; it rises by up to bigGunThresholdPenalty for guns above
|
||||
// 75 mm and by retreatThresholdPenalty while pulling back to cover, and never goes below
|
||||
// minFireThreshold. Main-gun shots are at least minShotIntervalSec apart.
|
||||
"fireControl": {
|
||||
"maxEngageRangeM": 1250.0,
|
||||
"closeRangeM": 100.0,
|
||||
@@ -359,19 +371,47 @@
|
||||
"longRangeM": 800.0,
|
||||
"midSlowSpeedRatio": 0.45,
|
||||
"midSlowMaxMps": 5.5,
|
||||
// Moving-fire speed rises from the mid-range limit through the close-range boundary to point blank.
|
||||
"closeRangeMaxSpeedKmh": 30.0,
|
||||
"pointBlankMaxSpeedKmh": 35.0,
|
||||
// At or below this speed the bot counts as standing (also the answer "stop" to a speed request).
|
||||
"stopSpeedMaxMps": 0.45,
|
||||
"longRangeWindowSec": 4.0,
|
||||
// Fixed (casemate) guns: how far off the gun may be before the hull is asked to turn.
|
||||
"baseAlignDeg": 0.42,
|
||||
"closeHitRadiusM": 0.85,
|
||||
// Outside close range, the rate at which barrel alignment drifts relative to the aim direction.
|
||||
"barrelSettleDegSec": 1.8,
|
||||
"closeSettleHoldSec": 0.08,
|
||||
"settleHoldSec": 0.20,
|
||||
"unstabilizedStopSpeedMps": 0.45,
|
||||
"stabilizedCreepSpeedMps": 5.5,
|
||||
"aimErrorDeg": 0.12,
|
||||
"moveErrDegPerMps": 0.35,
|
||||
"turnErrDegPerDegSec": 0.03,
|
||||
"stabErrFactor": 0.2,
|
||||
"targetHalfHeightM": 1.0,
|
||||
"fireThreshold": 0.35,
|
||||
"minFireThreshold": 0.1,
|
||||
"aimingThresholdBonus": 0.1,
|
||||
"closeThresholdBonus": 0.15,
|
||||
"enemyReloadThresholdBonus": 0.08,
|
||||
"enemyReloadSec": 3.0,
|
||||
"fleetingThresholdBonus": 0.1,
|
||||
"fleetingLateralMps": 3.0,
|
||||
"bigGunThresholdPenalty": 0.08,
|
||||
"retreatThresholdPenalty": 0.2,
|
||||
"minShotIntervalSec": 0.65,
|
||||
// Belt-fed autocannons (6.3): fire while within autocannonAimSlack times the target's angular
|
||||
// half size, in bursts of burstSec with burstPauseSec between, checking barrel, trajectory and
|
||||
// friendlies again every burstRecheckSec. Not ready for longer than autocannonReloadDetectSec
|
||||
// counts as a reload.
|
||||
"autocannonAimSlack": 3.0,
|
||||
"burstSec": 1.2,
|
||||
"burstPauseSec": 0.6,
|
||||
"burstRecheckSec": 0.3,
|
||||
"autocannonReloadDetectSec": 0.6,
|
||||
// Secondary cannon and coaxial weapons (6.4) fire bursts alongside the main gun at light
|
||||
// vehicles within auxMaxRangeM (at any vehicle with auxFireAtArmor).
|
||||
"auxWeapons": true,
|
||||
"auxMaxRangeM": 300.0,
|
||||
"auxFireAtArmor": false,
|
||||
"friendlyCorridorM": 3.2,
|
||||
"ballisticStepMaxM": 25.0,
|
||||
"ballisticSweepRadiusM": 0.12,
|
||||
|
||||
Reference in new issue
Block a user