|
Update Dashboard data prior to match start
Our team is new to the usage of C++ this year and so far it has been a very pleasant switch from LV. One of the things that we never had working properly (due to low priority) was the ability to send data to the driver station while not in isAutonomous or isOperatorControl. The desire is to get feedback for data such as air pressure from a transducer on an analog channel or amount of shoot delay from a potentiometer connected to the Cypress IO board before the match begins.
Once in either of these modes, data sent to the DS using DriverStation::GetInstance() -> GetLowPriorityDashboardPacker() (as outlined in the WPI example), then adding the data to a cluster is clean and consistent.
When using LabView this was easily accomplished using the PeriodTasks vi wrapper, and I can only imagine there is a similar structure and/or capability in C++. This request is mainly due to the lack in understanding on the C++ class and call structures in FRC.
For reference, we are using the standard LabView based dashboard. Any help on where to place these calls to send data while in would be greatly appreciated.
|