filtered debug value for commutation cycle ticks

integrator for speed controller
some more bugfixes