is what I have currently in my Vex Coding Studio to help my robot be hard to push, I need to break it though, can anybody help. I have tried an else statement that refers to the drive code but the Hold function is still in play.
I wouldn’t do that. It’s way to complicated. Just keep it as simple as
if(Controller1.ButtonB.pressing()){
DriveLeft.stop(brakeType::hold);
DriveRight.stop(brakeType::hold);
DriveRightBottom.stop(brakeType::hold);
DriveLeftBottom.stop(brakeType::hold);
}
else if (Controller1.Button(your choice of a button).pressing(){
DriveLeft.stop(brakeType::coast);
DriveRight.stop(brakeType::coast);
DriveRightBottom.stop(brakeType::coast);
DriveLeftBottom.stop(brakeType::coast);
}