mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-28 10:16:43 +08:00
vmount: properly unadvertise uorb topics when stopping or re-configuring vmount. Othwerise subsequent advertise calls may fail (only ever witnessed for _mount_orientation_pub)
This commit is contained in:
committed by
Beat Küng
parent
cbe3627b8c
commit
b8d389ca4e
@@ -52,6 +52,13 @@ OutputMavlink::OutputMavlink(const OutputConfig &output_config)
|
||||
{
|
||||
}
|
||||
|
||||
OutputMavlink::~OutputMavlink()
|
||||
{
|
||||
if (_vehicle_command_pub) {
|
||||
orb_unadvertise(_vehicle_command_pub);
|
||||
}
|
||||
}
|
||||
|
||||
int OutputMavlink::update(const ControlData *control_data)
|
||||
{
|
||||
vehicle_command_s vehicle_command = {
|
||||
|
||||
Reference in New Issue
Block a user