Have you tested the ports using the diagnostics on the brain? The Device Info will show you that the ports are working. You can also click on the devices to see if they are working properly.
Also, the code you provided is incomplete. Are there more lines?
No that’s not it. I compiled it and it was good. This was a problem that I’ve been having with the newer programs and had no problem with Vex coding Studio.
There was a close bracket that did not allowed all the other motors run.
while(true) {
LD.spin(vex::directionType::fwd, Controller1.Axis3.value(), vex::velocityUnits::pct); //(Axis3+Axis4)/2
RD.spin(vex::directionType::fwd, Controller1.Axis2.value(), vex::velocityUnits::pct);//(Axis3-Axis4)/2
vex::task::sleep(20);
}
I got rid of the last bracket and it fixed my issue. I am now aware that the missing ports on my brain was a VEX issue.