Java Help

Could someone please send me samples of JAVA code?:confused:

people, I really need help!!!:] :]

Samples of what?

FRC includes sample robot programs in the FRC Java plugins for Netbeans.

how to get our robot driving?
:stuck_out_tongue:

http://wpilib.screenstepslive.com/s/3120/m/7885/l/79459-the-hello-world-of-frc-robot-programming

not a manual, a diagram, like, for tank drive.::safety::

What kind of diagram? A diagram of what? I have no idea what you’re looking for.

a sample code of tank drive

You should read the link I posted.

You gotta put in some effort if you want to get results. Following the guide in the link above will get you to a point where your robot drives.

You won’t learn or understand anything if you just copy/paste someone else’s code.

i read it, its a link i got when i started java, it wasnt very helpful

I compiled some demo code for you to try out. You can open it up in Netbeans. I included support for one or two joysticks, as well as arcade or tank drive. Be sure to read the comments in the code and let me know if you have any questions.

FRC2013-Team4166.zip (893 KB)


FRC2013-Team4166.zip (893 KB)

It describes exactly how to write sample code for a tank drive robot. If that’s not what you’re looking for I’m not sure what you want. Maybe this?

thanks

There is a large amount of documentation on the web and on CD that is not at all difficult to find. Please try to do some legwork yourself before asking here.

I recommend the WPILib cookbook as that has examples of what you are looking for.

A compilation of some resources can be found at: http://www.roboraptorsfrcteam3650.com/programming-linksresources.html

i am also trying to code for a 24 volt solenoid for pnumatics, something to work off, say a guide or sample code would be greatly appreciated:D