This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Xixili's profile picture

Frame Elevator movement is slow

Started by Xixili, 16 December 2013 - 03:35 PM
Xixili #1
Posted 16 December 2013 - 04:35 PM
Hello guys,

Im using a script that controls the motor to move the cabin up and down (elevator)

When I boot the elevator it does a testrun and that testrun goes fine at the speed I want
(redstone on (0.2)
(redstone off (0.6)
Something like that so the cabin moves faster.

But in operational mode it goes slow like 1 step every second (1 pulse every second)

Somehow I cant find the problem in the script that makes it go faster.

code:
http://pastebin.com/uYXFLXXx
Lyqyd #2
Posted 16 December 2013 - 05:09 PM
Your test functions use 0.2/0.2, your movement functions use 0.2/0.6. Your movement loop uses an extra 0.8 in either direction (line 494).
Xixili #3
Posted 16 December 2013 - 05:22 PM
Your test functions use 0.2/0.2, your movement functions use 0.2/0.6. Your movement loop uses an extra 0.8 in either direction (line 494).
I was blind.
That did the trick.

Thank you