![]() |
Sending SmartDashboard Data to cRIO without pressing [ENTER] key
Hi,
Our team is attempting to tune a PID controller using the SendablePIDController and corresponding widget on the SmartDashboard. We ran into a little problem last night. We successfully displayed the widget on the dashboard. With our robot enabled, we typed in a new P constant on the SmartDashboard and then hit the [ENTER] key, which immediately disabled our robot. Last year on the driver station the space bar was used to disable the robot. This year it is the [ENTER] key. Does anyone have a solution on how I can enter data into the SmartDashboard triggering the SmartDashboard to recognize the new data and send it to the robot, without me using the [ENTER] key on the driver station? I don't want to keep inadvertently disabling my robot when I'm trying to see the effect of a new P constant in my PID controller. Thank you! Dianne |
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
<removed>
|
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
I have no personal experience with SmartDashboard, but since last year my team uses the UDP on port 1140 (if I recall right?) to communicate with a custom dashboard we make in C#, and if you check out the Team Update on the 24th of January, I believe the port for Dashboard to Robot communications is UDP 1150, you can, without much effort, create a C# dashboard to communicate with the robot using UDP :).
I know my answer is not 100% relevant, but if you do not manage to find your answer than I hope this is of help to you. Good luck!! |
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
Since this thread is about SendablePIDController and the original poster seems to have figured it out, can you help us please?
We are using the IterativeRobot instead of the CommandRobot and we are trying to get the SendablePIDController to work on our Smartdashboard so that we can tune our speed encoder on our shooter. We started yesterday by putting this in our class init: Code:
SendablePIDController *speedControl;Code:
speedControl = new SendablePIDController(0.0,0.0004,0.0, speedEncoder, shooterMotor1);Code:
SmartDashboard::GetInstance()->PutData("SendablePIDController",SendablePIDController::GetInstance());Thanks |
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
Quote:
|
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
Quote:
Code:
SmartDashboard::GetInstance()->PutData("SendablePIDController",speedControl); |
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
Quote:
|
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
bump bump bump
Has anyone found an acceptable workaround for the Enter = disabled bot issue? We don't want to have to use two laptops at every match... I'm hoping I don't have to dig through the smartdashboard code to make a fix myself. Anyone? |
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
Yeah, big problem for me too... A fix would be much appreciated (even if it is quite hackish...)
|
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
Quote:
|
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
For any teams looking for a solution to the treads original problem, it looks like Team 694 developed a solution in their bug report:
Quote:
|
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
1 Attachment(s)
Alright, I've created an extension which will simulate the enter key being pressed on the SmartDashboard when you push a button.
To use it, download the attached .zip, pull the .jar out of it and put it into "\Program Files\SmartDashboard\Extensions", then run the SmartDashboard. Select "View/Add.../Enter Key" and there will be a button you can use. |
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
Quote:
Suppose you've tried binding this action to a key? Because that would make it even more awesome. |
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
Quote:
|
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
1 Attachment(s)
Alright. So I patched the dashboard, but I don't have a robot I can use. Can someone test the file for me?
|
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
I was just testing last night with the 2013 SmartDashboard and it seems like i still have this problem? I couldn't seem to get a new value in a text field to the robot without pressing enter. Has anyone else tried this yet? is there another way to get the value to update? I would LOVE to be able to run both smartDashboard and the driver station on one computer AND update values without disabling the robot :-)
Let me know if there's a solution i'm not aware of, thanks! |
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
For the Enter key problem, if you select another text field with the mouse, it will commit the value in the text field you just changed. So type in the numbers, don't hit enter, instead click with the mouse in another field.
That will commit the change to the field. Brad |
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
Instead of using the Dashboard to send data to the cRIO, we use the debug console instead. Our FRC library has a module that enables us to interact with the cRIO using the debug console. Basically, the cRIO program provides a command line interface printing a command line prompt on the debug console. Then the user can type the command to be executed with command line parameters. For example, the following shows an excerpt on what the debug console looks like:
Code:
Console-> help |
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
According to the Software Notes the version of SmartDashboard released today (in the C++ and Java updates) will commit values when you tab.
|
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key
Yup, it was a bug where it was working in the LiveWindow (test mode) but not in the regular SmartDashboard widgets. Should be fixed now, so just click in another field or otherwise get the modified field to lose focus and the value will commit.
Also, notice that we'll automatically register all your actuators and sensors for test mode so that you can see values and manipulate them without having to write any other code. Brad |
| All times are GMT -5. The time now is 14:24. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi