Skip to content

Getting Started

Joel Gallant edited this page May 30, 2013 · 10 revisions

ATALibJ programs start at GamePeriods. The only code inside of GamePeriods that the programmer should write is the modes array. Simply put one instance of every RobotMode inside of the array. At least one RobotMode is needed for the code to run. Small note: The wpilibj currently (as of May 30, 2013) contains a bug that makes the SmartDashboard not display the robot selector. If you want control over your robot, you will need to write your own selection process and implement it in GamePeriods.

Writing Robot Modes

There are 6 options for robot modes.

  • RobotMode
  • SafeRobotMode
  • IterativeRobot
  • IterativeRobotAdapter
  • SimpleRobot
  • SimpleRobotAdapter

Clone this wiki locally