Mechanical-Advantage / RobotCode2018

Robot code for "The Revenge of Bot-Bot"
3 stars 1 forks source link

DriveDistanceOnHeading: Create variant with additional arguments #42

Closed brettbbonner closed 6 years ago

brettbbonner commented 6 years ago

Create a version of DriveDistanceOnHeading that takes arguments for max speed and max accel (as % values).

This is probably best done as a variant with a different signature.

As discussed, the logical approach is for the % values to be of robot maximums, e.g. a "normal" DriveDistanceOnHeading was using 90% & 3% respectively. This allows maximum flexibility (can go up as well as down) and avoids "% of a %" confusion.