Skip to content

Commit

Permalink
hwdef: CubeOrange-Ottano: default param removed comments
Browse files Browse the repository at this point in the history
Fix build failure for CubeOrange-Ottano by stripping comments before compilation to prevent parameter space issues.
  • Loading branch information
loki077 authored and robertlong13 committed Oct 10, 2024
1 parent 93d6c97 commit 69a7d60
Showing 1 changed file with 19 additions and 26 deletions.
45 changes: 19 additions & 26 deletions libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-Ottano/defaults.parm
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,36 @@
# Ottano-specific parameters
ARSPD_FBW_MAX,36
ARSPD_FBW_MIN,23
# Battery 1: VTOL Battery (Combined)
BATT_CAPACITY,30000 # matches BATT4_CAPACITY
BATT_MONITOR,10 # Sum
BATT_OPTIONS,64 # 6:Send resistance compensated voltage to GCS
BATT_SUM_MASK,8 # Sum of BATT4 (not BATT5, which is unused in Cx5)
# Battery 2: Avionics Battery
BATT_CAPACITY,30000
BATT_MONITOR,10
BATT_OPTIONS,64
BATT_SUM_MASK,8
BATT2_CAPACITY,5100
BATT2_CRT_VOLT,22
BATT2_FS_CRT_ACT,1 # RTL
BATT2_FS_CRT_ACT,1
BATT2_LOW_VOLT,23
BATT2_MONITOR,8 # DroneCAN
BATT2_SERIAL_NUM,2 # DroneCAN Battery index to listen to
# Battery 3: Fuel Level Sensor
BATT3_MONITOR,8 # DroneCAN
BATT3_SERIAL_NUM,1 # DroneCAN Battery index to listen to
# Battery 4: VTOL Battery (Left/Right, no ability to separate ESC monitors in Cx5)
BATT4_CAPACITY,15000 # matches BATT_CAPACITY
BATT2_MONITOR,8
BATT2_SERIAL_NUM,2
BATT3_MONITOR,8
BATT3_SERIAL_NUM,1
BATT4_CAPACITY,15000
BATT4_CRT_VOLT,42
BATT4_FS_VOLTSRC,1 # Failsafe on sag-compensated voltage
BATT4_FS_VOLTSRC,1
BATT4_LOW_VOLT,43
BATT4_MONITOR,9 # ESC
BATT4_OPTIONS,64 # 6:Send resistance compensated voltage to GCS
# Battery 5: Reserved for Cx7
# Battery 6: PDB Volt/Current Sensor 1
BATT4_MONITOR,9
BATT4_OPTIONS,64
BATT6_AMP_OFFSET,0.004108
BATT6_AMP_PERVLT,29.98257
BATT6_CURR_PIN,51 # AD7091R VIN1 (BAT_ISen_1)
BATT6_MONITOR,28 # AD7091R
BATT6_CURR_PIN,51
BATT6_MONITOR,28
BATT6_VOLT_MULT,16.667
BATT6_VOLT_PIN,50 # AD7091R VIN0 (Vsen_Batt_1), pin shared with BATT7
# Battery 7: PDB Volt/Current Sensor 2
BATT6_VOLT_PIN,50
BATT7_AMP_OFFSET,0.004108
BATT7_AMP_PERVLT,29.98257
BATT7_CURR_PIN,52 # AD7091R VIN2 (BAT_ISen_2)
BATT7_MONITOR,28 # AD7091R
BATT7_CURR_PIN,52
BATT7_MONITOR,28
BATT7_VOLT_MULT,16.667
BATT7_VOLT_PIN,50 # AD7091R VIN0 (Vsen_Batt_1), pin shared with BATT6
BATT7_VOLT_PIN,50
BRD_SAFETY_MASK,2016
CAN_D1_UC_ESC_BM,9
CAN_D1_UC_SRV_BM,1824
Expand Down

0 comments on commit 69a7d60

Please sign in to comment.