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; diffCompH = (compInt - VComp) - Hyst;
//diffCompL = VComp - compLowInt; //diffCompL = VComp - compLowInt;
//diffCompH = compHighInt - VComp; //diffCompH = compHighInt - VComp;
//VCompRef = (VComp * 5) / 1024; //VCompRef = (float)(VComp * 5) / 1024;
VAdj = analogRead(V_FOLLOW_PIN); VAdj = analogRead(V_FOLLOW_PIN);
diffAdjL = (VAdj - senseInt) - Hyst; diffAdjL = (VAdj - senseInt) - Hyst;
diffAdjH = (senseInt - VAdj) - Hyst; diffAdjH = (senseInt - VAdj) - Hyst;
//diffAdjL = VAdj - senseLowInt; //diffAdjL = VAdj - senseLowInt;
//diffAdjH = senseHighInt - VAdj; //diffAdjH = senseHighInt - VAdj;
//vAdjRead = (VAdj * 5) / 1024; //vAdjRead = (float)(VAdj * 5) / 1024;
// Set the amplification gain factor // Set the amplification gain factor