We have a line following myblock, which follows the line perfectly if it runs alone. However, if we include it as a block as part of a larger program, it goes haywire when it gets to that step and can't follow the line that it's on. If we run our program step by step, it completes each task successfully. Has anyone encountered this issue, and if so, any ideas how we can fix the problem?
We've figured out what the issue was - in the line follower we had issues with a loop breaking out consistently, so had changed it to a large motor block doing x number of cycles. when it was run individually, it worked fine as the number of cycles started from 0. When it was part of the larger code, it had already run that many cycles, so it immediately quit out of the line follower.