The Toronto Robot Framework includes the TorontoJar project and the TorontoRobot project.
The Toronto Robot extends the wpilib Command Based robot example class to support a robot with Left/Right (west coast) drive, with encoders on each side, and a gyro.
The Toronto Jar adds example code to read from a Joystick or GameController and creates a more helpful Gyro interface.
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 Auto Commands
Subsystem Definition
Links to
Utility Classes
Motors