Repository navigation
Turntable State snapshot
Lycoris edited this page Nov 10, 2026
·
1 revision
Returns every readable value that has no side effect in one table, using the keys shown below. This is cheaper than separate calls in a polling loop.
local s = turntable.getState()
--[[
assembled = true, angle = 90.0, turning = false,
settled = true, powered = true, speed = 32.0,
cogSpeed = 32.0, speedOverride = 0.0, stress = 128.0,
degreesPerTick = 9.6, remaining = 0.0, trigger = "pulse",
instruction = 0, scheduleDriven = false,
occupied = false, aligned = false, error = nil,
]]Start here
Reading the train
- Identity
- Motion
- State
- Station
- Signals
- Track ahead
- Orientation
- World position
- Carriages
- Consist wide cargo
Driving the train
Schedules
Doors and body
Links
The whole railway
Reacting to changes
Programs and reference
Start here
Controlling the plate
Automatic modes
Reading the turntable
Reference