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:
parent
e16c35cd32
commit
0e318eab7c
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue