|
Re: For anyone who used to be in FLL
I think that your issue is that you are using subroutines (the blue forks) instead of task splits to fork the program. Subroutines only run when they are triggered in the main program. To fix this all you should have to do is switch the blue forks to brown ones that have a white bottom.
One good way to do this type of program is to have a touch sensor loop that has the the motor block on the inside and the reverse motor command right after it in a loop that loops while the touch sensor is released and then the jump. This makes it so that while the touch sensor is pushed, the motor goes, but when the touch sensor is not pushed, then the motor will reverse, because the loop will end. When the touch sensor is pushed again, the program will jump back to the loop that runs while the sensor is pushed again. I think that this would make it so that you wouldn't need the touch sensor forks. It also would get rid of the one second lag. I've never tested a program like this, but I think that it should work.
Last edited by ptitchener : 03-11-2010 at 21:34.
Reason: more info
|