PX4 Firmware
PX4 Autopilot Software http://px4.io
ObstacleAvoidanceTest.cpp File Reference
#include <gtest/gtest.h>
#include <ObstacleAvoidance.hpp>
#include <uORB/Subscription.hpp>
Include dependency graph for ObstacleAvoidanceTest.cpp:

Go to the source code of this file.

Classes

class  ObstacleAvoidanceTest
 
class  TestObstacleAvoidance
 

Functions

 TEST_F (ObstacleAvoidanceTest, instantiation)
 
 TEST_F (ObstacleAvoidanceTest, oa_enabled_healthy)
 
 TEST_F (ObstacleAvoidanceTest, oa_enabled_not_healthy)
 
 TEST_F (ObstacleAvoidanceTest, oa_desired)
 

Function Documentation

◆ TEST_F() [1/4]

TEST_F ( ObstacleAvoidanceTest  ,
instantiation   
)

Definition at line 66 of file ObstacleAvoidanceTest.cpp.

◆ TEST_F() [2/4]

◆ TEST_F() [3/4]

TEST_F ( ObstacleAvoidanceTest  ,
oa_enabled_not_healthy   
)

Definition at line 104 of file ObstacleAvoidanceTest.cpp.

References empty_trajectory_waypoint, f(), ObstacleAvoidance::injectAvoidanceSetpoints(), vehicle_status_s::nav_state, ORB_ID, and TestObstacleAvoidance::test_setPosition().

Here is the call graph for this function:

◆ TEST_F() [4/4]

TEST_F ( ObstacleAvoidanceTest  ,
oa_desired   
)

Definition at line 134 of file ObstacleAvoidanceTest.cpp.

References f(), ORB_ID, ObstacleAvoidance::updateAvoidanceDesiredSetpoints(), and ObstacleAvoidance::updateAvoidanceDesiredWaypoints().

Here is the call graph for this function: