You may download and install the latest MotorControlSDK, which can support a set of hardware kits and control algorithms for BLDC/PMSM drive. The control algorithms include InstaSPIN or eSMO based Sensorless-FOC, and incremental encoder or hall sensor based sensore...
updated to try and push people into using proprietary control software. Feature and performance wise the VESC FOC software is great but out of necessity to work with the existing code much of the FOC specific code is intertwined with BLDC parts and other sections not specific to motor control....