Log in

View Full Version : Java Help


katsauga
14-01-2013, 17:48
Could someone please send me samples of JAVA code?:confused:

katsauga
14-01-2013, 18:01
people, I really need help!!!!!!!!!!!!:] :]

jesusrambo
14-01-2013, 18:26
Samples of what?

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

katsauga
14-01-2013, 18:28
how to get our robot driving?
:p

jesusrambo
14-01-2013, 18:31
http://wpilib.screenstepslive.com/s/3120/m/7885/l/79459-the-hello-world-of-frc-robot-programming

katsauga
14-01-2013, 18:34
not a manual, a diagram, like, for tank drive.::safety::

jesusrambo
14-01-2013, 18:37
What kind of diagram? A diagram of what? I have no idea what you're looking for.

katsauga
14-01-2013, 18:40
a sample code of tank drive

jesusrambo
14-01-2013, 18:40
You should read the link I posted.

BigJ
14-01-2013, 18:41
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.

katsauga
14-01-2013, 18:43
i read it, its a link i got when i started java, it wasnt very helpful

bdbayes
14-01-2013, 18:45
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.

jesusrambo
14-01-2013, 18:45
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? (http://lcec.us/javadoc/edu/wpi/first/wpilibj/RobotDrive.html)

katsauga
14-01-2013, 18:46
thanks

F22Rapture
14-01-2013, 18:55
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.

inkspell4
14-01-2013, 21:34
A compilation of some resources can be found at: http://www.roboraptorsfrcteam3650.com/programming-linksresources.html

katsauga
15-01-2013, 14:31
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