I was poking around at it, and it didn't seem to do exactly what I wanted, especially in the transition from 100ms > 10ms serial output. It could only be 10ms and still be accurate but it won't necessarily reflect the rpm changes that you see.. I'll probably refine it one more time with a good drive but wanted to make note of it here and update the common code to reflect the small changes.

Logged

AMP2 Corinthians 8:21For we take thought beforehand and aim to be honest and absolutely above suspicion, not only in the sight of the Lord but also in the sight of men.

Accel variable seems to be working as expected now. Probably going to use it for tuning the top end curve. I've noticed that shaft speed acceleration peters out depending on where you tuned it.

I was tuning it for 3rd gear, and it barely reaches into 130k land and creeps back, but once I'm in 4th or higher, I can't get over 125k, so I'll probably tune the curve in my highest gear, then relate turbo acceleration > 50rpm/ms goto a bigger vane position.. something like that

Logged

AMP2 Corinthians 8:21For we take thought beforehand and aim to be honest and absolutely above suspicion, not only in the sight of the Lord but also in the sight of men.

So I kept thinking to myself... That speed on the right is way slow...

I was working on it today and got it up to 2000+ loops per 100ms now... I forgot what I did! I'll have to compare to the posted code but I think the frequency read was the major slow down going from double to long

So then I increased the array from 64 to 128... And the output got all screwed up and i spent more time trying to figure out what I broke copying and pasting each tab until I figured it out.. So not entirely sure what made it go faster

Logged

AMP2 Corinthians 8:21For we take thought beforehand and aim to be honest and absolutely above suspicion, not only in the sight of the Lord but also in the sight of men.

I think that forces is to be calculated as a float not an int, though I think just defining it as 0.0 rather than 0 does the same thing? and since the variable is declared as a float I don't know if you'd need either.. the times you'd use it are like