PX4 Firmware
PX4 Autopilot Software http://px4.io
drv_mixer.h File Reference

Mixer ioctl interfaces. More...

#include <px4_platform_common/defines.h>
#include <stdint.h>
#include <sys/ioctl.h>
Include dependency graph for drv_mixer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MIXER0_DEVICE_PATH   "/dev/mixer0"
 
#define _MIXERIOCBASE   (0x2500)
 
#define _MIXERIOC(_n)   (_PX4_IOC(_MIXERIOCBASE, _n))
 
#define MIXERIOCRESET   _MIXERIOC(1)
 reset (clear) the mixer configuration More...
 
#define MIXERIOCLOADBUF   _MIXERIOC(5)
 Add mixer(s) from the buffer in (const char *)arg. More...
 

Detailed Description

Mixer ioctl interfaces.

Normal workflow is:

  • open mixer device
  • add mixer(s) loop:
    • mix actuators to array

Each client has its own configuration.

When mixing, outputs are produced by mixers in the order they are added. A simple mixer produces one output; a multirotor mixer will produce several outputs, etc.

Definition in file drv_mixer.h.

Macro Definition Documentation

◆ _MIXERIOC

#define _MIXERIOC (   _n)    (_PX4_IOC(_MIXERIOCBASE, _n))

Definition at line 66 of file drv_mixer.h.

◆ _MIXERIOCBASE

#define _MIXERIOCBASE   (0x2500)

Definition at line 65 of file drv_mixer.h.

◆ MIXER0_DEVICE_PATH

#define MIXER0_DEVICE_PATH   "/dev/mixer0"

Definition at line 60 of file drv_mixer.h.

◆ MIXERIOCLOADBUF

#define MIXERIOCLOADBUF   _MIXERIOC(5)

Add mixer(s) from the buffer in (const char *)arg.

Definition at line 79 of file drv_mixer.h.

Referenced by PWMSim::ioctl(), TAP_ESC::ioctl(), UavcanNode::ioctl(), PX4IO::ioctl(), load(), MK::pwm_ioctl(), PX4FMU::pwm_ioctl(), and DShotOutput::pwm_ioctl().

◆ MIXERIOCRESET

#define MIXERIOCRESET   _MIXERIOC(1)

reset (clear) the mixer configuration

Definition at line 71 of file drv_mixer.h.

Referenced by PWMSim::ioctl(), TAP_ESC::ioctl(), UavcanNode::ioctl(), PX4IO::ioctl(), load(), MK::pwm_ioctl(), PX4FMU::pwm_ioctl(), and DShotOutput::pwm_ioctl().