Skip to content

Commit

Permalink
SITL: use JSON parser for battery and motor model examples
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Jan 31, 2024
1 parent d5f438c commit 26500e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions libraries/SITL/examples/EvaluateBatteryModel/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 1 addition & 2 deletions libraries/SITL/examples/EvaluateMotorModel/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 26500e1

Please sign in to comment.