Skip to content

Commit

Permalink
Add CubeOrange-Aerobridge build in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rhythmize committed Jun 15, 2024
1 parent 1de1e03 commit ed32230
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test_chibios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ jobs:
revo-mini,
MatekF405-Wing,
CubeOrange-ODID,
CubeOrange-Aerobridge,
CubeRedPrimary-bootloader,
configure-all,
build-options-defaults-test,
Expand Down
Binary file added Tools/bootloaders/CubeOrange-Aerobridge_bl.bin
Binary file not shown.
13 changes: 13 additions & 0 deletions Tools/scripts/build_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,19 @@ for t in $CI_BUILD_TARGET; do
continue
fi

if [ "$t" == "CubeOrange-Aerobridge" ]; then
echo "Building CubeOrange-Aerobridge (Trusted Flight)"
# generate root cert and use during build
Tools/scripts/AP_AerobridgeTrustedFlight/generate_root_cert.py ${BUILDROOT}

# root cert path and token issuer defined in Tools/scripts/AP_AerobridgeTrustedFlight/utils/constants.py
$waf configure --board CubeOrange-Aerobridge --trusted-flight-issuer=leaf.cname --trusted-flight-root-certificate=${BUILDROOT}/root_ca/certificate.crt
$waf clean
$waf copter
$waf plane
continue
fi

if [ "$t" == "SOHW" ]; then
echo "Building CubeOrange-SOHW"
Tools/scripts/sitl-on-hardware/sitl-on-hw.py --board CubeOrange --vehicle copter --simclass MultiCopter
Expand Down
24 changes: 24 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-Aerobridge/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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

EK2_PRIMARY 1
EK3_PRIMARY 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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

# enable Aerobridge Trusted Flight
# define AP_AEROBRIDGE_TRUSTED_FLIGHT_ENABLED 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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 Aerobridge Trusted Flight
# define AP_AEROBRIDGE_TRUSTED_FLIGHT_ENABLED 1

0 comments on commit ed32230

Please sign in to comment.