the problem is that the robot will not perform any action other than moving it’s arm down slightly and then stopping
// Include the V5 Library
#include “vex.h”
// Allows for easier use of the VEX Library
using namespace vex;
float myVariable;
// “when started” hat block
//Create a Competition Object
competition Competition;
//Function to run when the event occurs
void runOnEvent() {
Brain.Screen.print(“Event has occurred”);
}
int main() {
// Register event with a callback function.
Competition.autonomous(runOnEvent);
while (true) {
MotorGroup8.spinFor(reverse, 90.0, degrees, false);
Drivetrain.driveFor(forward, 6.0, inches, false);
MotorGroup8.spinFor(forward, 78.0, degrees, false);
Drivetrain.driveFor(forward, 6.0, inches, false);
Drivetrain.turnFor(right, 60.0, degrees, false);
Drivetrain.stop();
return 0;
wait(0.05, seconds);
}
}