mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +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)
|
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 */
|
/* check if already subscribed to this topic */
|
||||||
MavlinkOrbSubscription *sub;
|
MavlinkOrbSubscription *sub;
|
||||||
|
|
||||||
@@ -1346,6 +1347,7 @@ MavlinkOrbSubscription *Mavlink::add_orb_subscription(const orb_id_t topic, int
|
|||||||
return sub;
|
return sub;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* add new subscription */
|
/* add new subscription */
|
||||||
MavlinkOrbSubscription *sub_new = new MavlinkOrbSubscription(topic, instance);
|
MavlinkOrbSubscription *sub_new = new MavlinkOrbSubscription(topic, instance);
|
||||||
|
|||||||
Reference in New Issue
Block a user