Classes | Macros | Functions
command_manager_test.cpp File Reference
#include "common.h"
#include "rosflight.h"
#include "test_board.h"
#include "mavlink.h"
#include "cmath"
Include dependency graph for command_manager_test.cpp:

Go to the source code of this file.

Classes

class  CommandManagerTest
 

Macros

#define CHN_HIGH   1900
 
#define CHN_LOW   1100
 
#define OFFBOARD_F   0.9
 
#define OFFBOARD_X   -1.0
 
#define OFFBOARD_Y   0.5
 
#define OFFBOARD_Z   -0.7
 
#define RC_X   ((RC_X_PWM - 1500)/500.0 * rf.params_.get_param_float(PARAM_RC_MAX_ROLL))
 
#define RC_X_PWM   1800
 

Functions

 TEST_F (CommandManagerTest, Default)
 
 TEST_F (CommandManagerTest, RCCommands)
 
 TEST_F (CommandManagerTest, ArmWithSticksByDefault)
 
 TEST_F (CommandManagerTest, DontArmWithSticksWhenUsingSwitch)
 
 TEST_F (CommandManagerTest, DisarmWithSticksByDefault)
 
 TEST_F (CommandManagerTest, ArmWithSwitch)
 
 TEST_F (CommandManagerTest, DisarmWithStick)
 
 TEST_F (CommandManagerTest, DontDisarmWithSticksWhenUsingSwitch)
 
 TEST_F (CommandManagerTest, ArmStickReversed)
 
 TEST_F (CommandManagerTest, DisarmStickReversed)
 
 TEST_F (CommandManagerTest, DefaultRCOutputd)
 
 TEST_F (CommandManagerTest, RCOutput)
 
 TEST_F (CommandManagerTest, LoseRCDisarmed)
 
 TEST_F (CommandManagerTest, RegainRCDisarmed)
 
 TEST_F (CommandManagerTest, LoseRCArmed)
 
 TEST_F (CommandManagerTest, RegainRCArmed)
 
 TEST_F (CommandManagerTest, OffboardCommandMuxNoMinThrottle)
 
 TEST_F (CommandManagerTest, OffboardCommandMuxMinThrottle)
 
 TEST_F (CommandManagerTest, OffboardCommandMuxRollDeviation)
 
 TEST_F (CommandManagerTest, OffboardCommandMuxPitchDeviation)
 
 TEST_F (CommandManagerTest, OffboardCommandMuxYawrateDeviation)
 
 TEST_F (CommandManagerTest, OffboardCommandMuxLag)
 
 TEST_F (CommandManagerTest, StaleOffboardCommand)
 
 TEST_F (CommandManagerTest, PartialMux)
 
 TEST_F (CommandManagerTest, MixedTypes)
 

Macro Definition Documentation

#define CHN_HIGH   1900

Definition at line 8 of file command_manager_test.cpp.

#define CHN_LOW   1100

Definition at line 7 of file command_manager_test.cpp.

#define OFFBOARD_F   0.9

Definition at line 13 of file command_manager_test.cpp.

#define OFFBOARD_X   -1.0

Definition at line 10 of file command_manager_test.cpp.

#define OFFBOARD_Y   0.5

Definition at line 11 of file command_manager_test.cpp.

#define OFFBOARD_Z   -0.7

Definition at line 12 of file command_manager_test.cpp.

#define RC_X   ((RC_X_PWM - 1500)/500.0 * rf.params_.get_param_float(PARAM_RC_MAX_ROLL))

Definition at line 16 of file command_manager_test.cpp.

#define RC_X_PWM   1800

Definition at line 15 of file command_manager_test.cpp.

Function Documentation

TEST_F ( CommandManagerTest  ,
Default   
)

Definition at line 81 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
RCCommands   
)

Definition at line 97 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
ArmWithSticksByDefault   
)

Definition at line 117 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
DontArmWithSticksWhenUsingSwitch   
)

Definition at line 129 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
DisarmWithSticksByDefault   
)

Definition at line 139 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
ArmWithSwitch   
)

Definition at line 150 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
DisarmWithStick   
)

Definition at line 160 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
DontDisarmWithSticksWhenUsingSwitch   
)

Definition at line 170 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
ArmStickReversed   
)

Definition at line 186 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
DisarmStickReversed   
)

Definition at line 197 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
DefaultRCOutputd   
)

Definition at line 211 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
RCOutput   
)

Definition at line 229 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
LoseRCDisarmed   
)

Definition at line 251 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
RegainRCDisarmed   
)

Definition at line 273 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
LoseRCArmed   
)

Definition at line 284 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
RegainRCArmed   
)

Definition at line 311 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
OffboardCommandMuxNoMinThrottle   
)

Definition at line 327 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
OffboardCommandMuxMinThrottle   
)

Definition at line 344 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
OffboardCommandMuxRollDeviation   
)

Definition at line 361 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
OffboardCommandMuxPitchDeviation   
)

Definition at line 377 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
OffboardCommandMuxYawrateDeviation   
)

Definition at line 393 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
OffboardCommandMuxLag   
)

Definition at line 409 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
StaleOffboardCommand   
)

Definition at line 440 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
PartialMux   
)

Definition at line 453 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
MixedTypes   
)

Definition at line 467 of file command_manager_test.cpp.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Fri Apr 3 2020 03:19:26