mirror of
https://github.com/mck1117/wideband.git
synced 2026-09-30 09:57:06 -04:00
sense actual Vm value
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user