|
Clutter from autonomous
So this is my second year mentoring FRC, and the second year where MyRobot.cpp has absolutely exploded through the competition season due to autonomous routines being added.
I'm curious if many teams out there have similar issues, if they've solved them, and how?
My personal thinking is that a lot of this stems from the robot class being extremely tightly coupled with the game and driver station elements, and forced into a cpp file with no .h backer declaring things. While I understand this is to make things simple for people to start out, it seems like a better way should be available (in the form of an example project)
I'm thinking about doing some house-keeping during the off season to decouple the game and controls from the robot class, which should make it easy to spawn off autonomous helper functions and autonomous routines that don't all have to live in a single file to gain access to the robot parts.
Thoughts?
|