Quote:
Originally Posted by ckpash88
Hello,
My team has basically started from the beginning and we are not sure how to program with Java. We were able to get everything downloaded and on the RoboRio. We are now trying to program our testbot that has 4 motor, 4 victor, tank drive, with one joystick.
The problem we have no one that really understands coding but we have a coach that can muddle himself through is he has video or tutorials to follow.
|
Programming a robot is not a whole lot different than writing code for any other reason. Assuming you are sticking with the default project structure you will not need to get too in depth. There are some basic skills that everyone needs to understand for java, and by extension just about every other programming language.
First thing first: try to get default code running, nothing will frustrate you more than not knowing why your seemingly correct code isn't working. Default code is a great way to eliminate variables in the pipeline.
Look for tutorials on:
Java IDEs (familiarize yourself with the tools of the IDE you are using)
Data types
Logic
Imports (and later external libraries (libs))
Methods (functions)
Loops (and timing)
Java WPI robotics Library (for java)
Once you have those skills look into Java specific tutorials (object based languages):
Objects (classes)
Inhertance
Interfaces
At this point you should know enough to explore on your own, you will have a better handle on what you need to learn.
The 2017 control system paper should provide information on compiling and uploading code to the RoboRio
Community, please feel free to add/disagree with my java skills basics list.
Good Luck,
Skye Leake