Our team hasn’t used network tables before and are trying to use it to publish motor data to the dashboard, specifically temperature and encoder data.
My initial thought is to put something in each subsystem’s periodic() function (that we want to publish data from).
With that approach, how would I go about initializing the network table? Should we create a network table instance in RobotContainer and pass that in to each subsystem when I create it? Or should I just use NetworkTableInstance inst = NetworkTableInstance.getDefault();
inside every subsystem?
The sample code from WPILib is pretty basic and doesn’t go into much detail on how it’s used further