mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-01 05:32:58 +08:00
pwm_out_sim: always publish actuators
This is required so that the SITL simulator receives a feedback from PX4.
This commit is contained in:
1 parent
d1514cd667
commit
da9029274c
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user