PX4 Firmware
PX4 Autopilot Software http://px4.io
test_mixer_multirotor.cpp File Reference
#include "MultirotorMixer.hpp"
#include <cstdio>
#include <math.h>
Include dependency graph for test_mixer_multirotor.cpp:

Go to the source code of this file.

Functions

static int mixer_callback (uintptr_t handle, uint8_t control_group, uint8_t control_index, float &control)
 
int main (int argc, char *argv[])
 

Variables

static const unsigned output_max = 16
 testing binary that runs the multirotor mixer through test cases given via file or stdin and compares the mixer output against expected values. More...
 
static float actuator_controls [output_max] {}
 

Function Documentation

◆ main()

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

Definition at line 59 of file test_mixer_multirotor.cpp.

References actuator_controls, MultirotorMixer::mix(), uart_esc::mixer, mixer_callback(), output_max, and MultirotorMixer::set_airmode().

Here is the call graph for this function:

◆ mixer_callback()

static int mixer_callback ( uintptr_t  handle,
uint8_t  control_group,
uint8_t  control_index,
float &  control 
)
static

Definition at line 53 of file test_mixer_multirotor.cpp.

References actuator_controls.

Referenced by main().

Here is the caller graph for this function:

Variable Documentation

◆ actuator_controls

◆ output_max

const unsigned output_max = 16
static

testing binary that runs the multirotor mixer through test cases given via file or stdin and compares the mixer output against expected values.

Definition at line 44 of file test_mixer_multirotor.cpp.

Referenced by main().