PX4 Firmware
PX4 Autopilot Software http://px4.io
test.cpp File Reference

Test library code. More...

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <px4_platform_common/defines.h>
#include "test.hpp"
Include dependency graph for test.cpp:

Go to the source code of this file.

Functions

bool __EXPORT equal (float a, float b, float epsilon)
 
bool __EXPORT greater_than (float a, float b)
 
bool __EXPORT less_than (float a, float b)
 
bool __EXPORT greater_than_or_equal (float a, float b)
 
bool __EXPORT less_than_or_equal (float a, float b)
 
void __EXPORT float2SigExp (const float &num, float &sig, int &exp)
 

Detailed Description

Test library code.

Definition in file test.cpp.

Function Documentation

◆ equal()

◆ float2SigExp()

void __EXPORT float2SigExp ( const float &  num,
float &  sig,
int &  exp 
)

Definition at line 103 of file test.cpp.

References matrix::abs(), matrix::ceil(), f(), and matrix::floor().

Here is the call graph for this function:

◆ greater_than()

bool __EXPORT greater_than ( float  a,
float  b 
)

Definition at line 59 of file test.cpp.

◆ greater_than_or_equal()

bool __EXPORT greater_than_or_equal ( float  a,
float  b 
)

Definition at line 81 of file test.cpp.

Referenced by control::blockRandUniformTest(), and blockRandUniformTest().

Here is the caller graph for this function:

◆ less_than()

bool __EXPORT less_than ( float  a,
float  b 
)

Definition at line 70 of file test.cpp.

◆ less_than_or_equal()

bool __EXPORT less_than_or_equal ( float  a,
float  b 
)

Definition at line 92 of file test.cpp.

Referenced by control::blockRandUniformTest(), and blockRandUniformTest().

Here is the caller graph for this function: