From 9be030309aa6ff032388938ec4800334ffc83650 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 7 Nov 2022 12:24:49 +1100 Subject: [PATCH] AP_VisualOdom: include cleanups --- libraries/AP_VisualOdom/AP_VisualOdom.h | 5 ++++- libraries/AP_VisualOdom/AP_VisualOdom_IntelT265.cpp | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/AP_VisualOdom/AP_VisualOdom.h b/libraries/AP_VisualOdom/AP_VisualOdom.h index e13bb562f1..601a6a15a3 100644 --- a/libraries/AP_VisualOdom/AP_VisualOdom.h +++ b/libraries/AP_VisualOdom/AP_VisualOdom.h @@ -20,7 +20,10 @@ #include #include -#include +#include +#if HAL_GCS_ENABLED +#include +#endif #include class AP_VisualOdom_Backend; diff --git a/libraries/AP_VisualOdom/AP_VisualOdom_IntelT265.cpp b/libraries/AP_VisualOdom/AP_VisualOdom_IntelT265.cpp index 9ca080be03..e38662dfda 100644 --- a/libraries/AP_VisualOdom/AP_VisualOdom_IntelT265.cpp +++ b/libraries/AP_VisualOdom/AP_VisualOdom_IntelT265.cpp @@ -19,6 +19,7 @@ #include #include +#include #include #define VISUALODOM_RESET_IGNORE_DURATION_MS 1000 // sensor data is ignored for 1sec after a position reset