View Single Post
Old 06-13-2015, 07:23 PM   #68 (permalink)
Theitguy
EcoModding Lurker
 
Join Date: Jun 2015
Location: Australia
Posts: 18
Thanks: 3
Thanked 0 Times in 0 Posts
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);
}
  Reply With Quote