bug when the fleet is stopped #13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
when I stop moving with the fleet, it pause a bit, htne slightly move again before fully stopping
Done in
0e07187. Reproduced first, because the cause was not what the symptom suggested.A probe logging the fleet's speed after releasing the stick:
It was not coasting at all.
Fleet.stop()aims each ship at a braking point ~75 units ahead of it, but the ship's ownvelocitywas ~0 - the anchor had been carrying it along, which is the same thing that caused the earlier stop-dead bug. So on release it started from a standstill, accelerated into its own stopping distance, and halted a second time. That is exactly the pause-then-lurch you described.stop()now hands the fleet's motion to the ship, so the release is one continuous decelerating coast:Same endpoint (x=599.445 either way), no pause and no second movement.
test_joystick_controlnow asserts the speed one frame after release is a real fraction ofcruise_speed(so it cannot have started from rest) and that it never rises afterwards. With the fix reverted it fails with "the fleet stopped dead on release instead of coasting".