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

Macros

#define BARO
 

Functions

void input_accel (struct instruments *self, int16_t x, int16_t y, int16_t z)
 
void input_mag (struct instruments *self, int16_t x, int16_t y, int16_t z)
 
void input_gyro (struct instruments *self, int16_t x, int16_t y, int16_t z, unsigned int duration)
 
void reset_trims (void)
 
 TEST (InsUnitTest, TestAccCalibration)
 
 TEST (InsUnitTest, TestGyroCalibration)
 
void print_ins (struct instruments *self)
 
 TEST (InsUnitTest, TestGyroIntegration)
 
 TEST (InsUnitTest, TestEulerAngleCalculation)
 
 TEST (InsUnitTest, TestMagYawAngleCalculation)
 

Macro Definition Documentation

#define BARO

Function Documentation

void input_accel ( struct instruments self,
int16_t  x,
int16_t  y,
int16_t  z 
)

Here is the call graph for this function:

void input_gyro ( struct instruments self,
int16_t  x,
int16_t  y,
int16_t  z,
unsigned int  duration 
)

Here is the call graph for this function:

void input_mag ( struct instruments self,
int16_t  x,
int16_t  y,
int16_t  z 
)

Here is the call graph for this function:

void print_ins ( struct instruments self)
void reset_trims ( void  )

Here is the call graph for this function:

TEST ( InsUnitTest  ,
TestAccCalibration   
)

Here is the call graph for this function:

TEST ( InsUnitTest  ,
TestGyroCalibration   
)

Here is the call graph for this function:

TEST ( InsUnitTest  ,
TestGyroIntegration   
)

Here is the call graph for this function:

TEST ( InsUnitTest  ,
TestEulerAngleCalculation   
)

Here is the call graph for this function:

TEST ( InsUnitTest  ,
TestMagYawAngleCalculation   
)

Here is the call graph for this function: