Is it possible to use the default FRC Driver Station and set the options in the autonomous mode drop down and/or the different commands on the “Commands” tab without programming (I don’t need to change much and like the current UI)?
I found the .txt & .ini files in C:\Users\Public\Documents\FRC and was able to make changes to the “Checklist” tab by editing Checklist.txt. Is there a way to do the same thing for the two requests above? Perhaps by adding a new section to DashboardSettings.ini?
You can’t change it by editing a configuration file. You can add new controls and read these on the robot. Alternatively you can read the existing controls on the robot. It depends on how complex you need them to be. What language do you use?
I get the feeling the C++ code shown below, which comes from the wpilib sample robot project, is close. The comments from the sample do state it’s for the Java SmartDashboard but they don’t explain how to set the chooser options for the LabView dashboard?
Not sure about other programming languages, but the dashboard is just a program. We had ours set to read in a text file and run the code from that. This would let us change the functionality of the autonomous mode on the fly.
If you are talking about having the default dashboard supply parameters to your auto, the basic tab has a handful of numeric sliders and strings that the driver can set and the robot’s auto read. You can modify the name of the controls by setting other Network Table variables from your robot. You can persist these by going to the Variable tab and double clicking on the variables that you want to retain their value from match to match. If you want a constant default value for them, the robot can set the variables once, but then allow the driver to update them.
And as others have said, the dashboard is just a program. In fact the default dashboard is just an exe built from the LV template dashboard.
I can successfully set the string, button and slider fields on the Driver Station “Basic” tab, code snippet below. I haven’t been able to find a way to set the options on the chooser on the “Drive” tab. Is that meant to be possible from the robot code or is it only possible by building a custom Driver Station app with LabView?
The auto selector shows the value of the “Auto List” string array. It should be pretty easy to set it in some initializers so that valid autos show up in the list, always consistent with the code. If you would rather have it come from file, you can use a persisted NT variable.
And of course, you can also make a custom dashboard if you want another means of selecting.