PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Base class for an output module. More...
#include <mixer_module.hpp>
Public Member Functions | |
OutputModuleInterface (const char *name, const px4::wq_config_t &config) | |
virtual bool | updateOutputs (bool stop_motors, uint16_t outputs[MAX_ACTUATORS], unsigned num_outputs, unsigned num_control_groups_updated)=0 |
Callback to update the (physical) actuator outputs in the driver. More... | |
virtual void | mixerChanged () |
called whenever the mixer gets updated/reset More... | |
Static Public Attributes | |
static constexpr int | MAX_ACTUATORS = PWM_OUTPUT_MAX_CHANNELS |
Base class for an output module.
Definition at line 59 of file mixer_module.hpp.
|
inline |
Definition at line 64 of file mixer_module.hpp.
References updateOutputs().
|
inlinevirtual |
called whenever the mixer gets updated/reset
Reimplemented in DShotOutput, and UavcanMixingInterface.
Definition at line 80 of file mixer_module.hpp.
Referenced by MixingOutput::loadMixer(), and MixingOutput::resetMixer().
|
pure virtual |
Callback to update the (physical) actuator outputs in the driver.
stop_motors | if true, all motors must be stopped (if false, individual motors might still be stopped via outputs[i] == disarmed_value) |
outputs | individual actuator outputs in range [min, max] or failsafe/disarmed value |
num_outputs | number of outputs (<= max_num_outputs) |
num_control_groups_updated | number of actuator_control groups updated |
Implemented in PX4FMU, DShotOutput, UavcanMixingInterface, and PWMSim.
Referenced by OutputModuleInterface(), and MixingOutput::update().
|
static |
Definition at line 62 of file mixer_module.hpp.
Referenced by PWMSim::ioctl(), and UavcanMixingInterface::UavcanMixingInterface().