From b2a4b76496ee43e572e4b3e9d87cc39182d2c058 Mon Sep 17 00:00:00 2001 From: night-ghost Date: Sat, 5 May 2018 12:46:32 +0500 Subject: [PATCH] HAL_F4Light: add battery monitor defaults --- .../AP_HAL_F4Light/boards/f4light_MatekF405_CTR/board.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/AP_HAL_F4Light/boards/f4light_MatekF405_CTR/board.h b/libraries/AP_HAL_F4Light/boards/f4light_MatekF405_CTR/board.h index 7c90e83450..46690ead7c 100644 --- a/libraries/AP_HAL_F4Light/boards/f4light_MatekF405_CTR/board.h +++ b/libraries/AP_HAL_F4Light/boards/f4light_MatekF405_CTR/board.h @@ -165,6 +165,11 @@ # define HAL_BATT_CURR_SCALE 17 +# define HAL_BATT_VOLT_PIN PC5 // ChibiOS compatible defines +# define HAL_BATT_CURR_PIN PC4 +# define HAL_BATT_VOLT_SCALE 10.1 +# define HAL_BATT_CURR_SCALE 17 + #define BOARD_USB_DMINUS 108