Wait in Sim Time
Your watch and KSA’s clock are different animals. At warp, thirty game-seconds can pass before your coffee cools. When paused, no game-seconds pass at all. Use the simulation clock.
# Wait 300 simulation seconds. The read blocks until the target time is reached.ut=$(cat /sim/time/ut)target=$(awk "BEGIN { print $ut + 300 }")echo "$target" > /sim/time/alarmcat /sim/time/alarmut=$(curl -s http://127.0.0.1:4242/v1/time | jq -r .ut)target=$(awk "BEGIN { print $ut + 300 }")curl "http://127.0.0.1:4242/v1/time/wait?until=$target"The alarm is a blocking read, not a background timer. It returns the reached UT. In a program, calculate
time steps from successive ut values. Do not call sleep(1) and hope that one second means one second.
Next: Hold a lock, the safe shape of a continuous controller.
Next: Hold a lockTurn a one-shot attitude target into a careful, paced control loop.