Any PI Toolbox users on here?
Any PI Toolbox users on here?
Author
Discussion

motorsportbeng

Original Poster:

200 posts

184 months

Thursday 2nd January 2014
quotequote all
Hi all, I'm new to using PI toolbox and need a bit of help with a maths channel. I have created a simple maths channel which returns a value of 1 if the driver is coasting ( not on the throttle or the brakes ) and I would like to have another channel using this created channel which will calculate the total amount of time during the lap that the driver was coasting (returning the value of 1) has anyone got any ideas how I could do this at all?

Many Thanks

SlipStream77

2,153 posts

215 months

Thursday 2nd January 2014
quotequote all
It's been a while since I played with it but one method would be to calculate the number of 'ticks' in the lap by dividing the laptime by the recording frequency. Then calculate the proportion of those ticks that are 1s.

Don't forget that depending upon the car, throttle lifts for gearchanges would be included, if you have a clutch channel, you can write a simple bit of code to filter that out though.