frc5687 / 2018-robot

Code for 5687's 2018 competition robot Greta and Jitterbug
8 stars 2 forks source link

Autonomous opposite defense #297

Open TheMightyWarPig opened 6 years ago

TheMightyWarPig commented 6 years ago

Adds a routine to drive up to the opposite scale, drop the cube close to the opposite scale and then move back to defend cubes. Mainly useful if alliance member can do same side scale.

BenBernardCIS commented 6 years ago

Instead of making this a "mode" let's make it a "coop" option: In scale mode, if coop is set to "defensive": If scale is same side, behave as normally. If scale is opposite side deposit cube in the middle, then pick up 1st fence cube If switch is same side, score switch Otherwise just stay in the way