entech281 / Season_2018

0 stars 1 forks source link

Dc strategy #44

Closed dcowden closed 6 years ago

dcowden commented 6 years ago

Adds strategies to separate selection of auto paths from the other code. adds code to select strategies from buttons, switches, or an integer from the smart dashboard or robot preferences.

dcowden commented 6 years ago

@mandrews281 Fairly happy with how this turned out. Highlights: Used the four pictures you had, and called them 'FieldPoses'. Assumed we'd have a boolean for each picture, and then computed the result in all the cases

Added the code to build command differently based on targeting switch. Added a bunch of convenience methods to make it easer to do the logic, but it worked well i think.