![]() |
Atonomous
How can an autonomous command in the command base robot be used?
Can it call other commands to run? Any examples would be helpful. Thanks |
The title is spelled wrong it should be autonomous!
|
Re: Atonomous
You would create a class thats extends CommandGroup and start it in the initAutonomous method in the robot template class. Look it it up in the WPI cookbook.
|
Re: Atonomous
Here is an example of creating a command group that can run during the autonomous period. It is important to note that once you have created the command, it can be used during teleop too. So for this year, if you have a command that can, say for example, shoot from the pyramid, then if the robot finds itself next to the pyramid during teleop and you have that command "wired" to a button, you can use it.
http://Wpilib.screenstepslive.com/s/3120/m/7952/l/97994 Brad |
How could i add a wait statement into the code between the commands as they run?
|
Re: Atonomous
Quote:
Code:
addSequential(new WaitCommand(5));Code:
addSequential(new DoNothing(),5); |
| All times are GMT -5. The time now is 10:10. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi