View Single Post
Old 18 Apr 2011, 20:17 (Ref:2866036)   #17
greenamex2
Veteran
 
Join Date: Aug 2002
England
Hertfordshire
Posts: 1,686
greenamex2 should be qualifying in the top 10 on the grid
One for the PI match guru's

For reasons I won't go in to (unless you push me) I need to calculate the distance so far of the current lap.

I have a formula for the total distance so far but don't know how to 'reset' it for each lap.

Any ideas?

My current formula thingy is -

register @R;
@R=@R+([CAN Car Speed]*1609.34*0.1*5/(60*60*8));
@R;

Any guidance appreciated.
greenamex2 is offline  
Quote