![]() |
Utilizing the Smart Dashboard
1) How to put a button on the dash? (like putting up a command puts the button to run the command)
2) It seems as though the "Save" function only saves the layout of the values and not their value. When you load the robot, SmartDashboard.getNumber() throws a TableNoKeyAtIndex error (meaning that it has no data). Is it possible to make a setup where you open an xml setup and it will automatically send all of the values to the cRIO? 3) What exactly does the "Robot Preferences" widget do? I thought it could be used for #2 but it seems their keys cannot contain [s]strings[/s] spaces //E: the [s] BBCode isnt in this vBulletin? 4) How would i convert a BinaryImage to a Sendable so I can show the BinaryImage on the dash? 5) So.. on the dashboard... I can convert an integer into a progress bar. Is there a way to make it a slider bar so i can input data without converting to plain text? |
Re: Utilizing the Smart Dashboard
Quote:
http://wpilib.screenstepslive.com/s/3120/m/7932 and also here: http://wpilib.screenstepslive.com/s/...-robot-program Quote:
Quote:
|
Re: Utilizing the Smart Dashboard
Quote:
|
Re: Utilizing the Smart Dashboard
Quote:
|
Re: Utilizing the Smart Dashboard
Quote:
Just out of curiosity, why don't you like Command-Based? |
Re: Utilizing the Smart Dashboard
Quote:
If you don't like command-based programming, I highly recommend that you use RobotBuilder to take care of the code's structure. It will be much simpler to use and understand. |
Re: Utilizing the Smart Dashboard
Quote:
Quote:
|
Re: Utilizing the Smart Dashboard
Update: I don't understand this!! Robot preferences does not save. At all. Hitting the save button does nothing!
|
Re: Utilizing the Smart Dashboard
Quote:
|
Re: Utilizing the Smart Dashboard
Quote:
Quote:
Quote:
Quote:
Quote:
|
Re: Utilizing the Smart Dashboard
Quote:
|
Re: Utilizing the Smart Dashboard
Quote:
Quote:
2) see 3 3) I actually found documentation for the Preferences widget in the cookbook and it tells me to use the object Preferences. I got it kinda working (except for some stuff i gotta flush out) except when i try to load all of my stored preferences on robotInit, it will load (kinda) than give me an Out of Memory error (Not exception) than the dashboard will tell me No Robot Code and i have to re-deploy and get the same error 4) True.. ill look into it 5) I dont really follow you on this one... joelg) read #3 on the Preferences object |
Re: Utilizing the Smart Dashboard
What.... i posted and it said a moderator has to approve the thread and its still not there....
anyway, if it finally does show up, heres the exact error whenever i try to use the Preferences class Code:
[cRIO] Done ReadingI get the above error when trying to use the Prefrences class... other stuff was just blabble |
Re: Utilizing the Smart Dashboard
Code:
/*still getting above error |
Re: Utilizing the Smart Dashboard
My team's idea for #4 was to save the processed image to the computer and have the smart dashboard read that file, but I don't know how to get the SmartDashboard to read an image.
|
| All times are GMT -5. The time now is 09:49. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi