summaryrefslogtreecommitdiff
path: root/controller.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-05-14 17:42:12 -0500
committercheapie <no-email-for-you@example.com>2024-05-14 17:42:12 -0500
commit90e7f15112f47756983e1d2013b70f78d788b3dc (patch)
tree464f8c5cd9e0a59b53ae642fb475c7028339a97e /controller.lua
parente8242dd09bf08dbb63d1fa477cae85376573ee4a (diff)
downloadcelevator-90e7f15112f47756983e1d2013b70f78d788b3dc.tar
celevator-90e7f15112f47756983e1d2013b70f78d788b3dc.tar.gz
celevator-90e7f15112f47756983e1d2013b70f78d788b3dc.tar.bz2
celevator-90e7f15112f47756983e1d2013b70f78d788b3dc.tar.xz
celevator-90e7f15112f47756983e1d2013b70f78d788b3dc.zip
Allow changing inspection speed
Can be set to 0.1-0.7m/s, cannot be higher than contract speed
Diffstat (limited to 'controller.lua')
-rw-r--r--controller.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller.lua b/controller.lua
index 2e47c98..365cf73 100644
--- a/controller.lua
+++ b/controller.lua
@@ -427,7 +427,7 @@ function celevator.controller.finish(pos,mem,changedinterrupts)
if drivetype then
for _,command in ipairs(mem.drive.commands) do
if command.command == "moveto" then
- celevator.drives[drivetype].moveto(drivepos,command.pos)
+ celevator.drives[drivetype].moveto(drivepos,command.pos,command.inspection)
elseif command.command == "setmaxvel" then
celevator.drives[drivetype].setmaxvel(drivepos,command.maxvel)
elseif command.command == "resetpos" then