SOLVED - V5 - autonomous calling methods()

Hi - one of the challenges for us is if the bugs are with V5 or our coding…

We had autonomous working fine by calling methods with parameters eArm(30,120) but yesterday when we added a known working & good function (eArm(30,120)) to the first line the arm would twitch and does nothing more! :frowning:

Commenting the line the auto ran fine. I know the function is blocking, and right motor is reversed - so why doesn’t it just run!

I manually put the aArm() commands in auto and same result…

void eArm(int s, double deg){
    LeftArm.setVelocity(s, vex::velocityUnits::pct); 
    RightArm.setVelocity(s, vex::velocityUnits::pct);
    
    LeftArm.rotateFor(deg, vex::rotationUnits::deg, false); //This command must be non blocking.
    RightArm.rotateFor(deg, vex::rotationUnits::deg); //This command is blocking 
}//end eArm

Try using startRotateFor (not quite sure with the capitalized alphabets) for right motor.

Thanks ZoeChow - good thinking - startRotateFor being non-blocking

However the problem was I had a task running that hogged the attention for the Arm motor - I simply evoke it in usercontrol() and it doesn’t interfere w/auto!!!