APM:Libraries
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MissionTest Class Reference
Collaboration diagram for MissionTest:
[legend]

Public Member Functions

void setup ()
 
void loop ()
 

Private Member Functions

bool start_cmd (const AP_Mission::Mission_Command &cmd)
 
bool verify_cmd (const AP_Mission::Mission_Command &cmd)
 
void mission_complete (void)
 
void run_mission_test ()
 
void init_mission ()
 
void init_mission_no_nav_commands ()
 
void init_mission_endless_loop ()
 
void init_mission_jump_to_nonnav ()
 
void init_mission_starts_with_do_commands ()
 
void init_mission_ends_with_do_commands ()
 
void init_mission_ends_with_jump_command ()
 
void print_mission ()
 
void run_resume_test ()
 
void run_set_current_cmd_test ()
 
void run_set_current_cmd_while_stopped_test ()
 
void run_replace_cmd_test ()
 
void run_max_cmd_test ()
 

Private Attributes

AP_InertialSensor ins
 
AP_Baro baro
 
AP_GPS gps
 
Compass compass
 
AP_AHRS_DCM ahrs {}
 
uint8_t verify_nav_cmd_iterations_to_complete = 3
 
uint8_t verify_do_cmd_iterations_to_complete = 1
 
uint8_t num_nav_cmd_runs = 0
 
uint8_t num_do_cmd_runs = 0
 
AP_Mission mission
 

Detailed Description

Definition at line 11 of file AP_Mission_test.cpp.

Member Function Documentation

◆ init_mission()

void MissionTest::init_mission ( )
private

Definition at line 162 of file AP_Mission_test.cpp.

Referenced by run_mission_test().

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

◆ init_mission_endless_loop()

void MissionTest::init_mission_endless_loop ( )
private

Definition at line 290 of file AP_Mission_test.cpp.

Here is the call graph for this function:

◆ init_mission_ends_with_do_commands()

void MissionTest::init_mission_ends_with_do_commands ( )
private

Definition at line 483 of file AP_Mission_test.cpp.

Here is the call graph for this function:

◆ init_mission_ends_with_jump_command()

void MissionTest::init_mission_ends_with_jump_command ( )
private

Definition at line 559 of file AP_Mission_test.cpp.

Here is the call graph for this function:

◆ init_mission_jump_to_nonnav()

void MissionTest::init_mission_jump_to_nonnav ( )
private

Definition at line 342 of file AP_Mission_test.cpp.

Here is the call graph for this function:

◆ init_mission_no_nav_commands()

void MissionTest::init_mission_no_nav_commands ( )
private

Definition at line 233 of file AP_Mission_test.cpp.

Here is the call graph for this function:

◆ init_mission_starts_with_do_commands()

void MissionTest::init_mission_starts_with_do_commands ( )
private

Definition at line 406 of file AP_Mission_test.cpp.

Here is the call graph for this function:

◆ loop()

void MissionTest::loop ( void  )

Definition at line 1201 of file AP_Mission_test.cpp.

Referenced by loop().

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

◆ mission_complete()

void MissionTest::mission_complete ( void  )
private

Definition at line 97 of file AP_Mission_test.cpp.

Here is the call graph for this function:

◆ print_mission()

void MissionTest::print_mission ( )
private

Definition at line 642 of file AP_Mission_test.cpp.

Referenced by run_mission_test(), run_replace_cmd_test(), run_resume_test(), run_set_current_cmd_test(), and run_set_current_cmd_while_stopped_test().

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

◆ run_max_cmd_test()

void MissionTest::run_max_cmd_test ( )
private

Definition at line 1134 of file AP_Mission_test.cpp.

Here is the call graph for this function:

◆ run_mission_test()

void MissionTest::run_mission_test ( )
private

Definition at line 103 of file AP_Mission_test.cpp.

Referenced by loop().

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

◆ run_replace_cmd_test()

void MissionTest::run_replace_cmd_test ( )
private

Definition at line 1029 of file AP_Mission_test.cpp.

Here is the call graph for this function:

◆ run_resume_test()

void MissionTest::run_resume_test ( )
private

Definition at line 681 of file AP_Mission_test.cpp.

Here is the call graph for this function:

◆ run_set_current_cmd_test()

void MissionTest::run_set_current_cmd_test ( )
private

Definition at line 787 of file AP_Mission_test.cpp.

Here is the call graph for this function:

◆ run_set_current_cmd_while_stopped_test()

void MissionTest::run_set_current_cmd_while_stopped_test ( )
private

Definition at line 892 of file AP_Mission_test.cpp.

Here is the call graph for this function:

◆ setup()

void MissionTest::setup ( void  )

Definition at line 1191 of file AP_Mission_test.cpp.

Referenced by loop(), and setup().

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

◆ start_cmd()

bool MissionTest::start_cmd ( const AP_Mission::Mission_Command cmd)
private

Definition at line 57 of file AP_Mission_test.cpp.

Here is the call graph for this function:

◆ verify_cmd()

bool MissionTest::verify_cmd ( const AP_Mission::Mission_Command cmd)
private

Definition at line 73 of file AP_Mission_test.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ ahrs

AP_AHRS_DCM MissionTest::ahrs {}
private

Definition at line 21 of file AP_Mission_test.cpp.

◆ baro

AP_Baro MissionTest::baro
private

Definition at line 18 of file AP_Mission_test.cpp.

◆ compass

Compass MissionTest::compass
private

Definition at line 20 of file AP_Mission_test.cpp.

◆ gps

AP_GPS MissionTest::gps
private

Definition at line 19 of file AP_Mission_test.cpp.

◆ ins

AP_InertialSensor MissionTest::ins
private

Definition at line 17 of file AP_Mission_test.cpp.

◆ mission

AP_Mission MissionTest::mission
private

◆ num_do_cmd_runs

uint8_t MissionTest::num_do_cmd_runs = 0
private

Definition at line 27 of file AP_Mission_test.cpp.

Referenced by start_cmd(), and verify_cmd().

◆ num_nav_cmd_runs

uint8_t MissionTest::num_nav_cmd_runs = 0
private

Definition at line 26 of file AP_Mission_test.cpp.

Referenced by start_cmd(), and verify_cmd().

◆ verify_do_cmd_iterations_to_complete

uint8_t MissionTest::verify_do_cmd_iterations_to_complete = 1
private

Definition at line 25 of file AP_Mission_test.cpp.

Referenced by verify_cmd().

◆ verify_nav_cmd_iterations_to_complete

uint8_t MissionTest::verify_nav_cmd_iterations_to_complete = 3
private

Definition at line 24 of file AP_Mission_test.cpp.

Referenced by verify_cmd().


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