NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
alignsensor_unittest.cc File Reference
#include "target.h"
#include "math.h"
#include "stdint.h"
#include "time.h"
#include "common/axis.h"
#include "config/config.h"
#include "config/sensors.h"
#include "sensors/boardalignment.h"
#include "gtest/gtest.h"
Include dependency graph for alignsensor_unittest.cc:

Macros

#define DEG2RAD   0.01745329251
 

Functions

 TEST (AlignSensorTest, ClockwiseZeroDegrees)
 
 TEST (AlignSensorTest, ClockwiseNinetyDegrees)
 
 TEST (AlignSensorTest, ClockwiseOneEightyDegrees)
 
 TEST (AlignSensorTest, ClockwiseTwoSeventyDegrees)
 
 TEST (AlignSensorTest, ClockwiseZeroDegreesFlip)
 
 TEST (AlignSensorTest, ClockwiseNinetyDegreesFlip)
 
 TEST (AlignSensorTest, ClockwiseOneEightyDegreesFlip)
 
 TEST (AlignSensorTest, ClockwiseTwoSeventyDegreesFlip)
 

Variables

struct board_alignment alignment
 
struct board_alignment_config alignment_config
 

Macro Definition Documentation

#define DEG2RAD   0.01745329251

Function Documentation

TEST ( AlignSensorTest  ,
ClockwiseZeroDegrees   
)
TEST ( AlignSensorTest  ,
ClockwiseNinetyDegrees   
)
TEST ( AlignSensorTest  ,
ClockwiseOneEightyDegrees   
)
TEST ( AlignSensorTest  ,
ClockwiseTwoSeventyDegrees   
)
TEST ( AlignSensorTest  ,
ClockwiseZeroDegreesFlip   
)
TEST ( AlignSensorTest  ,
ClockwiseNinetyDegreesFlip   
)
TEST ( AlignSensorTest  ,
ClockwiseOneEightyDegreesFlip   
)
TEST ( AlignSensorTest  ,
ClockwiseTwoSeventyDegreesFlip   
)

Variable Documentation

struct board_alignment alignment
struct board_alignment_config alignment_config
Initial value:
= {
.rollDegrees = 0,
.pitchDegrees = 0,
.yawDegrees = 0
}