MixingOutput: make scheduling configurable

And make sure fmu calls MixingOutput::updateSubscriptions on startup even
if no mixer is loaded, so that it gets scheduled.
This commit is contained in:
Beat Küng
2019-08-31 10:05:00 -04:00
committed by Daniel Agar
parent a2ebbe9066
commit f0ee0b5d49
3 changed files with 49 additions and 36 deletions
+3 -1
View File
@@ -165,7 +165,7 @@ public:
unsigned num_outputs, unsigned num_control_groups_updated) override;
private:
MixingOutput _mixing_output{*this, true};
MixingOutput _mixing_output{*this, MixingOutput::SchedulingPolicy::Auto, true};
static constexpr uint8_t MAX_ACTUATORS = DIRECT_PWM_OUTPUT_CHANNELS;
@@ -263,6 +263,8 @@ PX4FMU::init()
// Getting initial parameter values
update_params();
ScheduleNow();
return 0;
}