Code: Select all
if(IdleCtl == 1) {
if(outpc.clt < flash4.FastIdle)
*pPTMpin[2] |= 0x04; // turn on fast idle solenoid
if(outpc.clt < flash4.FastIdle - flash4.IdleHyst)
*pPTMpin[2] |= 0x04; // turn on fast idle solenoid
else if(outpc.clt > flash4.FastIdle)
*pPTMpin[2] &= ~0x04; // turn off fast idle solenoid
}
The only thing I didn't know is if I need to swap the '<' for the hysteresis.
Honestly, I don't know what that hysteresis code actually does. Assuming the fidle value is 160 and the hysteresis value is 5 a temperature of 159 will turn it on and a temperature of 160 will turn it off. If it hovers up and down around there, it's still going to turn on and off.. I don't get it.. or I'm looking at it wrong?
Thanks!
Mike