Hello all,
Is there any way to log sendable objects? I’m trying to keep down the latency between the robot and driver station, but I still want to log things.
Thanks!
If you’re using Advantage Kit then you can use a LoggedDashboardNumber. (You can also do strings, booleans, etc.)
Here is the source code for them.
link
It doesn’t look like I can pass in sendables as a parameter, but I could be wrong.
the default WPILib logging will log everything put over networktables by default. If you don’t want to send things on networktables, you’ll have to manually update the values every time update() is called unless you are using a framework like advantagekit or something. You could probably do something to extract the fields from the sendable and log hem, but I don’t know how right off hand.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.