NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
maths_unittest.cc File Reference
#include <stdint.h>
#include <stdbool.h>
#include <limits.h>
#include <math.h>
#include "common/maths.h"
#include "unittest_macros.h"
#include "gtest/gtest.h"
Include dependency graph for maths_unittest.cc:

Macros

#define BARO
 

Functions

 TEST (MathsUnittest, TestConstrain)
 
 TEST (MathsUnittest, TestConstrainNegatives)
 
 TEST (MathsUnittest, TestConstrainf)
 
 TEST (MathsUnittest, TestDegreesToRadians)
 
 TEST (MathsUnittest, TestApplyDeadband)
 
void expectVectorsAreEqual (struct fp_vector *a, struct fp_vector *b)
 
 TEST (MathsUnittest, TestRotateVectorWithNoAngle)
 
 TEST (MathsUnittest, TestRotateVectorAroundAxis)
 

Macro Definition Documentation

#define BARO

Function Documentation

void expectVectorsAreEqual ( struct fp_vector a,
struct fp_vector b 
)
TEST ( MathsUnittest  ,
TestConstrain   
)

Here is the call graph for this function:

TEST ( MathsUnittest  ,
TestConstrainNegatives   
)

Here is the call graph for this function:

TEST ( MathsUnittest  ,
TestConstrainf   
)

Here is the call graph for this function:

TEST ( MathsUnittest  ,
TestDegreesToRadians   
)

Here is the call graph for this function:

TEST ( MathsUnittest  ,
TestApplyDeadband   
)

Here is the call graph for this function:

TEST ( MathsUnittest  ,
TestRotateVectorWithNoAngle   
)

Here is the call graph for this function:

TEST ( MathsUnittest  ,
TestRotateVectorAroundAxis   
)

Here is the call graph for this function: