TipJar #18 - Everything So Far: A Guided Tour of Our Team's FRC Code


Updated 2010 FRC Videos Now Online:


This Blog entry is the 14th in a series intended primarily for FIRST Robotics Competition (FRC) teams and their mentors.

In this blog entry, I take you through team 843's 2009 FRC code. The purpose of this video is not so much to teach new concepts, but to relate back to ones taught in previous Tip Jars.

I discuss:
The concept of robustness: good code can be easily modified, debugged, scaled to work in different situations.
The Block Diagram, Begin VI, TeleOp VI, Lifter VI, Steering VI, Debugging VI, and Autonomous Independent.
The uses of the “Command Signal”: initializing it, writing to it, and reading from it.
The use of “Boolean trigger” to have actions take press on joystick button presses only when pressed or released.
A consistent and robust approach for programming a robot function VI using a "shifter".
How to create and use “Re-entrant VIs” to modularize and reuse code for identical robot subsystems in parallel.
How to use the command signal architecture to create a simple autonomous VI which uses the full functionality of your robot code.

Please! If you like (or hate) what you saw, please leave a comment by clicking here.

Click here to download a copy of team 843's robot code. Don't forget to install the OpenG Toolkit First (see link below).

Also, don't forget to check out the rest of the series by clicking on the left side of the page.

Ben Zimmer
-- LV Mastery Team

Trouble viewing these videos? Please click here to install the latest version of flash.

Links:
FIRST Robotics Competition Website.
Installing the OpenG Toolkit using the VI Package Manager from JKI Software.
OpenG Licence FAQ from JKI Software.

Subscribe:
Follow this link to be notified whenever something new is added to the "Tip Jar".

Testimonials

Want to See More?

Already Registered?