Repository navigation
fix(fatcow): an AI cow no longer hovers until it runs dry (FIX-FAT-COW-STRANDED) - #334
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lot
FIX-FAT-COW-STRANDED: on the Campagne server (2026-11-22) an AI Fat Cow packed its FARP on an F10 order nobody logged, flew on for 5 h 20 min until it ran out of fuel and vanished. Tickets 01-03 (code); ticket 04 (live measurements) done, results below.INFOline each, none per loop tick._sendHomeOrphansalso runs in the 10 s loop (_resyncFarps), so a cow whose flight disappears after the one-shot 2 s check ran too early still goes home, once._returnHomewhatever it was told (holding, following, released), its flight reads "The Fat Cow is low on fuel and returns home." (new text, four dictionaries),WARNwith the fuel fraction. A cow that is landing lands; a returning one is untouched; no fuel reading means no action. Pilot guide EN+FR, CHANGELOG.One thing beyond the tickets:
_returnHomecleared_aiByFlight[flight]unconditionally. For a released cow sent home by the bingo check, the flight may already have requested another cow, which would have lost its registration. It now clears the entry only when it is that cow.Measurements (ticket 04)
Run on
Test_CTLDNEXT_01.mizthrough the DCS bridge, with the build of this PR (details in the ticket).Orbitof an AI CH-47: a circle, not a hover. 35.7-42.9 m/s over 120 s, heading turning about 1.2 deg/s, roughly 1.9 km radius. It burns fuel while circling, so the stranding came from the missing order log and fuel guard, and no hover fix lot is needed.getUnit(1)is nil at 0.1, 2.1, 5.1 and 10.1 s, and the cow is already returning. The 10 s loop check stays as a safety net.dcs.log.No decision of the PRD is overturned.
Test plan
fatcow_ai_spec(19 new tests, red first); fulltests/cion the local Lua 5.1 runner: same 36 pre-existing runner failures asorigin/develop, +19 passesTest_CTLDNEXT_01.miz(ticket 04)