mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-15 19:21:41 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user