mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:36:48 +08:00
mavlink: fix transmitting vehicle commands
This commit is contained in:
committed by
Lorenz Meier
parent
9fa882119d
commit
532a970410
@@ -1337,6 +1337,7 @@ void Mavlink::send_protocol_version()
|
||||
|
||||
MavlinkOrbSubscription *Mavlink::add_orb_subscription(const orb_id_t topic, int instance)
|
||||
{
|
||||
if (topic != ORB_ID(vehicle_command)) {
|
||||
/* check if already subscribed to this topic */
|
||||
MavlinkOrbSubscription *sub;
|
||||
|
||||
@@ -1346,6 +1347,7 @@ MavlinkOrbSubscription *Mavlink::add_orb_subscription(const orb_id_t topic, int
|
||||
return sub;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* add new subscription */
|
||||
MavlinkOrbSubscription *sub_new = new MavlinkOrbSubscription(topic, instance);
|
||||
|
||||
Reference in New Issue
Block a user