Im getting this error when I try to compile the code, any help?
Honestly if there is nothing wrong with your code, then save and restart VEXCode. This happens every so often for me.
1 Like
Doesn’t work
20 characters
I guess then try and find something else wrong, or transfer your code to a new project.
does a newly created project compile ok ? Did you change anything in the makefile or files in the vex folder ?
I moved it to a new file and it works now. Thanks!
if(Controller1.ButtonR1.pressing()) {
LeftDR4B.spin(directionType::fwd, (Controller1.ButtonR1.pressing())velocityUnits::pct);
its telling me to add a bracket but does say where
A compiler can’t tell you where to add a bracket. Where the bracket goes determines how your code works, which is a choice the compiler can’t make for you.
Add the closing bracket at the end of the line instead of the semi colon
1 Like