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();
}