VEX Full Volume VR Code

A message from my students;


This is the code ^
We are wanting Byte to drive while lifting the purple at the same time. The problem is the code only works like 10% of the time and sometimes just skips the yellow control functions completely. I don’t understand why. I have been working on this for 2 hours and its just annoying. HELP US FIX THE PROBLEM PLEASE!!!

Need some more description on what you mean by only works 10% of the time. What does it do the other 90%.

The if drive is moving block is not needed, since you want to lift the arm up. Providing the arm moves fast enough to complete before the drive is done the wait until block should do what you want.

I am not sure, as the code looks ok. One tip I can give is to get rid of that if (drivetrain is moving) and just tell the arm to lift right after the drive starts driving. The wait block is a good idea but I think the if drivetrain might cause you problems because if the drivetrain takes a couple milliseconds to get going, the if drivetrain might return a false negative. Do you see what I’m saying?