Classes | Macros | Functions
command_manager_test.cpp File Reference
#include "common.h"
#include "mavlink.h"
#include "test_board.h"
#include "rosflight.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 10 of file command_manager_test.cpp.

#define CHN_LOW   1100

Definition at line 9 of file command_manager_test.cpp.

#define OFFBOARD_F   0.9

Definition at line 15 of file command_manager_test.cpp.

#define OFFBOARD_X   -1.0

Definition at line 12 of file command_manager_test.cpp.

#define OFFBOARD_Y   0.5

Definition at line 13 of file command_manager_test.cpp.

#define OFFBOARD_Z   -0.7

Definition at line 14 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 18 of file command_manager_test.cpp.

#define RC_X_PWM   1800

Definition at line 17 of file command_manager_test.cpp.

Function Documentation

TEST_F ( CommandManagerTest  ,
Default   
)

Definition at line 77 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
RCCommands   
)

Definition at line 93 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
ArmWithSticksByDefault   
)

Definition at line 113 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
DontArmWithSticksWhenUsingSwitch   
)

Definition at line 126 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
DisarmWithSticksByDefault   
)

Definition at line 136 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
ArmWithSwitch   
)

Definition at line 147 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
DisarmWithStick   
)

Definition at line 157 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
DontDisarmWithSticksWhenUsingSwitch   
)

Definition at line 167 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
ArmStickReversed   
)

Definition at line 183 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
DisarmStickReversed   
)

Definition at line 194 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
DefaultRCOutputd   
)

Definition at line 208 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
RCOutput   
)

Definition at line 225 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
LoseRCDisarmed   
)

Definition at line 247 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
RegainRCDisarmed   
)

Definition at line 269 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
LoseRCArmed   
)

Definition at line 280 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
RegainRCArmed   
)

Definition at line 307 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
OffboardCommandMuxNoMinThrottle   
)

Definition at line 323 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
OffboardCommandMuxMinThrottle   
)

Definition at line 340 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
OffboardCommandMuxRollDeviation   
)

Definition at line 357 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
OffboardCommandMuxPitchDeviation   
)

Definition at line 373 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
OffboardCommandMuxYawrateDeviation   
)

Definition at line 389 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
OffboardCommandMuxLag   
)

Definition at line 405 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
StaleOffboardCommand   
)

Definition at line 436 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
PartialMux   
)

Definition at line 449 of file command_manager_test.cpp.

TEST_F ( CommandManagerTest  ,
MixedTypes   
)

Definition at line 463 of file command_manager_test.cpp.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Sep 3 2020 03:22:17