Fixing debug vars in case they ever want to be used again

Integer result needs to be cast to a float to obtain a float result from division.
This commit is contained in:
Foodbandlt 2019-04-22 03:31:52 -04:00
parent e16c35cd32
commit 0e318eab7c

View file

@ -489,14 +489,14 @@ void loop() {
diffCompH = (compInt - VComp) - Hyst;
//diffCompL = VComp - compLowInt;
//diffCompH = compHighInt - VComp;
//VCompRef = (VComp * 5) / 1024;
//VCompRef = (float)(VComp * 5) / 1024;
VAdj = analogRead(V_FOLLOW_PIN);
diffAdjL = (VAdj - senseInt) - Hyst;
diffAdjH = (senseInt - VAdj) - Hyst;
//diffAdjL = VAdj - senseLowInt;
//diffAdjH = senseHighInt - VAdj;
//vAdjRead = (VAdj * 5) / 1024;
//vAdjRead = (float)(VAdj * 5) / 1024;
// Set the amplification gain factor