diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus/defaults.parm new file mode 100644 index 0000000000..05d30c8e6f --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus/defaults.parm @@ -0,0 +1,11 @@ +# setup correct defaults for battery monitoring for cube power brick +BATT2_CURR_PIN 4 +BATT2_VOLT_PIN 13 +BATT_AMP_PERVLT 39.877 +BATT_VOLT_MULT 12.02 +BATT2_AMP_PERVLT 39.877 +BATT2_VOLT_MULT 12.02 +# setup ADSB +ADSB_TYPE 1 +SERIAL5_BAUD 57 +SERIAL5_PROTOCOL 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus/hwdef-bl.dat new file mode 100644 index 0000000000..86d0a0f042 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus/hwdef-bl.dat @@ -0,0 +1,16 @@ +# hw definition file for processing by chibios_hwdef.py +# for H743 bootloader + +include ../CubeOrange/hwdef-bl.dat + +undef USB_STRING_PRODUCT +undef USB_STRING_MANUFACTURER +undef APJ_BOARD_ID +undef USB_PRODUCT + +# USB setup +USB_PRODUCT 0x1058 +USB_STRING_MANUFACTURER "CubePilot" +USB_STRING_PRODUCT "CubeOrange+-BL" + +APJ_BOARD_ID 1063 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus/hwdef.dat new file mode 100644 index 0000000000..c0fff5ff8a --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus/hwdef.dat @@ -0,0 +1,29 @@ +# hw definition file for processing by chibios_hwdef.py + +include ../CubeOrange/hwdef.dat + +undef USB_STRING_PRODUCT +undef USB_STRING_MANUFACTURER +undef APJ_BOARD_ID +undef USB_PRODUCT + +# USB setup +USB_PRODUCT 0x1058 +USB_STRING_MANUFACTURER "CubePilot" +USB_STRING_PRODUCT "CubeOrange+" + +APJ_BOARD_ID 1063 + +undef CHECK_ICM42688_EXT +undef CHECK_IMU0_PRESENT +undef IMU + +SPIDEV icm42688_ext SPI4 DEVID4 ACCEL_EXT_CS MODE3 2*MHZ 8*MHZ + +IMU Invensensev3 SPI:icm42688_ext ROTATION_ROLL_180_YAW_270 +IMU Invensensev2 SPI:icm20948_ext ROTATION_PITCH_180 +IMU Invensensev2 SPI:icm20948 ROTATION_YAW_270 + +CHECK_ICM42688_EXT spi_check_register("icm42688_ext", INV3REG_WHOAMI, INV3_WHOAMI_ICM42688) + +CHECK_IMU0_PRESENT $CHECK_ICM42688_EXT