NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
flight_mixer_unittest.cc File Reference
#include <stdint.h>
#include <stdbool.h>
#include <limits.h>
#include "debug.h"
#include <platform.h>
#include "build_config.h"
#include "common/axis.h"
#include "common/maths.h"
#include "common/filter.h"
#include "config/gimbal.h"
#include "drivers/sensor.h"
#include "drivers/accgyro.h"
#include "drivers/pwm_mapping.h"
#include "drivers/gyro_sync.h"
#include "sensors/acceleration.h"
#include "rx/rx.h"
#include "flight/anglerate.h"
#include "flight/mixer.h"
#include "config/config.h"
#include "unittest_macros.h"
#include "gtest/gtest.h"
Include dependency graph for flight_mixer_unittest.cc:

Data Structures

class  MixerBasicTest
 

Macros

#define TEST_RC_MID   1500
 
#define TEST_MIN_COMMAND   1000
 
#define TEST_SERVO_MID   1500
 

Functions

void resetRX ()
 
 TEST (FlightAxisUnittest, TestAxisIndices)
 
 TEST (MixerPresets, TestPresets)
 
 TEST_F (MixerBasicTest, TestMixerArmed)
 
 TEST_F (MixerBasicTest, Test3dThrottleRange)
 
 TEST_F (MixerBasicTest, TestMotorPassthroughWhenDisarmed)
 
 TEST_F (MixerBasicTest, TestForwardAuxChannelsToServosWithNoServos)
 
 TEST_F (MixerBasicTest, TestMixerExtremes)
 
 TEST_F (MixerBasicTest, TestMixerUnusedMotorsAtMin)
 
 TEST_F (MixerBasicTest, TestMixerModeQuadX)
 
 TEST_F (MixerBasicTest, TestMixerModeAirplane)
 
 TEST_F (MixerBasicTest, TestQuadMotors)
 
 TEST_F (MixerBasicTest, TestInvalidConfig)
 
 TEST_F (MixerBasicTest, TestAllModesTested)
 

Variables

struct mixer default_mixer
 

Macro Definition Documentation

#define TEST_MIN_COMMAND   1000
#define TEST_RC_MID   1500
#define TEST_SERVO_MID   1500

Function Documentation

void resetRX ( )
TEST ( FlightAxisUnittest  ,
TestAxisIndices   
)
TEST ( MixerPresets  ,
TestPresets   
)
TEST_F ( MixerBasicTest  ,
TestMixerArmed   
)

Here is the call graph for this function:

TEST_F ( MixerBasicTest  ,
Test3dThrottleRange   
)

Here is the call graph for this function:

TEST_F ( MixerBasicTest  ,
TestMotorPassthroughWhenDisarmed   
)

Here is the call graph for this function:

TEST_F ( MixerBasicTest  ,
TestForwardAuxChannelsToServosWithNoServos   
)

Here is the call graph for this function:

TEST_F ( MixerBasicTest  ,
TestMixerExtremes   
)

Here is the call graph for this function:

TEST_F ( MixerBasicTest  ,
TestMixerUnusedMotorsAtMin   
)

Here is the call graph for this function:

TEST_F ( MixerBasicTest  ,
TestMixerModeQuadX   
)

Here is the call graph for this function:

TEST_F ( MixerBasicTest  ,
TestMixerModeAirplane   
)

Here is the call graph for this function:

TEST_F ( MixerBasicTest  ,
TestQuadMotors   
)

Here is the call graph for this function:

TEST_F ( MixerBasicTest  ,
TestInvalidConfig   
)

Here is the call graph for this function:

TEST_F ( MixerBasicTest  ,
TestAllModesTested   
)

Variable Documentation

struct mixer default_mixer