Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Loss packet in CRTP RX dispatch #434
When a packet is received, it is dispatched to the correct port. This dispatch is currently using 1 packet queues and if the packet is not pulled fast enough by the port, the packet is just dropped.
We should instead relax a little bit the queues by adding more slot so that the task handling the port has time to get the data. At the same time we can add an ASSERT when a packet is dropped: lets have as a goal to never loose any packet and to design the communication protocol so that the transfer is throttled by design (like only allowing to send a new request when the previous answer has been received or to pull data fast enough in the Crazyflie so that it is not possible to fill up the port queue).
The proposal is to have 16 packets queue for each CRTP RX port.