engineermike
Well-Known Member
I like what you did there. There's a problem, though, because you are taking the average slope of speed (dv/dt=a) over a 1 second interval, looking back. If you assume the acceleration rate is linear, then the value at that time is actually applicable to 1/2 second before that time. You could reduce the timespan of the slope and that would reduce the 1/2 second offset, but from experience I know if you reduce the timespan you get way too much noise in the output. It might be better if you average the slope looking 1/2 second back and 1/2 second forward, which would make the offset 0 and also allow for one change in slope over the 1 second span. However, this has it's limitations as well because it's still averaging data from 2 gears at a time. Yours already does this because after the gear change it's still including the acceleration of the prior gear as long as it was within the prior 1 second.Here I am even willing to share how to do in in HPT. Its completely dependent on tire traction. You could improve upon it as is... and more with thinking about friction.
![]()
I did something similar to calculate power and torque. I included factors for wind and rolling resistance, and included an SAE correction for air temperature:
I used the average speed over the next 1/2 second minus the average speed over the prior 1/2 second, which smoothed out the output. This turned out to be a good tool for tuning but has its limitations. For one, the correction doesn't account for humidity and baro changes, and it doesn't seem to account for temperature very well either. You really have to try to match conditions as best you can. Plus, it has the exact same inescapable problem that your acceleration math has, in that it has to take data over some timespan and the output is only applicable in the middle of the span, meaning the output is not useful near max rpm. I have tried shortening the span but the data gets too noisy and becomes useless. Basically what you see above is a tradeoff between data noise and narrowing span to get power close to max rpm. What's also interesting is that it’s only calibrated for one gear. If I make pulls in different gears, the power is always higher in higher gears. I'm 100% certain I know what is causing this....
It's really a shame that you have such disdain for me, as we could probably accomplish a lot if we collaborated.
Sponsored
Last edited: