mavlink: add optional disable_sharing flag to add_orb_subscription

This is a more generic solution for 532a97041, and also enables it for
vehicle_command_ack's.

In addition it avoids using a timestamp for subscription update checking,
because it does not work well together with orb queuing.
This commit is contained in:
Beat Küng
2018-07-12 21:31:38 +02:00
committed by Lorenz Meier
parent bb86c5f200
commit 060b130128
3 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -466,7 +466,7 @@ private:
protected:
explicit MavlinkStreamCommandLong(Mavlink *mavlink) : MavlinkStream(mavlink),
_cmd_sub(_mavlink->add_orb_subscription(ORB_ID(vehicle_command)))
_cmd_sub(_mavlink->add_orb_subscription(ORB_ID(vehicle_command), 0, true))
{}
bool send(const hrt_abstime t)