Raw ADC value of lipo added

This commit is contained in:
Ollo
2020-11-07 00:34:27 +01:00
parent 61171fb379
commit 3a1b8d6745
2 changed files with 8 additions and 3 deletions

View File

@@ -115,8 +115,11 @@ long getLastMoisture(int plantId)
void readSystemSensors()
{
lipoRawSensor.add(analogRead(SENSOR_LIPO));
solarRawSensor.add(analogRead(SENSOR_SOLAR));
for (int i=0; i < 5; i++) {
lipoRawSensor.add(analogRead(SENSOR_LIPO));
solarRawSensor.add(analogRead(SENSOR_SOLAR));
}
Serial << "Lipo " << lipoRawSensor.getAverage() << " -> " << getBatteryVoltage() << endl;
}
int determineNextPump();