Alright. So I modified the dashboard and removed everything from it except the camera image and the robot IP (which was needed for the image to show). Then I added a single boolean indicator, and put this in my code:
Code:
...
Dashboard *dash;
...
void SendDashboardData()
{
dash = &DriverStation::getInstance()->GetHighPriorityDashboardPacker();
dash->AddBoolean(true);
dash->Finalize();
}
And I call SendDashboardData() on each iteration inside OperatorControl. However, when I try to run this, it doesn't work, and sometimes causes all sorts of problems by freezing up the driver station.
What's the proper way to do this? I've looked at the DashboardDataFormat.cpp example but it seems to be written for the default dashboard with all the clusters on it.
Also, what's the difference between the high and low priority packers? Can they be used interchangeably?