PX4 / jMAVSim

Simple multirotor simulator with MAVLink protocol support
BSD 3-Clause "New" or "Revised" License
82 stars 207 forks source link

Serial/TCP/UDP ports: mark messages as forwarded #126

Closed julianoes closed 3 years ago

julianoes commented 3 years ago

When we forward a MAVLink message we should not change the sequence number. With this change we are doing that and avoid confusing PX4 which has to assume messages were dropped if the sequence number is not correctly increasing.

By marking the messages as forwarded we prevent the sequence number from being changed in the first place.

After https://github.com/PX4/jMAVlib/pull/15 is merged, the submodule here needs to be updated.

Thanks to @JonasVautherin for the help.