Latest Version 3.0.0
You will need to be a registered forum user to see the attachment, but there is a Arduino Sketch attached to this post.
Detailed list of code will follow...
Timer's must be used if you don't want to micromanage the gearbox. And using timers will allow RPM to fluctuate enough that you don't continue to update vane position when it absolutely is not necessary. Secondly waiting to adjust position makes the turbo more aggressive in acceleration, which is good.