PX4 Firmware
PX4 Autopilot Software http://px4.io
MuorbTestExample Class Reference

#include <muorb_test_example.h>

Collaboration diagram for MuorbTestExample:

Public Member Functions

 MuorbTestExample ()
 
 ~MuorbTestExample ()
 
int main ()
 
 MuorbTestExample ()
 
 ~MuorbTestExample ()
 
int main ()
 

Static Public Attributes

static px4::AppState appState
 

Private Member Functions

int DefaultTest ()
 
int PingPongTest ()
 
int FileReadTest ()
 
int uSleepTest ()
 
int DefaultTest ()
 
int PingPongTest ()
 

Private Attributes

struct esc_status_s m_esc_status
 
struct vehicle_command_s m_vc = {}
 

Detailed Description

Definition at line 40 of file muorb_test_example.h.

Constructor & Destructor Documentation

◆ MuorbTestExample() [1/2]

MuorbTestExample::MuorbTestExample ( )
inline

Definition at line 43 of file muorb_test_example.h.

◆ ~MuorbTestExample() [1/2]

MuorbTestExample::~MuorbTestExample ( )
inline

Definition at line 44 of file muorb_test_example.h.

References main().

Here is the call graph for this function:

◆ MuorbTestExample() [2/2]

MuorbTestExample::MuorbTestExample ( )
inline

Definition at line 49 of file muorb_test_example.h.

◆ ~MuorbTestExample() [2/2]

MuorbTestExample::~MuorbTestExample ( )
inline

Definition at line 51 of file muorb_test_example.h.

References appState, DefaultTest(), main(), and PingPongTest().

Here is the call graph for this function:

Member Function Documentation

◆ DefaultTest() [1/2]

int MuorbTestExample::DefaultTest ( )
private

Definition at line 67 of file muorb_test_example.cpp.

References appState, pwm_input_s::error_count, orb_advert_t, orb_advertise(), ORB_ID, and orb_publish().

Referenced by ~MuorbTestExample().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DefaultTest() [2/2]

int MuorbTestExample::DefaultTest ( )
private

◆ FileReadTest()

int MuorbTestExample::FileReadTest ( )
private

Definition at line 181 of file muorb_test_example.cpp.

References OK.

Referenced by main().

Here is the caller graph for this function:

◆ main() [1/2]

int MuorbTestExample::main ( )

Definition at line 56 of file muorb_test_example.cpp.

References appState, FileReadTest(), PingPongTest(), and uSleepTest().

Referenced by muorb_test_entry(), PX4_MAIN(), and ~MuorbTestExample().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main() [2/2]

int MuorbTestExample::main ( )

◆ PingPongTest() [1/2]

int MuorbTestExample::PingPongTest ( )
private

Definition at line 106 of file muorb_test_example.cpp.

References appState, m_esc_status, m_vc, orb_advert_t, orb_advertise(), orb_check(), orb_copy(), ORB_ID, orb_publish(), and orb_subscribe().

Referenced by main(), and ~MuorbTestExample().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PingPongTest() [2/2]

int MuorbTestExample::PingPongTest ( )
private

◆ uSleepTest()

int MuorbTestExample::uSleepTest ( )
private

Definition at line 165 of file muorb_test_example.cpp.

References hrt_absolute_time().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ appState

static px4::AppState MuorbTestExample::appState
static

◆ m_esc_status

struct esc_status_s MuorbTestExample::m_esc_status
private

Definition at line 56 of file muorb_test_example.h.

Referenced by PingPongTest().

◆ m_vc

struct vehicle_command_s MuorbTestExample::m_vc = {}
private

Definition at line 57 of file muorb_test_example.h.

Referenced by PingPongTest().


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