From 18cb1f38992126f231bd4a850d4425bf85fcd119 Mon Sep 17 00:00:00 2001 From: cuav-chen2 Date: Mon, 26 Aug 2024 17:06:44 +0800 Subject: [PATCH] HAL_ChibiOS: change battery scale for CUAV-7-Nano flight controller --- libraries/AP_HAL_ChibiOS/hwdef/CUAV-7-Nano/hwdef.dat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAV-7-Nano/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-7-Nano/hwdef.dat index f6eabe6f2f..277ebd65f7 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CUAV-7-Nano/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-7-Nano/hwdef.dat @@ -105,8 +105,8 @@ PC3 ADC1_3V3 ADC1 SCALE(1) ANALOG(13) define HAL_BATT_MONITOR_DEFAULT 4 define HAL_BATT_VOLT_PIN 9 define HAL_BATT_CURR_PIN 8 -define HAL_BATT_VOLT_SCALE 10.1 -define HAL_BATT_CURR_SCALE 17.0 +define HAL_BATT_VOLT_SCALE 31.0 +define HAL_BATT_CURR_SCALE 24.0 # SPI1 - IIM42652 PA5 SPI1_SCK SPI1