Tests: the tiny-imbalance flight runs six seconds; the stick's length and no stick are pinned

The Longinus the fixture builds has no heatsinks: its drives overheat and shut down at
about seven seconds (measured: drift -0.006 deg to tick 360, then the thermal shutdown),
so the 600-tick flight of the spec reads the shutdown, not the allocator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-10 14:29:18 +02:00
commit 6666f81385
2 changed files with 7 additions and 8 deletions

View file

@ -201,6 +201,11 @@ public sealed class ThrottleLockTests : IDisposable
Assert.True(f.Forward.Axis > .5f);
Assert.True(f.Reverse.Axis < 1e-6f);
// The stick's length is the fraction of the hull's forward thrust asked for, and no stick asks for nothing.
Fly(float2(0, .5f));
Assert.InRange(f.Forward.Axis, .4f, .6f);
Assert.All(Fly(float2(0, 0)), a => Assert.True(a < 1e-6f));
var all = new[] { back, right, left, forward };
for (var a = 0; a < all.Length; a++)
for (var b = a + 1; b < all.Length; b++)