mavlink: don't miss first vehicle_command_ack
This fixes a corner case where the first advertise/publish of a vehicle_command_ack was missed. What happened was that the orb_subscribe_multi was not called until the topic had been published and therefore orb_exists was happy. This means that by the time orb_subscribe_multi was finally called, the first vehicle_command_ack was already history and not detected by orb_check. This changed adds a flag to the MavlinkOrbSubscription which tells it to subscribe to a topic from the beginning.
Showing
- src/modules/mavlink/mavlink_main.cpp 4 additions, 0 deletionssrc/modules/mavlink/mavlink_main.cpp
- src/modules/mavlink/mavlink_orb_subscription.cpp 20 additions, 14 deletionssrc/modules/mavlink/mavlink_orb_subscription.cpp
- src/modules/mavlink/mavlink_orb_subscription.h 4 additions, 0 deletionssrc/modules/mavlink/mavlink_orb_subscription.h
Please register or sign in to comment