diff options
author | cheapie <no-email-for-you@example.com> | 2023-08-08 22:16:42 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2023-08-08 22:16:42 -0500 |
commit | 08cbd3adfe523ae8ad4e7263f11ff5ae1d521230 (patch) | |
tree | e9881649c7e2f78dcb5a7c16971455906019853a /controllerfw.lua | |
parent | ca33ea9d98cbf6dbd5afa668ce676ba0d9064632 (diff) | |
download | celevator-08cbd3adfe523ae8ad4e7263f11ff5ae1d521230.tar celevator-08cbd3adfe523ae8ad4e7263f11ff5ae1d521230.tar.gz celevator-08cbd3adfe523ae8ad4e7263f11ff5ae1d521230.tar.bz2 celevator-08cbd3adfe523ae8ad4e7263f11ff5ae1d521230.tar.xz celevator-08cbd3adfe523ae8ad4e7263f11ff5ae1d521230.zip |
Add initial car motion functionality
Place a machine (no texture yet) above the car somewhere when the car is at the lowest floor, then pair it to the drive with the pairing tool. Not much error checking yet, it'll probably crash if you do anything weird.
Diffstat (limited to 'controllerfw.lua')
-rw-r--r-- | controllerfw.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/controllerfw.lua b/controllerfw.lua index 2640af2..4ac888c 100644 --- a/controllerfw.lua +++ b/controllerfw.lua @@ -19,6 +19,10 @@ if not mem.drive.status then } end +if mem.drive.state == "uninit" then + fault("driveuninit",true) +end + local juststarted = false local modenames = { @@ -48,6 +52,7 @@ local doorstates = { local faultnames = { drivecomm = "Lost Communication With Drive", + driveuninit = "Drive Not Configured", } local function drivecmd(command) |