|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
||||
|
||||
|
Re: Is my Java code ok?
I see that you initialized the RobotDrive with the port numbers of your speed controllers. I believe that this will work correctly because you are using victors, but it would be better practice to initialize it with the two speed controllers you already initialized.
Code:
drive = new RobotDrive(drivermotor1, drivemotor2); |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|