Fix mre vbatt (#1218)

* Revert "vbatt MRE happiness"

This reverts commit ca1d44ae2c.

* update comments
This commit is contained in:
Matthew Kennedy 2020-03-25 13:23:04 -07:00 committed by GitHub
parent d3482327f3
commit 6f5a9760ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -65,12 +65,12 @@ static void setupVbatt() {
engineConfiguration->analogInputDividerCoefficient = 2.5f / 1.5f; engineConfiguration->analogInputDividerCoefficient = 2.5f / 1.5f;
*/ */
// 6.8k high side/10k low side = 1.6667 ratio divider // 6.8k high side/10k low side = 1.68 ratio divider
engineConfiguration->analogInputDividerCoefficient = 16.8f / 10.0f; engineConfiguration->analogInputDividerCoefficient = 16.8f / 10.0f;
// set vbatt_divider 8.16 // set vbatt_divider 8.23
// R139=39k high side/R141=10k low side multiplied by above analogInputDividerCoefficient = 8.166666f // R139=39k high side/R141=10k low side multiplied by above analogInputDividerCoefficient = 8.232f
engineConfiguration->vbattDividerCoeff = (49.0f / 10.0f); engineConfiguration->vbattDividerCoeff = (49.0f / 10.0f) * engineConfiguration->analogInputDividerCoefficient;
engineConfiguration->vbattAdcChannel = EFI_ADC_11; engineConfiguration->vbattAdcChannel = EFI_ADC_11;
engineConfiguration->adcVcc = 3.29f; engineConfiguration->adcVcc = 3.29f;