From 7d3686fe981abe8cce0afac086fb2b0d2b97f4a8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 6 Jun 2023 08:29:22 +1000 Subject: [PATCH] SITL: use JSON parser for battery and motor model examples --- libraries/SITL/examples/EvaluateBatteryModel/wscript | 3 +-- libraries/SITL/examples/EvaluateMotorModel/wscript | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/libraries/SITL/examples/EvaluateBatteryModel/wscript b/libraries/SITL/examples/EvaluateBatteryModel/wscript index 051d4b20402bac..2b0d8f334be6c1 100644 --- a/libraries/SITL/examples/EvaluateBatteryModel/wscript +++ b/libraries/SITL/examples/EvaluateBatteryModel/wscript @@ -9,9 +9,8 @@ def build(bld): source = bld.path.ant_glob('*.cpp') source.append('../../../../libraries/SITL/SIM_Battery.cpp') source.append('../../../../libraries/SITL/SIM_Frame.cpp') - source.append('../../../../libraries/SITL/picojson.cpp') - bld.env.DEFINES.append("USE_PICOJSON=1") + bld.env.DEFINES.append("AP_JSONPARSER_ENABLED") bld.ap_program( use='ap', diff --git a/libraries/SITL/examples/EvaluateMotorModel/wscript b/libraries/SITL/examples/EvaluateMotorModel/wscript index 0caacfec4de8fc..cf3926cae2961a 100644 --- a/libraries/SITL/examples/EvaluateMotorModel/wscript +++ b/libraries/SITL/examples/EvaluateMotorModel/wscript @@ -9,9 +9,8 @@ def build(bld): source = bld.path.ant_glob('*.cpp') source.append('../../../../libraries/SITL/SIM_Motor.cpp') source.append('../../../../libraries/SITL/SIM_Frame.cpp') - source.append('../../../../libraries/SITL/picojson.cpp') - bld.env.DEFINES.append("USE_PICOJSON=1") + bld.env.DEFINES.append("AP_JSONPARSER_ENABLED") bld.ap_program( use='ap',