![]() |
Re: Set Auto Selector choices on default dashboard from Java robot code?
Argos typically uses switches on the actual robot. We've been let down by the dashboard methods in the past. The Huskie Board has DIP switches specifically for this reason, as do other expansion boards. People could forget to flip the switches, obviously, but that hasn't been an issue for us.
-Justin |
Re: Set Auto Selector choices on default dashboard from Java robot code?
Another real problem with Smart Dashboard during competition, is if you can't get your Driver Station to connect (for whatever reason), they will give you a generic Driver Station to use. The may not give you time to setup your Smart Dashboard (as it has been a long enough delay waiting to get your DS to connect).
|
Re: Set Auto Selector choices on default dashboard from Java robot code?
To answer the OP question, the LabVIEW default dashboard does not use a SendableChooser. Rather it requires an array of strings in SmartDashboard called "Auto List" and the user's choice is a single string "Auto Selector". The difficulty is that SmartDashboard.java has many methods that are static, but putStringArray() isn't one of them. Here is a starting point.
Code:
public class Robot extends IterativeRobot { |
| All times are GMT -5. The time now is 22:34. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi