The Toronto Robot example class T_Robot extends the WPILIB Iterative Robot. It adds example code to read from a Joystick or GameController and drive the robot using a Left/Right drive with encoder feedback and an analog gyro.
The example code uses Proportional Feedback Control (PID - P only) to control the speed of the robot motors precisely using encoder feedback for each drive motor.
Gyro feedback examples show how to control the robot direction using a gyro for accurate autonomous tracking.
Various commands are illustrated as building blocks for a complete autonomous including:
The frameworks have built in routines to organize the code that updates the SmartDashboard
Operator Input
Controllers and Joysticks
Sensors
Default Driving Commands
Useful Commands
Subsystem Definition
Links to
Utility Classes
Motors