Skip to content
Snippets Groups Projects
Commit da902927 authored by Julian Oes's avatar Julian Oes
Browse files

pwm_out_sim: always publish actuators

This is required so that the SITL simulator receives a feedback from
PX4.
parent d1514cd6
No related branches found
No related tags found
No related merge requests found
......@@ -231,7 +231,8 @@ PWMSim::run()
}
/* can we mix? */
if (_armed && _mixers != nullptr) {
/* We also publish if not armed, this way we make sure SITL gets feedback. */
if (_mixers != nullptr) {
/* do mixing */
unsigned num_outputs = _mixers->mix(&_actuator_outputs.output[0], _num_outputs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment