diff --git a/libraries/SITL/examples/EvaluateBatteryModel/wscript b/libraries/SITL/examples/EvaluateBatteryModel/wscript index 051d4b20402ba..2b0d8f334be6c 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 0caacfec4de8f..cf3926cae2961 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',