Skip to content

Commit

Permalink
Tools: explicitly set AP_PERIPH_XX_ENABLED defines to 0 for sitl_peri…
Browse files Browse the repository at this point in the history
…ph_gps and sitl_periph_battmon
  • Loading branch information
shiv-tyagi authored and peterbarker committed Feb 8, 2025
1 parent aee973f commit af1220f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Tools/ardupilotwaf/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,13 @@ def configure_env(self, cfg, env):
CAN_APP_NODE_NAME = '"org.ardupilot.ap_periph_gps"',
APJ_BOARD_ID = 101,

AP_PERIPH_BATTERY_ENABLED = 0,
AP_PERIPH_GPS_ENABLED = 1,
AP_PERIPH_IMU_ENABLED = 0,
AP_PERIPH_MAG_ENABLED = 0,
AP_PERIPH_BATTERY_BALANCE_ENABLED = 0,
AP_PERIPH_BARO_ENABLED = 0,
AP_PERIPH_RANGEFINDER_ENABLED = 0,
)

class sitl_periph_battmon(sitl_periph):
Expand All @@ -1000,6 +1006,11 @@ def configure_env(self, cfg, env):

AP_PERIPH_BATTERY_ENABLED = 1,
AP_PERIPH_BATTERY_BALANCE_ENABLED = 0,
AP_PERIPH_BARO_ENABLED = 0,
AP_PERIPH_RANGEFINDER_ENABLED = 0,
AP_PERIPH_GPS_ENABLED = 0,
AP_PERIPH_IMU_ENABLED = 0,
AP_PERIPH_MAG_ENABLED = 0,
)

class esp32(Board):
Expand Down

0 comments on commit af1220f

Please sign in to comment.