Smart Dashboard Data Sharing

After a few years of programming against the WPILIB, reading the docs & such; I’m still confused about the SD.

I get that it’s a shared map (key-value pair) across multiple machines (Rio, DriverSta, co-processor, etc). But what confuses me is how read/write should be done.

I see examples of coding up listeners, etc. But I would think it should just be writing a value, and the next process that does a read, gets that most recently written value. Right? And that the use of listeners is when you want some specialized action to be taken when the value changes.

Right?

The protocol used to share data between the machines is called NetworkTables. Data is indeed automatically synchronized between machines, so your intuition is correct that it’s not necessary to code up listeners, if you are regularly reading the value (e.g. each periodic loop of robot code) you will get the most recent value as soon as it’s available.

Good to know -thanks!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.