Memory Permission error 0380665C
We are learning Odom program and we use the rotation sensors without encoder sensor while the three wire port got the error called Memory Permission error 0380665C. How can we delete encoder or deal this error.
It would help if you could send your code to make it easier to debug, but I’m guessing you have the same problem as this post:
If I remember right this is caused by trying to use the brain’s three wire ports before VexCode actually processes they exist. You can fix it by making a triport on port 22. This is because vexcode treats the three wire ports on the brain like a three wire port expander on the non-existent port 22. Here’s your code modified to do this:
triport ThreeWirePort = triport(PORT22);
motor a (PORT20);
limit b (ThreeWirePort.H);
using namespace vex;
int main() {
// Initializing Robot Configuration…