mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-02 22:18:28 -04:00
AP_DDS: Correct compilation of tests without external odom
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
This commit is contained in:
parent
c0d14ec397
commit
aecb3268c7
@ -1,9 +1,13 @@
|
||||
#include <AP_gtest.h>
|
||||
|
||||
#include <AP_DDS/AP_DDS_config.h>
|
||||
|
||||
#include <AP_DDS/AP_DDS_External_Odom.h>
|
||||
#include "geometry_msgs/msg/TransformStamped.h"
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
||||
#if AP_DDS_VISUALODOM_ENABLED
|
||||
|
||||
const AP_HAL::HAL &hal = AP_HAL::get_HAL();
|
||||
|
||||
TEST(AP_DDS_EXTERNAL_ODOM, test_is_odometry_success)
|
||||
@ -35,4 +39,6 @@ TEST(AP_DDS_EXTERNAL_ODOM, test_is_odometry_success)
|
||||
ASSERT_FALSE(AP_DDS_External_Odom::is_odometry_frame(msg));
|
||||
}
|
||||
|
||||
#endif // AP_DDS_VISUALODOM_ENABLED
|
||||
|
||||
AP_GTEST_MAIN()
|
||||
|
Loading…
Reference in New Issue
Block a user