We are a new team and we've been trying to learn how to program our robot so it can at least move...
Several of us have experience in other languages, however we're still a bit lost on how to set it up with the joysticks. We are using Netbeans, here is what we have so far just from watching Youtube.
Code:
public class Test extends IterativeRobot {
Joystick driveStick = new Joystick(1);
Joystick liftStick = new Joystick(2);
RobotDrive mainDrive = new RobotDrive(1, 2, 3, 4);
public void robotInit() {
}
public void autonomousPeriodic() {
}
public void teleopPeriodic() {
mainDrive.tankDrive(ROBOT_TASK_PRIORITY, ROBOT_TASK_PRIORITY);
}
public void testPeriodic() {
}
}
We want to get the robot to drive in Arcade mode with a single joystick, and use another single joystick for our lift system.
Does anyone have a good sample code that we can follow and be able to figure some stuff out?
Thanks,