PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Controller library code. More...
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) |
Controller library code.
Definition in file test.hpp.
bool equal | ( | float | a, |
float | b, | ||
float | eps = 1e-5 |
||
) |
Definition at line 48 of file test.cpp.
Referenced by control::blockDelayTest(), blockDelayTest(), control::blockDerivativeTest(), blockDerivativeTest(), control::blockHighPassTest(), blockHighPassTest(), blockIntegralTest(), control::blockIntegralTest(), blockIntegralTrapTest(), control::blockIntegralTrapTest(), control::blockLimitSymTest(), blockLimitSymTest(), control::blockLimitTest(), blockLimitTest(), control::blockLowPass2Test(), blockLowPass2Test(), blockLowPassTest(), control::blockLowPassTest(), control::blockOutputTest(), blockOutputTest(), control::blockPDTest(), blockPDTest(), blockPIDTest(), control::blockPIDTest(), control::blockPITest(), blockPITest(), control::blockPTest(), blockPTest(), blockRandGaussTest(), control::blockRandGaussTest(), blockRandUniformTest(), control::blockRandUniformTest(), control::blockStatsTest(), and blockStatsTest().
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().
bool greater_than_or_equal | ( | float | a, |
float | b | ||
) |
Definition at line 81 of file test.cpp.
Referenced by control::blockRandUniformTest(), and blockRandUniformTest().
bool less_than_or_equal | ( | float | a, |
float | b | ||
) |
Definition at line 92 of file test.cpp.
Referenced by control::blockRandUniformTest(), and blockRandUniformTest().