Our team has as of now constructed a working vision tracking program but we lack sufficient speed without sacrificing accuracy. Our Raspberry Pi processes the data and sends turn angles to the RoboRio by UDP. The Pi sends data faster the Rio can read it so the Rio ends up reading from the back of the buffer and using outdated data. We want to know how to reduce or eliminate the buffer.
Read the entire buffer at once and only use the last data in the buffer.
You could also have the Pi clear the buffer before writing to it