diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-ODID/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-ODID/defaults.parm new file mode 100644 index 0000000000..b5346ded41 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-ODID/defaults.parm @@ -0,0 +1,22 @@ +# 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 + +# enforce OpenDroneID on DroneCAN. Note that we need to lock down key parameters +# to ensure the integrity of the RemoteID system +DID_ENABLE 1 @READONLY +DID_OPTIONS 1 @READONLY +DID_MAVPORT -1 @READONLY +DID_CANDRIVER 1 @READONLY +AHRS_EKF_TYPE 3 @READONLY +GPS_TYPE 1 +GPS_TYPE2 0 + diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-ODID/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-ODID/hwdef-bl.dat new file mode 100644 index 0000000000..d2f4322d22 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-ODID/hwdef-bl.dat @@ -0,0 +1,5 @@ +include ../CubeOrange/hwdef-bl.dat + +# use a different board ID, so vehicles with OpenDroneID enabled are +# prevented from loading the firmware without OpenDroneID enabled +APJ_BOARD_ID 10140 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-ODID/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-ODID/hwdef.dat new file mode 100644 index 0000000000..edba88a70c --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-ODID/hwdef.dat @@ -0,0 +1,10 @@ +include ../CubeOrange/hwdef.dat + +# use a different board ID, so vehicles with this installed are prevented from loading +# the firmware without OpenDroneID enabled +APJ_BOARD_ID 10140 + +# enable and enforce OpenDroneID +define AP_OPENDRONEID_ENABLED 1 + + diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-ODID/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-ODID/defaults.parm new file mode 100644 index 0000000000..b0387763a0 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-ODID/defaults.parm @@ -0,0 +1,10 @@ +# enforce OpenDroneID on DroneCAN. Note that we need to lock down key parameters +# to ensure the integrity of the RemoteID system +DID_ENABLE 1 @READONLY +DID_OPTIONS 1 @READONLY +DID_MAVPORT -1 @READONLY +DID_CANDRIVER 1 @READONLY +AHRS_EKF_TYPE 3 @READONLY +GPS_TYPE 1 +GPS_TYPE2 0 + diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-ODID/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-ODID/hwdef-bl.dat new file mode 100644 index 0000000000..276f45a8c5 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-ODID/hwdef-bl.dat @@ -0,0 +1,6 @@ +include ../Pixhawk6X/hwdef-bl.dat + +# use a different board ID, so vehicles with OpenDroneID enabled are +# prevented from loading the firmware without OpenDroneID enabled +APJ_BOARD_ID 10053 + diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-ODID/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-ODID/hwdef.dat new file mode 100644 index 0000000000..99d89a5bd4 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-ODID/hwdef.dat @@ -0,0 +1,10 @@ +include ../Pixhawk6X/hwdef.dat + +# use a different board ID, so vehicles with OpenDroneID enabled are +# prevented from loading the firmware without OpenDroneID enabled +APJ_BOARD_ID 10053 + +# enable OpenDroneID +define AP_OPENDRONEID_ENABLED 1 + +