Changes between Version 6 and Version 7 of Command Based Robot Notes


Ignore:
Timestamp:
Jan 17, 2015, 10:06:27 AM (10 years ago)
Author:
awollack
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Command Based Robot Notes

    v6 v7  
    2222
    2323'''Commands'''
     24 - ''Initialization''
     25    * Initialization occurs when a command is run for the first time
     26    * This means that if a command is stopped and then run again the init() method will run twice
     27 
     28 - ''Execution''
     29    * The execute method inside of a command is must be concise and must not bog down the system or          the entire robot may stop
     30    * This means that large loops and wait methods should not be inside of an execute command
     31 
    2432 - ''Interrupts''
    2533    * Called to stop a command from running
     
    2937    * Commands can be easily mapped to buttons through the OI class
    3038
     39 - ''Manually Starting Commands''
     40    * In order to manually start commands, create a new command object and run the start() method on the new command object
     41    * This may be very important when programming the autonomous robot
     42 
     43  {{{ExampleCommand cmd = new ExampleCommand()}}}
     44
     45  {{{cmd.start();}}}
    3146'''Input Class'''
    3247 - ''Input Devices''
     
    4964'''Command Groups'''
    5065 - ''About''
    51     * Command Groups are used for command sequencing and parallelizazation
     66    * Command Groups are used for command sequencing and parallelization
    5267    * Basically running things in a specific order or at the same time
    5368    * Think about automated actions
    5469    * Commands will add in order of methods to add them
    5570
     71 - ''Parallel''
     72    * Runs one command in the command group after the other without the need for an end command.
     73
    5674 - ''Sequential''
    57     * TODO(testing)
     75    * Runs one command in the command group after the other with the need for an end() command before moving to the next command.
    5876
    5977  {{{addSequential(new Command1());}}}
    60  - ''Parallel''
    61     * TODO(testing)
     78
    6279 
    6380  {{{addParallel(new Command1());}}}