Skip to content

Commit

Permalink
SITL: use AP_BUILD_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Oct 19, 2023
1 parent d4d21e2 commit 025c435
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libraries/SITL/SIM_AIS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

#include <SITL/SITL.h>

#define FORCE_VERSION_H_INCLUDE
#include "ap_version.h"

extern const AP_HAL::HAL& hal;

using namespace SITL;
Expand All @@ -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");

Expand Down

0 comments on commit 025c435

Please sign in to comment.