You should pretty much read this whole thread:
http://ecomodder.com/forum/showthrea...ller-6404.html
The design is open source and I'm sure you can adapt it to your needs. Schematics and such here:
Open ReVolt - EcoModder
EDIT: just noticed you're looking at BLDC, not DC. Well... they're also working on an AC induction controller, which (if I understand correctly) should be essentially the same as BLDC. You would need different code on the control part though.
http://ecomodder.com/forum/showthrea...ler-10839.html