Skip to content

Commit

Permalink
AP_HAL_ChibiOS: remove iomcu dshot from Pixhawk1-1M and add to Pixhaw…
Browse files Browse the repository at this point in the history
…k1-bdshot

add support for removing ROMFS from hwdef
  • Loading branch information
tridge committed Mar 13, 2024
1 parent f319546 commit 46ebf98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Pixhawk1-bdshot/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ define HAL_PROBE_EXTERNAL_I2C_COMPASSES
# produce this error if we are on a 1M board
undef BOARD_CHECK_F427_USE_1M
define BOARD_CHECK_F427_USE_1M "ERROR: 1M flash use Pixhawk1-1M"

# enable support for dshot on iomcu
ROMFS io_firmware_dshot.bin Tools/IO_Firmware/iofirmware_dshot_lowpolh.bin
define HAL_WITH_IO_MCU_DSHOT 1
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -3040,6 +3040,8 @@ def process_line(self, line):
self.baro_list = []
if u == 'AIRSPEED':
self.airspeed_list = []
if u == 'ROMFS':
self.romfs = {}
elif a[0] == 'env':
self.progress("Adding environment %s" % ' '.join(a[1:]))
if len(a[1:]) < 2:
Expand Down

0 comments on commit 46ebf98

Please sign in to comment.