mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-04 09:50:35 +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:
@@ -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