Skip to content

Throttle and Ignite

Writing a control file is a command. Set a value, get a result. That is the whole deal.

throttle is a setpoint from 0 to 1. ignite and shutdown are one-shots. The engine master, ctl/engine, is the read-back-friendly version for a switch or a UI.

Terminal window
# Keep a hand near shutdown. This is a real engine command.
echo 0.25 > /sim/vessels/active/ctl/throttle
echo 1 > /sim/vessels/active/ctl/ignite
cat /sim/vessels/active/ctl/engine # 1 when engines are on
echo 1 > /sim/vessels/active/ctl/shutdown
echo 0 > /sim/vessels/active/ctl/throttle

Frame-phase controls take effect on the next game-frame drain. A rejected value returns a real errno: EINVAL for a bad value, EACCES when control is disabled or forbidden, and EBUSY for a one-shot that cannot fire again right now.

Next: Staging and modules, where controls start to have indexes.