wiki1097: DataSource (Version 1)

Data Sources#

Data Sources (DataSource interface name) are an abstraction for an endpoint that can send data to the Dashboard from the Robot. Creating a new data source is rediculously easy, just create a new class that implements DataSource, where ~setProcessor saves the next processor and starts listening (make sure null terminate it and it supports being called multiple times), and then when you recieve data (preferrably in own thread) just call ~processData on whatever thread you are on (will automatically set it correctly). Then Annotate the class with `@DataSource` and rebuild sfxlib, or TODO: plugin config.