Skip to content

Commit

Permalink
AP_Periph: FSO_PowerStack: Add TSYS03 and fix voltages
Browse files Browse the repository at this point in the history
  • Loading branch information
lthall committed Feb 2, 2024
1 parent 8412bfa commit 3d0c028
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
13 changes: 9 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/FSOPowerStack/defaults.parm
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
BATT_MONITOR 4
BATT_VOLT_PIN 93
BATT_CURR_PIN 91
BATT_AMP_PERVLT 1
BATT_VOLT_MULT 1
BATT_AMP_PERVLT 150
BATT_VOLT_MULT 19

BATT2_MONITOR 4
BATT2_VOLT_PIN 94
BATT2_CURR_PIN 92
BATT2_AMP_PERVLT 1
BATT2_VOLT_MULT 1
BATT2_AMP_PERVLT 150
BATT2_VOLT_MULT 19

# Payload HV
BATT3_MONITOR 21
Expand Down Expand Up @@ -55,3 +55,8 @@ BATT8_MAX_AMPS 5
# LED setup
OUT1_FUNCTION 120

TEMP1_ADDR,64
TEMP1_BUS,0
TEMP1_SRC,3
TEMP1_SRC_ID,1
TEMP1_TYPE,4
10 changes: 5 additions & 5 deletions libraries/AP_HAL_ChibiOS/hwdef/FSOPowerStack/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ define HAL_USE_ADC TRUE
define STM32_ADC_USE_ADC1 TRUE

# analog in
PA0 ADC_MAIN_VOLTAGE ADC1 SCALE(1) ANALOG(90)
PC0 ADC_BAT_1_CURRENT ADC1 SCALE(1) ANALOG(91)
PC1 ADC_BAT_2_CURRENT ADC1 SCALE(1) ANALOG(92)
PC2 ADC_BAT_1_VOLTAGE ADC1 SCALE(1) ANALOG(93)
PC3 ADC_BAT_2_VOLTAGE ADC1 SCALE(1) ANALOG(94)
PA0 ADC_MAIN_VOLTAGE ADC1 SCALE(0.9091) ANALOG(90)
PC0 ADC_BAT_1_CURRENT ADC1 SCALE(0.9091) ANALOG(91)
PC1 ADC_BAT_2_CURRENT ADC1 SCALE(0.9091) ANALOG(92)
PC2 ADC_BAT_1_VOLTAGE ADC1 SCALE(0.9091) ANALOG(93)
PC3 ADC_BAT_2_VOLTAGE ADC1 SCALE(0.9091) ANALOG(94)
# VBat channel should be here somewhere too

# Fan Tachometer Inputs
Expand Down

0 comments on commit 3d0c028

Please sign in to comment.