Team612 / 612-2016

FRC Team 612's 2016 code for First Stronghold
GNU General Public License v2.0
9 stars 6 forks source link

PassDefense command #65

Closed Ahmad-Bamba closed 8 years ago

Ahmad-Bamba commented 8 years ago

For the code, we need a command that when a button on the driver is pressed, the robot can pass the defense in front of it. This requires a lot of vision and advanced level stuff, but the basics can still created now.

For this, a command needs to be made that, depending on the value of an enum, executes a different method to breech all the defenses. The enum values should be set to all the types of defenses. The methods in drivetrain would be the various ways to cross all the defenses.

This may render the BreachDefense commands obsolete. Keep this in mind.

Edit:

This is now BreachAuto

  1. Make enum Defenses in Robot.h
  2. In Execute of BreachAuto, make a switch statement for all values of Defenses including NONE
  3. The switch statements should call methods in Drivetrain. Those methods should be designed to pass the defenses.

Defense list:

AbDen commented 8 years ago

We'll try to work on the basics

WardBenjamin commented 8 years ago

This should be made a part of https://github.com/Chantilly612Code/612-2016/issues/176.