I am trying to implement a localization algorithm for 4 robots on a Raspberry, the robots move too fast and send sensor measurements via Bluetooth low energy to the Raspberry but sometimes the packets arrive late or get lost so they don't reflect the actual state of the robots .
How can I deal with that?