ExpressLRS / Backpack

Firmware for ExpressLRS compatible backpacks
GNU General Public License v3.0
95 stars 69 forks source link

Make 1 in 10 HEARTBEATS from the MAV get broadcasted so new GCSes can find the Backpack #153

Open MUSTARDTIGERFPV opened 1 month ago

MUSTARDTIGERFPV commented 1 month ago

If we always unicast, then a newly-arrived GCS won't be able to connect since the MAVLink traffic will be going to the IP of the old GCS until we receive a heartbeat from the new GCS - which we won't because it's not seeing heartbeats. This broadcasts 1/10 heartbeats so that newly-joining GCSes can find the Backpack.

MUSTARDTIGERFPV commented 1 month ago

This causes the Pkts Lost counter in MP to count up incorrectly because we've broken packet ordering; I'll fix this.