Wow!
Thankyou, i was a LONG way off..... haha...
so if i declare a variable in a calculation, can i just insert that variable like so?
void LEDnumOdoDistance()
{
float vssSpeed = 0;
float distance = ( float(vssPulseCount) / float(vssPulsesPerUnitDistance) );
if(vssCyclePeriod != 0) {vssSpeed = ( vssCyclePeriodToSpeedNumerator / float(vssCyclePeriod) );}
if(micros() > vssLastOnTime + vssTimeOut) {vssSpeed = 0;}
ledDisplayNumerical(firstSaa1064Address,vssSpeed, 0x32);
}
|