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