Simple select box for choosing which autonomous to run.
- Copy the contents of
autoselection.html
to wherever in the dashboard you desire. - Copy
autoselection.js
into thecomponents
directory of your FRCDashboard system. - Link the script from
index.html
, for example:
<script src="components/autoselection.js"></script>
- If necessary, change the keys of the NetworkTables values used in
autoselection.js
to the keys your robot code uses.
Alternatively, you could just copy all the code into ui.js
or other JavaScript script, but that's a bit tougher to keep organized.