frc1418 / 2018-robot

:robot: Code for our 2018 competition robot, Panthera.
MIT License
3 stars 2 forks source link

Add more choices for priorities when selecting autonomous presets #166

Closed JosephCarpenter closed 6 years ago

JosephCarpenter commented 6 years ago

Fix #154

JosephCarpenter commented 6 years ago

I made a new variable called side_dependence because I thought it would be the most logical and succinct way of adding the the last few priority sets, but if you think there's a better way to do it, tell me :)

JosephCarpenter commented 6 years ago

A few things:

  1. I could not get the hook to work in git, but I wanted to push this before we go to Detroit since this is my home desktop (even if we don't end up using this for the actual competition I didn't want it sitting here for a week).
  2. I renamed the side_dependency variable to something that really isn't any better, but I couldn't think of a name that summed up its function well in one or two words.
  3. Unfortunately I had to add another variable for the OptimumNone methods so that you can choose the priority for the switch and scale, so once again feel free to tell me if there is a better option.