sorry for lated reply i apologize for that i already sent you a massage
anothother thing is i can see that jfstockton is working on code section so i think i have readed the mihais code and he is using using single loop pid loop only containing position loop processing as this :
http://elm-chan.org/works/smc/rcc/zblock2.png
but we can improve this by cascade pid with position loop +velocitiy loop +tork loop so we we can get better performance which is look like as follows :
http://elm-chan.org/works/smc/rcc/zblock3.png
if you wanna go more further then you can go for feed forward control (i still trying to lern it)
what i know about feed feed forward is motors velocity and accelaration caractristic should known to us and we need to use this value in velocity feed forward and accelaratio feed forward
so alone feedforward is open loop system and it does most of all control and pid have work little so overall performance will be cool !
so cascadepid +feedforward=great perfomance
but let me tell u one thing only cacade pid can give us better performance then single loop pid which is we are currenty using
the reason behind proposing cascade pid and feed forward here is that i think this stm32 arm is fast enough to do all calculation (obviously too much faster then 8 bit avr elm chna attiny2313 (actually great work !) comparing at frequency but also with calculation becuse i think they are calculating at 32bit so faster calculation )