Can someone please check my code? I am at a competition right now. I am trying to push a cube into the goal zone and come back. I am trying to make a good auton.
Thanks
//Left Front
LFM.spin(vex::directionType::fwd,200,vex::velocityUnits::rpm);
LFM.rotateFor(5,vex::timeUnits::sec,200,vex::velocityUnits::pct);
//Right front
RFM.spin(vex::directionType::fwd,200,vex::velocityUnits::rpm);
RFM.rotateFor(5,vex::timeUnits::sec,200,vex::velocityUnits::pct);
//BackLeft
LBM.spin(vex::directionType::fwd,200,vex::velocityUnits::rpm);
LBM.rotateFor(5,vex::timeUnits::sec,200,vex::velocityUnits::pct);
//Back Right
RBM.spin(vex::directionType::fwd,200,vex::velocityUnits::rpm);
RBM.rotateFor(5,vex::timeUnits::sec,200,vex::velocityUnits::pct);
//The followng code is for reverse
//Left Front
LFM.spin(vex::directionType::rev,200,vex::velocityUnits::rpm);
LFM.rotateFor(15,vex::timeUnits::sec,200,vex::velocityUnits::pct);
//Right front
RFM.spin(vex::directionType::rev,200,vex::velocityUnits::rpm);
RFM.rotateFor(15,vex::timeUnits::sec,200,vex::velocityUnits::pct);
//BackLeft
LBM.spin(vex::directionType::rev,200,vex::velocityUnits::rpm);
LBM.rotateFor(15,vex::timeUnits::sec,200,vex::velocityUnits::pct);
//Back Right
RBM.spin(vex::directionType::rev,200,vex::velocityUnits::rpm);
RBM.rotateFor(15,vex::timeUnits::sec,200,vex::velocityUnits::pct);