From 025c4355cd563dc449a87c4455dfc03021a6dada Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 19 Oct 2023 12:39:22 +1100 Subject: [PATCH] SITL: use AP_BUILD_ROOT --- libraries/SITL/SIM_AIS.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/SITL/SIM_AIS.cpp b/libraries/SITL/SIM_AIS.cpp index a6015416a9b24..4372cabd5dd4f 100644 --- a/libraries/SITL/SIM_AIS.cpp +++ b/libraries/SITL/SIM_AIS.cpp @@ -26,6 +26,9 @@ #include +#define FORCE_VERSION_H_INCLUDE +#include "ap_version.h" + extern const AP_HAL::HAL& hal; using namespace SITL; @@ -34,7 +37,7 @@ using namespace SITL; AIS::AIS() : SerialDevice::SerialDevice() { char* file_path; - IGNORE_RETURN(asprintf(&file_path, SKETCHBOOK "/libraries/SITL/SIM_AIS_data.txt")); + IGNORE_RETURN(asprintf(&file_path, AP_BUILD_ROOT "/libraries/SITL/SIM_AIS_data.txt")); file = fopen(file_path,"r");