sense actual Vm value

This commit is contained in:
Matthew Kennedy
2020-12-11 00:25:50 -08:00
parent b0d837f038
commit d89cda413b
3 changed files with 5 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ static void SamplingThread(void*)
nernstAc = f_abs(r2_opposite_phase - r_2);
nernstDc = (r2_opposite_phase + r_2) / 2;
pumpCurrentSenseVoltage = 0.8f * pumpCurrentSenseVoltage + 0.2f * (result.PumpCurrentVoltage - HALF_VCC);
pumpCurrentSenseVoltage = 0.8f * pumpCurrentSenseVoltage + 0.2f * (result.PumpCurrentVoltage - result.VirtualGroundVoltageInt);
// Shift history over by one
r_3 = r_2;