So I have a code written but can’t seem to get it to actually drive. Looking for some help on what to do from here.
// Include the V5 Library
#include "vex.h"
// Allows for easier use of the VEX Library
using namespace vex;
//All Motors
vex::motor RightFront = vex::motor( vex::PORT20, false);
vex::motor RightMiddle = vex::motor( vex::PORT19, false);
vex::motor RightBack = vex::motor( vex::PORT18, false);
vex::motor LeftFront = vex::motor( vex::PORT1, false);
vex::motor LeftMiddle = vex::motor( vex::PORT2, false);
vex::motor LeftBack = vex::motor( vex::PORT3, false);
//Grouping
vex::motor_group RightSide = vex::motor_group(RightFront, RightMiddle, RightBack);
vex::motor_group LeftSide = vex::motor_group(LeftFront, LeftMiddle, LeftBack);
//Constants
const int wheelTravel = 12;
const int trackWidth = 16;
const int wheelBase = 16;
const double gearRatio = 4.2;
//Drivetrain
vex::drivetrain RoboDrive = vex::drivetrain(LeftSide, RightSide, wheelTravel, trackWidth, wheelBase, distanceUnits::in, gearRatio);
//Controller
vex::controller Controller1 = vex::controller();
int main() {
bool ForwardDrive = Controller1.ButtonA.pressing();
if (ForwardDrive) {
RoboDrive.spin(forward);
}}