Quote:
Originally Posted by SBrosious
Unfortunately, we (Programmers) were asked to program the new Talons, we are new to java so we have no clue what we should manually program into our robot to work. Its been giving us issues so if you could teach me how to create a tank drive program. id be SUPER thankful 
|
It's no different than using Victors or PWM Jaguars in code, just a different keyword.
Code:
Talon frontLeftMotor = new Talon(1);
Talon rearLeftMotor = new Talon(2);
Talon frontRightMotor = new Talon(3);
Talon rearRightMotor = new Talon(4);
drive = new RobotDrive(frontLeftMotor, rearLeftMotor,
frontRightMotor, rearRightMotor);