Go to Post However I do wish to reassure people that the judges did not just fall off the back of a turnip truck... - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 31-01-2017, 14:44
JStein JStein is offline
Registered User
AKA: Justin Steinlage
FRC #1756 (Argos)
Team Role: Engineer
 
Join Date: Feb 2016
Rookie Year: 2006
Location: Central Illinois
Posts: 8
JStein is a glorious beacon of lightJStein is a glorious beacon of lightJStein is a glorious beacon of lightJStein is a glorious beacon of lightJStein is a glorious beacon of lightJStein is a glorious beacon of light
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
Reply With Quote
  #17   Spotlight this post!  
Unread 31-01-2017, 16:11
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,274
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
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).
__________________

Reply With Quote
  #18   Spotlight this post!  
Unread Yesterday, 16:51
Rob Heslin Rob Heslin is offline
Registered User
no team
 
Join Date: Feb 2017
Location: Rochester, NY
Posts: 4
Rob Heslin is on a distinguished road
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 {
  SmartDashboard dash = new SmartDashboard();//needed for non-static methods
  String AutoModeSelected;
  public void robotInit() {
    dash.putStringArray("Auto List",ArrayOfAutonomousStrings);
  }
  public void autonomousInit() {
    String AutoModeSelected = dash.getString("Auto Selector");
  }
}
I will say in 2016 the major problem with SmartDashboard.exe is that it independently resolved the RobotIP using mDNS, when the DriverStation program resolved using DNS. mDNS had a tendency not to work often, or take a long time to resolve. The LabVIEW dashboard for sometime, has actually just been given the RobotIP address through TCP port 1741 with the DriverStation program. The option to chose mDNS or the static 10.XX.YY.2 as a way to resolve RobotIP in the SmartDashboard.exe is gone, or at least I can't find it. So SMartDashboard.exe might be using that TCP port data.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 14:51.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi