mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 08:03:33 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user