I was trying to use JAR template but whenever I go to start a program it gives me an “PL access error 03803EBC” would anyone know the solution to this.
FARSIDE RED.zip (18.2 KB)
Putting your driver control code in robot-config.cpp seems like a bad idea.
@2775Josh would you know how to fix this
This looks like more or less the same code as was giving you a memory permission error.
Is your firmware fully updated ? (1.1.2)
If I run the code here, with or without a competition switch, I cannot cause any memory or PL Access (which is rare, it means something is trying to access protected hardware memory) errors. Now I don’t have all motors connected, but are you able to test on another brain ? (assuming current brain fw is up to date, otherwise you need to update it). Just wondering if you have a hardware fault.
I will test that tonmrow when i get another brain thank you
Where would you suggeste putting it?
It would go in main.cpp, which is the file that your code will execute from. robot_config.cpp is only there to tell the program which ports have motors, sensors, etc.
You can ignore the comments about “driver control” in robot-config.cpp
That’s auto generated code from the graphical configuration where you assigned motors to buttons on the controller, that’s where VEXcode will put it. If you were writing driver control code from scratch (which I would recommend) then yes, more appropriate to place in main.cpp or in its own source file.
My bad. I have absolutely nothing to go off of when someone has a PL or memory error except finding something odd to nitpick.