I really like the looks and simplicity of the SmartDashboard listed in the WPI user’s guide but I can’t figure out how to get it setup and working.
How do I get the dashboard program to load on the Classmate in place of the Labview default. The readme for SmartDashboard does not describe how to setup it up on the Classmate.
Simple step by step instructions would be best. I tried simply deleteing the Dashboard.exe within the FRC Dashboard folder and replacing it with the Smartdashboard.jar file renamed to Dashboard.exe but it did not load when I brought up the Driver Station.
Once I have it working on the Classmate, we are using C++, the Users Guide only shows java code for example. How would I use it in C++?
I tried:
class IterativeDemo : public IterativeRobot
{
SmartDashboard *dash;
public:
IterativeDemo(void) {
dash = new SmartDashboard();
}
void DisabledInit(void) {
dash->init();
}
void DisabledPeriodic(void) {
dash->log(ElevatorCommand,"Elevator Command");
}
but I got this error about the first declaration: “C:/WindRiver/workspace/Team2992_2011_Code_4/IterativeDemo.cpp:254: error: no matching function for call to `SmartDashboard::SmartDashboard()’”
so I need help getting it working codewise too. For the SmartDashboard folks, a quick “Getting Started” guide with the assumption that we have never changed dashboards before would be very valuable.
Sweet, thanks. I still can’t understand when you are supposed to use pointer and when you are not. Nothing is consistent and so it seems impossible to get the hang of C++ coding by example.
Do you know how to setup it up on the Classmate so its uses a custom dashboard instead of the default? I still need help there.
Well, SmartDashboard is supposed to have static members - this means you don’t have to have an object of the type to use them. This is denoted with the “::”. A few things do this, often getInstance functions to get singleton instances of a class. I’m willing to help answer any questions you may have, so please, just ask!
One of 166’s team members made a simple launcher for the SmartDashboard, and he’s posting it now.
EDIT: It’s here
Thanks for the link to the launcher, we’ll give that a try tonight. It will be so nice to get a simple dashboard without all the clusters and formatting and other associated claptrap. We are still amateurs at our coding, so just being able to pop up the variables we are looking for is going to be so handy for debugging.
We were having to squeeze them all into the dsLCD area of the Driverstation which is a big pain.