-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command buttons don't work when loaded from save file #81
Comments
Here's a stack trace when it happens. It happens around 1/10 when running SD for me. When this happens, my sendable chooser also disappears.
|
Seeing similar problem with the FRC 2019 smart dashboard. Command buttons work when SD is started up standalone and automatically loads the last saved layout. They don't when SD is started by drive station, nor when the SD is started after the drive station was already running. |
Is this difficult to reproduce? I'm surprised to see it has been around since 2017. We have ran into this occasionally over the past couple of weeks. This bit us at our event this past weekend. We have buttons on the dashboard that we use to prep the robot before a match. We were in the semifinals and couldn't get the dashboard to connect in a state that the buttons were clickable. We were not able to start the robot in the frame perimeter and the head ref noticed so we had to depressurize our pneumatics to avoid being DQ. All other values update on the dashboard but the buttons don't respond to being clicked. Our solution is typically to reboot the RoboRio and relaunch the SmartDashboard. It sounds like the trick is that the SmartDashboard is starting up before the robot connects to the DriveStation so it works. Are bugs still being fixed in SmartDashboard or do we need to use Shuffleboard / a custom solution? |
Happened to us every time on multiple computers: Start smart dashboard first, it automatically loads the last-saved layout, then start drive station: OK.
Our main reason for using the smart dashboard is that it's more compact. A text indicator is just that, while the Shuffleboard creates a rather large widget for each data item, unless we're missing some basic idea in how to configure the Shuffleboard. |
It seems like loading an existing SD dashboard save file causes command buttons to stop working. If we do "new", the buttons work. If we save that file and load it, the command buttons don't work.
Robot code:
putData("command", new MyCommand());
The buttons can be clicked but don't transition through cancel, and the Outline Viewer shows the running value never transitions to true. If you do new, then load a save file with just one button, only that button doesn't work, other existing buttons work.
Also reported at https://www.chiefdelphi.com/forums/showthread.php?threadid=156514
The text was updated successfully, but these errors were encountered: