#include "vex.h"
void autonomous() {
Drivetrain.drive(forward);
wait(2, seconds);
Drivetrain.stop();
}
int main() {
while (true) {
// User control code...
// Add your user control logic here...
if (Controller1.ButtonR1.pressing()) {
Intake.spin(forward);
} else if (Controller1.ButtonR2.pressing()) {
Intake.spin(reverse);
} else {
Intake.stop();
}
if (Controller1.ButtonL1.pressing()) {
Catapult.spin(reverse);
} else if (Controller1.ButtonL2.pressing()) {
Catapult.spin(forward);
} else {
Catapult.stop();
}
}
return 0;
}
All of my motors are working