Hey Chief Delphi I’m having trouble with making a drop down menu in SFX (smart dashboard 2.0) thanks for any help you can give me
You can use a SendableChooser
http://first.wpi.edu/FRC/roborio/release/docs/cpp/classSendableChooser.html
https://wpilib.screenstepslive.com/s/3120/m/7932/l/81109-choosing-an-autonomous-program-from-smartdashboard
Thanks but we have already tried that ::ouch:: when we use this it returns the default values
The sendable chooser is the easiest and most reliable way of doing this, I can help you debug your code if you want, you can post it in a paste bin or GitHub if you want
I have had abundant problems with this widget, but after painstaking repetition, I have developed a solution. Please follow the below steps EXACTLY to ensure you get the same results!
-
Make a new Tab in the SFX - Dunno why, but just safer to start fresh
-
Click the “+” or “add” tab, and drag in the Options array from your SendableChooser
-
Double-click the SendableChooser to edit the widget, and copy the Path EXCEPT for the “/options” part. This should look something like “SmartDashboard/AutonomousMode/options”. ONLY COPY the “SmartDashboard/AutonomousMode”
-
Add another widget, ComboBox
-
Edit the ComboBox widget and paste the path.
-
Should be good to go! Make sure to press the “Play”/Green arrow to interact with the chooser
Worked for us thank you
We’re not seeing the morph option. What did we mess up?
No the morph button has not been working on our smart dashboard either
Very disappointing. Now we stick to SmartDashBoard. Or, we make the leap back to that fantastic GUI construction system available in the LabView DashBoard.
I am not happy about the BeerHall Putsch that forced me to Java this year.
T