Go to Post I hope Dave doesn't see these. He'll want you to put in a banana and use it for a game clue. - IndySam [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
  #1   Spotlight this post!  
Unread 01-02-2017, 00:51
rtrahms's Avatar
rtrahms rtrahms is offline
Registered User
FRC #1778 (Chill Out!)
Team Role: Mentor
 
Join Date: Dec 2013
Rookie Year: 2013
Location: Seattle, WA
Posts: 17
rtrahms is a jewel in the roughrtrahms is a jewel in the roughrtrahms is a jewel in the rough
Intermittent Sendable Chooser output on Smart Dashboard

Hi all -
We use the SendableChooser class for creating our autonomous options:

chooser = new SendableChooser();

chooser.addDefault("DO_NOTHING", DO_NOTHING);
chooser.addObject("DRIVE_FORWARD", DRIVE_FORWARD);
chooser.addObject("DEPOSIT_GEAR_LEFT", DEPOSIT_GEAR_LEFT);
chooser.addObject("DEPOSIT_GEAR_CENTER", DEPOSIT_GEAR_CENTER);
chooser.addObject("DEPOSIT_GEAR_RIGHT", DEPOSIT_GEAR_RIGHT);
chooser.addObject("DRIVE_AND_SHOOT_BLUE_LEFT", DRIVE_AND_SHOOT_BLUE_LEFT);
chooser.addObject("DRIVE_AND_SHOOT_BLUE_CENTER", DRIVE_AND_SHOOT_BLUE_CENTER);
chooser.addObject("DRIVE_AND_SHOOT_BLUE_RIGHT", DRIVE_AND_SHOOT_BLUE_RIGHT);
chooser.addObject("DRIVE_AND_SHOOT_RED_LEFT", DRIVE_AND_SHOOT_RED_LEFT);
chooser.addObject("DRIVE_AND_SHOOT_RED_CENTER", DRIVE_AND_SHOOT_RED_CENTER);
chooser.addObject("DRIVE_AND_SHOOT_RED_RIGHT", DRIVE_AND_SHOOT_RED_RIGHT);

SmartDashboard.putData("Auto_Mode_Chooser", chooser);

When we start up smart dashboard, these options appear, and work... most of the time. Sometimes when we start smart dashboard, the options are not present. Restarting the dashboard once or twice is usually all it takes, but this looks to be a 'missed transaction' between the robot and the driver station. Has anyone had a similar experience? If so, how did you solve it?

Thanks.
__________________
Software Mentor
FRC Team 1778 - Chill Out!
Mountlake Terrace High School
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2017, 01:10
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 395
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Intermittent Sendable Chooser output on Smart Dashboard

NetworkTables should sync on startup, so one dashboard restart should be all you need. Are you using 1.0 or SFX?
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2017, 08:59
rtrahms's Avatar
rtrahms rtrahms is offline
Registered User
FRC #1778 (Chill Out!)
Team Role: Mentor
 
Join Date: Dec 2013
Rookie Year: 2013
Location: Seattle, WA
Posts: 17
rtrahms is a jewel in the roughrtrahms is a jewel in the roughrtrahms is a jewel in the rough
Re: Intermittent Sendable Chooser output on Smart Dashboard

We're using 1.0.

Yes, most single restarts get it, but I seem to recall sometimes needing two. It also seems more common than I am comfortable with.
__________________
Software Mentor
FRC Team 1778 - Chill Out!
Mountlake Terrace High School
Reply With Quote
  #4   Spotlight this post!  
Unread 01-02-2017, 09:18
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 992
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Intermittent Sendable Chooser output on Smart Dashboard

Is this occurring on fresh starts of the Dashboard with the same Robot Code or are you seeing this when you modify the list of available options? If it's the latter, you may be running into https://github.com/wpilibsuite/SmartDashboard/issues/71
Reply With Quote
  #5   Spotlight this post!  
Unread 02-02-2017, 09:03
rtrahms's Avatar
rtrahms rtrahms is offline
Registered User
FRC #1778 (Chill Out!)
Team Role: Mentor
 
Join Date: Dec 2013
Rookie Year: 2013
Location: Seattle, WA
Posts: 17
rtrahms is a jewel in the roughrtrahms is a jewel in the roughrtrahms is a jewel in the rough
Re: Intermittent Sendable Chooser output on Smart Dashboard

This is occurring on a fresh start of smart dashboard. I haven't made any changes to sendable chooser in a while.
__________________
Software Mentor
FRC Team 1778 - Chill Out!
Mountlake Terrace High School
Reply With Quote
  #6   Spotlight this post!  
Unread 02-02-2017, 11:33
Oblarg Oblarg is offline
Registered User
AKA: Eli Barnett
FRC #0449 (The Blair Robot Project)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Philadelphia, PA
Posts: 1,116
Oblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond repute
Re: Intermittent Sendable Chooser output on Smart Dashboard

Yeah, SmartDashboard has never been particularly reliable. I wholly recommend physical switches for autonomous routine selection.
__________________
"Mmmmm, chain grease and aluminum shavings..."
"The breakfast of champions!"

Member, FRC Team 449: 2007-2010
Drive Mechanics Lead, FRC Team 449: 2009-2010
Alumnus/Technical Mentor, FRC Team 449: 2010-Present
Lead Technical Mentor, FRC Team 4464: 2012-2015
Technical Mentor, FRC Team 5830: 2015-2016
Reply With Quote
  #7   Spotlight this post!  
Unread 02-02-2017, 13:03
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 150
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
Re: Intermittent Sendable Chooser output on Smart Dashboard

Quote:
Originally Posted by Oblarg View Post
Yeah, SmartDashboard has never been particularly reliable. I wholly recommend physical switches for autonomous routine selection.
Improvements have been made this year to increase the reliability of the SmartDashboard. If you make a selection while the robot is disconnected, the SmartDashboard will send this selection to the robot when it connects.

There is an open PR right now to fix SendableChoosers not showing up:
https://github.com/wpilibsuite/SmartDashboard/pull/72
__________________
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 01:14.

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