Found the problem. Seems the call to the space vector modulation routine was commented out so no wonder I couldn't generate any pwm
Still not had any luck with the rotor tuning routine but guessed a few times for the rotor time constand and managed to rip my arm out of its socket trying to hold the output shaft

__________________
Now, Cole, when you shift the gear and that little needle on the ammeter goes into the red and reads 2000 Amps, that's bad.
www.evbmw.com