|
Re: Info to Dashboard
Actually, the sending of the extra data is the least of your problems.
Attached is a snippet of code from our DashboardManager ... you just add it after the solenoid stuff (which is the old version of the example code from WPI and won't work with the new library). There are a bunch of addXxxxx methods depending on the data type you want to send.
The hard part is getting the LabView coded to update the Dashboard itself by reading and processing the extra data you send at the end of the message. We found a document on line that helped get us over that hurdle (although it was somewhat dated and missing some stuff). If you Google on "LabView dashboard Joe Ross Team 330 1/11/2010" you should find it. It's on some publishing site where you have to upload a document to be able to download a document, or else pay for a membership. If you have anyone with any LabView experience, I'm sure it will be less painful for you.
Good luck!
}
lowDashData.finalizeCluster( );
lowDashData.addByte( Solenoid.getAllFromDefaultModule( ) );
}
// **** beginning of inserted code
/*
* Add our custom data to end of message
*/
{
lowDashData.addDouble( armAngle );
lowDashData.addBoolean( leftSensor );
lowDashData.addBoolean( centerSensor );
lowDashData.addBoolean( rightSensor );
lowDashData.addBoolean( redLED );
lowDashData.addBoolean( whiteLED );
lowDashData.addBoolean( blueLED );
}
// *** end of inserted code
lowDashData.finalizeCluster( );
lowDashData.commit( );
}
|