Quote:
Originally Posted by Ginto8
My team created a class just for this purpose here. To use it:
Code:
addSequential(new Conditional(<Command for true>,<Command for false>) {
protected boolean condition() {
return <condition>;
}
});
<Command for true> and <Command for false> can be any command, or null if you want nothing to run in that case.
|
Have you tested your full autonomous sequence to be working using this Conditional command? My experience is that this pattern (a Command that instantiates and then .start()s another Command) does
not work as intended.