Closed DrewTheRat closed 6 years ago
Ability to perform the movement of a previous distance or rotation command in (reverse or repeat).
getLastRotation
getLastDistance
initialize()
end()
initialize
The result of the above would allow code like this:
DriveDistance dd= new DriveDistance(10); // Drive 10 feet addSequential(dd); addSequential(new DriveDistance(dd, REVERSE)); // Do it in reverse
Goal
Ability to perform the movement of a previous distance or rotation command in (reverse or repeat).
Acceptance Criteria
getLastRotation
method to be implemented by commands that rotategetLastDistance
method to be implemented by commands that move a distanceinitialize()
end()
initialize()
end()
initialize
thegetLastRotation
orgetLastDistance
is called.Tech Notes
The result of the above would allow code like this: