Go to Post Arguing or defending is not how to accept feedback. Someone who shares their opinion cannot be wrong - their opinion is their opinion. - DonRotolo [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 11-02-2015, 11:45
jdhsrobotics jdhsrobotics is offline
Registered User
FRC #5080
 
Join Date: Jan 2015
Location: Wilmington DE
Posts: 5
jdhsrobotics is an unknown quantity at this point
Unhappy Programming in Netbeans

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,
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:58.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi