Vex Permission Memory Error 03802470

I keep getting a vex permission memory error everytime I try running this code. More specifically, I get the message permission memory error 03802470. Does anyone know what this error is or how to fix it? Thank you!

// ---- START VEXCODE CONFIGURED DEVICES ----
// Robot Configuration:
// [Name]               [Type]        [Port(s)]
// LeftFrontMotor       motor         2               
// LeftRearMotor        motor         1               
// RightFrontMotor      motor         9               
// RightRearMotor       motor         10              
// Controller1          controller                    
// Flywheel             motor         4               
// Intake               motor         7               
// Roller               motor         12              
// Inertial             inertial      16              
// ---- END VEXCODE CONFIGURED DEVICES ----

#include "vex.h"

using namespace vex;

motor_group leftMotors(LeftFrontMotor, LeftRearMotor);
motor_group rightMotors(RightFrontMotor, RightRearMotor);
vex::smartdrive Drivetrain(leftMotors, rightMotors, Inertial);

void lateral(float rotation, float velocity) {
  leftMotors.setVelocity(velocity, percent);
  leftMotors.spinFor(forward, 360 * rotation, degrees, true); //True basically blocks the program until the line is executed.
  rightMotors.setVelocity(velocity, percent);`Preformatted text`
  rightMotors.spinFor(forward, 360 * rotation, degrees, true); //True basically blocks the program until the line is executed.
}


void autonomous() {
  lateral(0.5, 100);
  Roller.setVelocity(100, percent);
  Roller.spinFor(forward, 720, degrees) ;
  Drivetrain.turnToHeading(45,degrees);
  lateral(10, 100);

}

int main() {
  // Initializing Robot Configuration. DO NOT REMOVE!
  // vexcodeInit();

  autonomous();
  
}

Does it appear on your brain screen?
If it does you need to update the brain (plug USB into brain to check if updated)

usually this is nothing to do with vexos version.

You are probably using devices before they have been created. ie. Inertial probably does not exist when you create the smartdrive.

5 Likes

So where should I declare my inertial sensor? or should i not use it at all?

Yes, when I tried to update, I got another saying update failed…

move them into robot-config.cpp and robot-config.h in the same way as other motor and sensors, or skip using graphical configuration and create the inertial sensor in main.cpp.

for more details, search is your friend, please use it.

5 Likes