Browse Source

hwdef: added two OpenDroneID enabled builds

release-4.2.3
Andrew Tridgell 3 years ago committed by Randy Mackay
parent
commit
fb5d245c07
  1. 22
      libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-ODID/defaults.parm
  2. 5
      libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-ODID/hwdef-bl.dat
  3. 10
      libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-ODID/hwdef.dat
  4. 10
      libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-ODID/defaults.parm
  5. 6
      libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-ODID/hwdef-bl.dat
  6. 10
      libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-ODID/hwdef.dat

22
libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-ODID/defaults.parm

@ -0,0 +1,22 @@ @@ -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

5
libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-ODID/hwdef-bl.dat

@ -0,0 +1,5 @@ @@ -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

10
libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-ODID/hwdef.dat

@ -0,0 +1,10 @@ @@ -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

10
libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-ODID/defaults.parm

@ -0,0 +1,10 @@ @@ -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

6
libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-ODID/hwdef-bl.dat

@ -0,0 +1,6 @@ @@ -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

10
libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-ODID/hwdef.dat

@ -0,0 +1,10 @@ @@ -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
Loading…
Cancel
Save