For us, although the code said "build successful" for code similar as shown below, it will throw an error (on the robot) and the driver station noted no code on the robot.
Code:
drivemotor1 = new Victor(0);
drivemotor2 = new Victor(2);
...
drive = new RobotDrive(0, 2);
So use the correction shared by Joey:
Quote:
Originally Posted by Joey1939
Code:
drive = new RobotDrive(drivermotor1, drivemotor2);
|
Once we did this change, everything worked fine.