From 3010d18915f1050017aba6507671797d0d544a3d Mon Sep 17 00:00:00 2001 From: Bob Long Date: Wed, 9 Oct 2024 14:07:11 +1100 Subject: [PATCH] hwdef: CubeOrange-Ottano: add to BATT6/BATT7 Adds pin assignments and scaling to BATT6 and BATT7. --- .../hwdef/CubeOrange-Ottano/defaults.parm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-Ottano/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-Ottano/defaults.parm index c4de5a4c3e..2847c34699 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-Ottano/defaults.parm +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-Ottano/defaults.parm @@ -35,9 +35,19 @@ BATT5_LOW_VOLT,43 BATT5_MONITOR,9 # ESC BATT5_OPTIONS,64 # 6:Send resistance compensated voltage to GCS # Battery 6: PDB Volt/Current Sensor 1 -BATT6_MONITOR,28 +BATT6_AMP_OFFSET,0.004108 +BATT6_AMP_PERVLT,29.98257 +BATT6_CURR_PIN,51 # AD7091R VIN1 (BAT_ISen_1) +BATT6_MONITOR,28 # AD7091R +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 -BATT7_MONITOR,28 +BATT7_AMP_OFFSET,0.004108 +BATT7_AMP_PERVLT,29.98257 +BATT7_CURR_PIN,52 # AD7091R VIN2 (BAT_ISen_2) +BATT7_MONITOR,28 # AD7091R +BATT7_VOLT_MULT,16.667 +BATT7_VOLT_PIN,50 # AD7091R VIN0 (Vsen_Batt_1), pin shared with BATT6 BRD_SAFETY_MASK,2016 CAN_D1_UC_ESC_BM,9 CAN_D2_UC_ESC_BM,6