From a036d14a1e76dbe9c523debb0331c3ad7c139c3d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 13 Sep 2022 19:26:19 +1000 Subject: [PATCH] hwdef: added CUAV_V6X default parameters --- .../hwdef/Pixhawk6X/param/CUAV_V6X_defaults.parm | 3 +++ libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 1 + 2 files changed, 4 insertions(+) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X/param/CUAV_V6X_defaults.parm diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X/param/CUAV_V6X_defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X/param/CUAV_V6X_defaults.parm new file mode 100644 index 0000000000..1d631c5328 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X/param/CUAV_V6X_defaults.parm @@ -0,0 +1,3 @@ +BATT_MONITOR=8 +CAN_P1_DRIVER=1 +CAN_P2_DRIVER=1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index 6c48918ae9..98c0d5383b 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -2941,6 +2941,7 @@ write_hwdef_header(os.path.join(outdir, "hwdef.h")) write_ldscript(os.path.join(outdir, "ldscript.ld")) romfs_add_dir(['scripts']) +romfs_add_dir(['param']) write_ROMFS(outdir)