mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-17 05:01:37 +08:00
mixer_module: only advertise actuator_outputs when mixer is loaded
This commit is contained in:
@@ -103,12 +103,12 @@ _param_prefix(param_prefix)
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateParams();
|
updateParams();
|
||||||
|
_outputs_pub.advertise();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
_control_allocator_status_pub.advertise();
|
_control_allocator_status_pub.advertise();
|
||||||
}
|
}
|
||||||
|
|
||||||
_outputs_pub.advertise();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MixingOutput::~MixingOutput()
|
MixingOutput::~MixingOutput()
|
||||||
@@ -1239,6 +1239,7 @@ int MixingOutput::loadMixer(const char *buf, unsigned len)
|
|||||||
_mixers->groups_required(_groups_required);
|
_mixers->groups_required(_groups_required);
|
||||||
PX4_DEBUG("loaded mixers \n%s\n", buf);
|
PX4_DEBUG("loaded mixers \n%s\n", buf);
|
||||||
|
|
||||||
|
_outputs_pub.advertise();
|
||||||
updateParams();
|
updateParams();
|
||||||
_interface.mixerChanged();
|
_interface.mixerChanged();
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user