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

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_uorb ()
 
bool time_px4_uorb_direct ()
 
void reset ()
 

Private Attributes

vehicle_status_s status
 
vehicle_local_position_s lpos
 
sensor_gyro_s gyro
 

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 94 of file test_microbench_uorb.cpp.

Member Function Documentation

◆ reset()

void MicroBenchORB::MicroBenchORB::reset ( void  )
private

◆ run_tests()

bool MicroBenchORB::MicroBenchORB::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 111 of file test_microbench_uorb.cpp.

References ut_run_test.

◆ time_px4_uorb()

bool MicroBenchORB::MicroBenchORB::time_px4_uorb ( )
private

◆ time_px4_uorb_direct()

bool MicroBenchORB::MicroBenchORB::time_px4_uorb_direct ( )
private

Definition at line 183 of file test_microbench_uorb.cpp.

References ORB_ID, PERF, and status.

Member Data Documentation

◆ gyro

sensor_gyro_s MicroBenchORB::MicroBenchORB::gyro
private

Definition at line 108 of file test_microbench_uorb.cpp.

◆ lpos

vehicle_local_position_s MicroBenchORB::MicroBenchORB::lpos
private

Definition at line 107 of file test_microbench_uorb.cpp.

◆ status

vehicle_status_s MicroBenchORB::MicroBenchORB::status
private

Definition at line 106 of file test_microbench_uorb.cpp.


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