From 1d96dfe7c1613f706b6f110375958e519717efe0 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 25 Apr 2022 08:43:35 +1000 Subject: [PATCH] SITL: exclude method declarations based on USE_PICOJSON Fixes SimOnHardware build --- libraries/SITL/SIM_Frame.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/SITL/SIM_Frame.h b/libraries/SITL/SIM_Frame.h index e7202e60f2..7bb4f94f7c 100644 --- a/libraries/SITL/SIM_Frame.h +++ b/libraries/SITL/SIM_Frame.h @@ -153,10 +153,11 @@ private: // get air density in kg/m^3 float get_air_density(float alt_amsl) const; +#if USE_PICOJSON // load frame parameters from a json model file void load_frame_params(const char *model_json); void parse_float(picojson::value val, const char* label, float ¶m); void parse_vector3(picojson::value val, const char* label, Vector3f ¶m); - +#endif }; }