REPALphilread/ReP_AL-3D-Lawn-Mower

// Calculate Amp Value from Charging Pins

Closed this issue · 0 comments

// Calculate Amp Value from Charging Pins

2 times use of "VoltageAmp"

Change:

VoltageAmp = (RawValueAmp / 1024.0) * 5000; // Gets you mV
AmpsTX = ((VoltageAmp - ACSoffset) / mVperAmp);

Amps = (RawWheelAmp / 1024.0) * 5000; // Gets you mV
WheelAmpsTX = ((Amps - ACSoffset) / mVperAmp);