Skip to content

Commit

Permalink
hwdef: Modify hwdef for AEROFOX-H7
Browse files Browse the repository at this point in the history
  • Loading branch information
laoshen14789 authored and AEROFOXtech committed Nov 16, 2024
1 parent b91c97e commit f963023
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/AEROFOX-H7/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ It is enabled by default and has the following parameters set by default:s
- BATT_VOLT_PIN 19
- BATT_CURR_PIN 9
- BATT_VOLT_MULT 21
- BATT_AMP_PERVL 60
- BATT_AMP_PERVL 40

### The power B is external PMU input
An additional power monitor input is provided and can be enabled by setting:
Expand Down
17 changes: 11 additions & 6 deletions libraries/AP_HAL_ChibiOS/hwdef/AEROFOX-H7/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,14 @@ DMA_NOSHARE SPI2* UART2* UART4* UART5*

ENABLE_DFU_BOOT 1

define HAL_BATT_MONITOR 4
define HAL_BATT_VOLT_PIN 19
define HAL_BATT_CURR_PIN 9
define HAL_BATT_VOLT_SCALE 21
define HAL_BATT_CURR_SCALE 90.9
define HAL_CAN_P1_DRIVER 1
define HAL_BATT_MONITOR 4
define HAL_BATT_VOLT_PIN 19
define HAL_BATT_CURR_PIN 9
define HAL_BATT_VOLT_SCALE 21
define HAL_BATT_CURR_SCALE 40

define HAL_BATT2_MONITOR 4
define HAL_BATT2_VOLT_PIN 10
define HAL_BATT2_CURR_PIN 11
define HAL_BATT2_VOLT_SCALE 34
define HAL_BATT2_CURR_SCALE 40

0 comments on commit f963023

Please sign in to comment.