mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-05 21:14:00 +01:00
voltageCalibrationCorrection
This commit is contained in:
parent
26e2dec2b2
commit
ddb83d1368
|
|
@ -38,7 +38,7 @@ ________________________________________________________________________________
|
|||
#include "A7670_utils.h"
|
||||
#endif
|
||||
|
||||
String versionDate = "2024.07.08";
|
||||
String versionDate = "2024.07.10";
|
||||
Configuration Config;
|
||||
WiFiClient espClient;
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ float adcReadingTransformation = (3.3/4095);
|
|||
float voltageDividerCorrection = 0.288;
|
||||
float readingCorrection = 0.125;
|
||||
float multiplyCorrection = 0.035;
|
||||
float adcVoltageCorrection = 0.041;
|
||||
|
||||
float voltageDividerTransformation = 0.0;
|
||||
|
||||
|
|
@ -140,7 +139,6 @@ namespace BATTERY_Utils {
|
|||
float voltage = esp_adc_cal_raw_to_voltage(sampleSum / 100, &adc_chars);
|
||||
voltage *= 2; // for 100K/100K voltage divider
|
||||
voltage /= 1000;
|
||||
voltage -= adcVoltageCorrection;
|
||||
return voltage;
|
||||
} else {
|
||||
return (2 * (sampleSum/100) * adcReadingTransformation) + voltageDividerCorrection; // raw voltage without mapping
|
||||
|
|
|
|||
Loading…
Reference in a new issue