PX4 Firmware
PX4 Autopilot Software http://px4.io
MicroBenchMatrix::MicroBenchMatrix Class Reference
Inheritance diagram for MicroBenchMatrix::MicroBenchMatrix:
Collaboration diagram for MicroBenchMatrix::MicroBenchMatrix:

Public Member Functions

virtual bool run_tests ()
 Override to run your unit tests. More...
 
- Public Member Functions inherited from UnitTest
 UnitTest ()=default
 
virtual ~UnitTest ()=default
 
void print_results ()
 Prints results from running of unit tests. More...
 

Private Member Functions

bool time_px4_matrix ()
 
void reset ()
 

Private Attributes

matrix::Quatf q
 
matrix::Eulerf e
 
matrix::Dcmf d
 
matrix::Matrix< float, 16, 6 > A16
 
matrix::Matrix< float, 6, 16 > B16
 
matrix::Matrix< float, 6, 16 > B16_4
 

Additional Inherited Members

- Protected Member Functions inherited from UnitTest
virtual void _init (void)
 Run before each unit test. Override to provide custom behavior. More...
 
virtual void _cleanup (void)
 Run after each unit test. Override to provide custom behavior. More...
 
void _print_assert (const char *msg, const char *test, const char *file, int line)
 
void _print_compare (const char *msg, const char *v1_text, int v1, const char *v2_text, int v2, const char *file, int line)
 
- Protected Attributes inherited from UnitTest
int _tests_run {0}
 The number of individual unit tests run. More...
 
int _tests_failed {0}
 The number of unit tests which failed. More...
 
int _tests_passed {0}
 The number of unit tests which passed. More...
 
int _assertions {0}
 Total number of assertions tested by all unit tests. More...
 

Detailed Description

Definition at line 90 of file test_microbench_matrix.cpp.

Member Function Documentation

◆ reset()

void MicroBenchMatrix::MicroBenchMatrix::reset ( void  )
private

Definition at line 123 of file test_microbench_matrix.cpp.

References M_PI, and MicroBenchMatrix::random().

Here is the call graph for this function:

◆ run_tests()

bool MicroBenchMatrix::MicroBenchMatrix::run_tests ( )
virtual

Override to run your unit tests.

Unit tests should be called using ut_run_test macro.

Returns
true: all unit tests succeeded, false: one or more unit tests failed

Implements UnitTest.

Definition at line 109 of file test_microbench_matrix.cpp.

References ut_run_test.

◆ time_px4_matrix()

bool MicroBenchMatrix::MicroBenchMatrix::time_px4_matrix ( )
private

Member Data Documentation

◆ A16

matrix::Matrix<float, 16, 6> MicroBenchMatrix::MicroBenchMatrix::A16
private

Definition at line 104 of file test_microbench_matrix.cpp.

◆ B16

matrix::Matrix<float, 6, 16> MicroBenchMatrix::MicroBenchMatrix::B16
private

Definition at line 105 of file test_microbench_matrix.cpp.

◆ B16_4

matrix::Matrix<float, 6, 16> MicroBenchMatrix::MicroBenchMatrix::B16_4
private

Definition at line 106 of file test_microbench_matrix.cpp.

◆ d

matrix::Dcmf MicroBenchMatrix::MicroBenchMatrix::d
private

Definition at line 103 of file test_microbench_matrix.cpp.

◆ e

matrix::Eulerf MicroBenchMatrix::MicroBenchMatrix::e
private

Definition at line 102 of file test_microbench_matrix.cpp.

◆ q

matrix::Quatf MicroBenchMatrix::MicroBenchMatrix::q
private

Definition at line 101 of file test_microbench_matrix.cpp.


The documentation for this class was generated from the following file: