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

Controller library code. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool equal (float a, float b, float eps=1e-5)
 
bool greater_than (float a, float b)
 
bool less_than (float a, float b)
 
bool greater_than_or_equal (float a, float b)
 
bool less_than_or_equal (float a, float b)
 
void float2SigExp (const float &num, float &sig, int &exp)
 

Detailed Description

Controller library code.

Definition in file test.hpp.

Function Documentation

◆ equal()

◆ float2SigExp()

void 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 greater_than ( float  a,
float  b 
)

Definition at line 59 of file test.cpp.

◆ greater_than_or_equal()

bool 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 less_than ( float  a,
float  b 
)

Definition at line 70 of file test.cpp.

◆ less_than_or_equal()

bool 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: