forked from Archive/PX4-Autopilot
Unify MixingOutput constructor calls
to make them easy to search for and check the arguments.
This commit is contained in:
parent
b21e7e6c87
commit
c89f0776f6
|
@ -48,7 +48,6 @@ const char *_device;
|
||||||
|
|
||||||
ModalIo::ModalIo() :
|
ModalIo::ModalIo() :
|
||||||
OutputModuleInterface(MODULE_NAME, px4::serial_port_to_wq(MODAL_IO_DEFAULT_PORT)),
|
OutputModuleInterface(MODULE_NAME, px4::serial_port_to_wq(MODAL_IO_DEFAULT_PORT)),
|
||||||
_mixing_output{"MODAL_IO", MODAL_IO_OUTPUT_CHANNELS, *this, MixingOutput::SchedulingPolicy::Auto, false, false},
|
|
||||||
_cycle_perf(perf_alloc(PC_ELAPSED, MODULE_NAME": cycle")),
|
_cycle_perf(perf_alloc(PC_ELAPSED, MODULE_NAME": cycle")),
|
||||||
_output_update_perf(perf_alloc(PC_INTERVAL, MODULE_NAME": output update interval"))
|
_output_update_perf(perf_alloc(PC_INTERVAL, MODULE_NAME": output update interval"))
|
||||||
{
|
{
|
||||||
|
|
|
@ -174,7 +174,7 @@ private:
|
||||||
} led_rsc_t;
|
} led_rsc_t;
|
||||||
|
|
||||||
ch_assign_t _output_map[MODAL_IO_OUTPUT_CHANNELS] {{1, 1}, {2, 1}, {3, 1}, {4, 1}};
|
ch_assign_t _output_map[MODAL_IO_OUTPUT_CHANNELS] {{1, 1}, {2, 1}, {3, 1}, {4, 1}};
|
||||||
MixingOutput _mixing_output;
|
MixingOutput _mixing_output{"MODAL_IO", MODAL_IO_OUTPUT_CHANNELS, *this, MixingOutput::SchedulingPolicy::Auto, false, false};
|
||||||
|
|
||||||
perf_counter_t _cycle_perf;
|
perf_counter_t _cycle_perf;
|
||||||
perf_counter_t _output_update_perf;
|
perf_counter_t _output_update_perf;
|
||||||
|
|
|
@ -143,7 +143,7 @@ private:
|
||||||
|
|
||||||
void handle_vehicle_commands();
|
void handle_vehicle_commands();
|
||||||
|
|
||||||
MixingOutput _mixing_output {PARAM_PREFIX, DIRECT_PWM_OUTPUT_CHANNELS, *this, MixingOutput::SchedulingPolicy::Auto, false, false};
|
MixingOutput _mixing_output{PARAM_PREFIX, DIRECT_PWM_OUTPUT_CHANNELS, *this, MixingOutput::SchedulingPolicy::Auto, false, false};
|
||||||
uint32_t _reversible_outputs{};
|
uint32_t _reversible_outputs{};
|
||||||
|
|
||||||
Telemetry *_telemetry{nullptr};
|
Telemetry *_telemetry{nullptr};
|
||||||
|
|
Loading…
Reference in New Issue