bethpage-robotics / Aerial-Assist

Current source code for the 2014 FIRST Robotics Competition, Aerial Assist.
Other
2 stars 0 forks source link

Closeness to goal error handling. #7

Closed harshilgarg closed 10 years ago

harshilgarg commented 10 years ago

If the robot is closer than the minimum distance from the goal, then the winding is automatically stopped, as accomplished by the isSafeToWind method in the Launcher class. It would be a simple matter to print the boolean value to the SmartDashboard, where the driver can see if the robot is too close or too far from the goal. If the boolean is false, the driver would have to move the robot backwards before shooting. The ShootBall command group can not and should not be interrupted by the driver interface. I will edit the SmartDashboard, and then close this issue with the newest commit.