Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Configure Autonomous #68

Open
drewwhis opened this issue Mar 11, 2020 · 1 comment
Open

Configure Autonomous #68

drewwhis opened this issue Mar 11, 2020 · 1 comment
Labels
software Write software

Comments

@drewwhis
Copy link
Member

drewwhis commented Mar 11, 2020

I think we just need to generate one autonomous that is configured based on Shuffleboard Settings.

new WaitCommand(/*Time to wait before shooting*/)
.andThen(/*Command to target and shoot or do nothing*/)
.andThen(new WaitCommand(/*Time to wait after shooting*/))
.andThen(/*Command to move somewhere else or stay put*/);
@drewwhis drewwhis added the software Write software label Mar 11, 2020
@drewwhis
Copy link
Member Author

drewwhis commented Mar 11, 2020

We could create a variable in RobotContainer that is the Do Nothing command:

doNothingCommand = new ParallelRaceGroup(new AutoDriveCommand(0,0,0), new WaitCommand(0));

For this task, in the method to get the autonomous command we can set everything to:

return new WaitCommand(0)
.andThen(doNothingCommand)
.andThen(new WaitCommand(0))
.andThen(doNothingCommand);

I think this would give us the structure of the auto command we want.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
software Write software
Projects
None yet
Development

No branches or pull requests

1 participant