PX4 Firmware
PX4 Autopilot Software http://px4.io
mixer.cpp File Reference
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/module.h>
#include <px4_platform_common/posix.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <ctype.h>
#include <drivers/drv_mixer.h>
#include <lib/mixer/MixerGroup.hpp>
#include <lib/mixer/mixer_load.h>
#include <uORB/topics/actuator_controls.h>
Include dependency graph for mixer.cpp:

Go to the source code of this file.

Functions

__EXPORT int mixer_main (int argc, char *argv[])
 Mixer utility for loading mixer files to devices. More...
 
static void usage (const char *reason)
 
static int load (const char *devname, const char *fname, bool append)
 

Function Documentation

◆ load()

static int load ( const char *  devname,
const char *  fname,
bool  append 
)
static

Definition at line 133 of file mixer.cpp.

References load_mixer_file(), MIXERIOCLOADBUF, MIXERIOCRESET, px4_ioctl(), and px4_open().

Referenced by mixer_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mixer_main()

int mixer_main ( int  argc,
char *  argv[] 
)

Mixer utility for loading mixer files to devices.

Definition at line 67 of file mixer.cpp.

References load(), and usage().

Here is the call graph for this function:

◆ usage()

static void usage ( const char *  reason)
static

Definition at line 109 of file mixer.cpp.

Referenced by mixer_main().

Here is the caller graph for this function: