|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
||||
|
||||
|
Re: Help: Auto selector
https://wpilib.screenstepslive.com/s...smartdashboard
The example they give adds Commands to the SendableChooser. However, because you are using iterative, you can put a number or a String or an enum or something in place of where it has "new Pickup ()" and "new ElevatorPickup", and then getSelected () will return that numbwr/whatever associated with the selected option, so you can use that in an if statement to decide which Auton you want to run. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|