wiki:ControlSystems/SoftwareTeam/Training/IntermediateJava

Version 1 (modified by David Albert, 5 years ago) (diff)

--

Java Gym

All 2537 robot programming is done in the Java programming language. See here for why we program in Java. Many of the Getting Started examples involved cutting and pasting code, but to become a skilled software engineer, you'll need to be able to read and write code effectively on your own. Spend some time in the Java Gym strengthening your knowledge of Java these training links will help (and they'll help if you take AP Computer Science too):

Robocode

To practice your Java skills in a fun way, you can use the Robocode to hone your skills in a fun way. Robocode creates a virtual robot arena on your computer where you can program virtual robots and battle them against pre-programmed robots supplied with the simulator or robots programmed by your friends.

Python Programming

Programing Languages are like tools; a screwdriver isn't better than a hammer, you just use them for different things. While 2537 doesn't use Python (and it isn't widely used for FRC programming), it's a popular language that can be very effective for certain problems; if you want to learn more, try our Intro To Programming (in python)

Java Interfacing

Robots operate real world and must be able to sense their environment and manipulate it. If you want to learn more about using Java to interact with real devices at home, but can't afford to buy a roboRIO consider buying an inexpensive Raspberry Pi computer and using it. The ZebraZero platform and exercises help you learn to use Java to interface with sensors and control motors; try the Zebra Zero Training

Lessons

  • Schedule for Rookies
    • Week 1 - Programming Intro - Online Tutorial with help from mentors and members
    • Week 2 - Hello Robot - Based on Demo Program - Tank control on Peanut Bot
    • Week 3 - Turbo Robot - Use Button to stop or speed up the Peanut Bot
    • Week 4 - Arcade Control - Modify program for control the Peanut Bot with single joystick
    • Week 5 - Encoders - Use Encoder to drive forward 1m in Autonomous Mode.
    • Week 6 - Drive Straight - Use Encoders in both wheels to normalize speed between the motors to drive straight
    • Final 4 Weeks - Obstacle Course? - Use Encoders, Ultrasonics, and Limit Switches to navigate a simple obstacle course