Commands

HOMEWORK

TODO: Command Features to be Implemented

General

  • User can cancel a command
    • all commands should be able to be cancelled by a user action (button X on the controller)
  • Command expires after a specified time
    • all commands should expire after a given time - there is no point letting a command run forever

For a Drive to limit switch command

  • min and max rotations
    • minimum and maximum rotations for a distance. When looking for a sensor value, the command should not stop before the minimum, and should not go past the maximum.
    • this feature allows the command to end even if the limit is not reached and compensates for a sensor failure.