From 0cab92a806819800a2b616020b885be9a1e1c5e7 Mon Sep 17 00:00:00 2001 From: cuav-chen2 Date: Wed, 28 Aug 2024 15:49:10 +0800 Subject: [PATCH] hwdef: backport CUAV-7-Nano hwdef defines --- .../AP_HAL_ChibiOS/hwdef/CUAV-7-Nano/hwdef.dat | 13 +++++++------ 1 file changed, 7 insertions(+), 6 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 eea49e50f0..dcaaeb0839 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CUAV-7-Nano/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-7-Nano/hwdef.dat @@ -104,8 +104,8 @@ PC3 ADC1_3V3 ADC1 SCALE(1) ANALOG(13) 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 @@ -239,11 +239,12 @@ PE4 LED_GREEN OUTPUT GPIO(91) LOW PE5 LED_BLUE OUTPUT GPIO(92) LOW # setup for "pixracer" RGB LEDs -define AP_NOTIFY_GPIO_LED_RGB_RED_PIN 90 -define AP_NOTIFY_GPIO_LED_RGB_GREEN_PIN 91 -define AP_NOTIFY_GPIO_LED_RGB_BLUE_PIN 92 +define HAL_GPIO_A_LED_PIN 90 +define HAL_GPIO_B_LED_PIN 91 +define HAL_GPIO_C_LED_PIN 92 +define HAL_GPIO_LED_ON 0 -define AP_NOTIFY_GPIO_LED_RGB_ENABLED 1 +define HAL_HAVE_PIXRACER_LED # ID pins PG0 HW_VER_REV_DRIVE OUTPUT LOW