|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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() {
}
}
Does anyone have a good sample code that we can follow and be able to figure some stuff out? Thanks, |
|
#2
|
|||
|
|||
|
Re: Programming in Netbeans
Eclipse is the supported IDE this year, not Netbeans.
http://wpilib.screenstepslive.com/s/4485/m/13809 |
|
#3
|
||||
|
||||
|
Re: Programming in Netbeans
I would start out by following the instructions here: http://www.usfirst.org/sites/default...r_FRC_2015.pdf to install eclipse because Netbeans is no longer officially supported by FIRST.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|