|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
||||
|
||||
|
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! |
|
#17
|
|||
|
|||
|
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 |
|
#18
|
||||
|
||||
|
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 q - Exit console mode help - List commands and info about them listobj - List registered command objects listvar - List variables and info about them get - Get the value of a variable Console-> get DriveBase.DriveKp Kp = 0.5 Console-> set DriveBase.DriveKp 0.55 Console-> |
|
#19
|
||||||
|
||||||
|
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.
|
|
#20
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|