FRC125 / NU16

Official code repository for the NUTRONS 2016 robot
http://nutrons.com
4 stars 3 forks source link

Profiles for Crossing Each Defense in Auto #57

Open kreeve opened 8 years ago

kreeve commented 8 years ago

Some of the defenses have different requirements such as having the arm in safe mode or maybe driving different speeds. We should make a DefenseType Enum you can pass into the auto commands. Then we can do something like:

if(this.defenseType == DefenseType.CDF) {

     this.maxSpeed = something;

     this.maxAccel = something;

     this.armPosition = safe;

}else if...

We could even integrate this with the app, so if a path segment crosses a defense we automatically use that defense's settings for that part of the path.

kreeve commented 8 years ago

@camilo86 I would save this guy for District Champs and/or Worlds. It's a little more involved and less urgent than the other issues.