This commit is contained in:
rusefillc 2022-01-16 16:15:12 -05:00
parent 38e91eecb4
commit 9f9d4b777a
4 changed files with 8 additions and 5 deletions

View File

@ -62,8 +62,7 @@ static void setupVbatt() {
// 33k / 6.8k // 33k / 6.8k
engineConfiguration->vbattDividerCoeff = (33 + 6.8) / 6.8; // 5.835 engineConfiguration->vbattDividerCoeff = (33 + 6.8) / 6.8; // 5.835
// pin input +12 from Main Relay engineConfiguration->vbattAdcChannel = H144_IN_VBATT;
engineConfiguration->vbattAdcChannel = EFI_ADC_5; // 4T
engineConfiguration->adcVcc = 3.29f; engineConfiguration->adcVcc = 3.29f;
} }

View File

@ -7,6 +7,8 @@ pins:
color: black color: black
- pin: A2 - pin: A2
id: EFI_ADC_5
class: analog_inputs
function: +12V function: +12V
type: 12V type: 12V
color: red color: red

View File

@ -56,7 +56,7 @@ static void setupVbatt() {
engineConfiguration->vbattDividerCoeff = (33 + 6.8) / 6.8; // 5.835 engineConfiguration->vbattDividerCoeff = (33 + 6.8) / 6.8; // 5.835
// pin input +12 from Main Relay // pin input +12 from Main Relay
engineConfiguration->vbattAdcChannel = EFI_ADC_5; // 4T engineConfiguration->vbattAdcChannel = H144_IN_VBATT; // 4T
engineConfiguration->adcVcc = 3.29f; engineConfiguration->adcVcc = 3.29f;
} }

View File

@ -70,10 +70,12 @@ void detectHellenBoardType();
// IN_IAT AIN14 PC3 // IN_IAT AIN14 PC3
#define H144_IN_IAT EFI_ADC_13 #define H144_IN_IAT EFI_ADC_13
// IN_TPS AIN17 PA4
#define H144_IN_TPS EFI_ADC_4
// IN_PPS AIN18 PA3 // IN_PPS AIN18 PA3
#define H144_IN_PPS EFI_ADC_3 #define H144_IN_PPS EFI_ADC_3
// IN_TPS AIN17 PA4
#define H144_IN_TPS EFI_ADC_4
// VIGN PA5
#define H144_IN_VBATT EFI_ADC_5
// IN_MAP1 AIN9 PC0 // IN_MAP1 AIN9 PC0
#define H144_IN_MAP1 EFI_ADC_10 #define H144_IN_MAP1 EFI_ADC_10