View Single Post
  #4   Spotlight this post!  
Unread 03-02-2016, 15:51
Stimpy1901 Stimpy1901 is offline
Registered User
AKA: Bobby
FRC #2348 (Cool Geeks)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2008
Location: Honolulu
Posts: 57
Stimpy1901 will become famous soon enough
Re: Is my Java code ok?

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 View Post
Code:
drive = new RobotDrive(drivermotor1, drivemotor2);
Once we did this change, everything worked fine.
__________________
"The person who says it cannot be done should not interrupt the person doing it."
- Chinese Proverb