B-G431-ESC1 Unable to Spin Motor in Closed Loop Velocity or Position

Are you confident you have the pole pairs correct?

Have you done a sensor test on its own e.g

Manually turning the motor 360deg should show 2xpi radians in the output for above test.

If you’ve done that then it would be good to post the output from your code, the initFOC method prints a bunch of info that might help you/us work out what is going on.

I did that video 3 years ago and it could probably do with being replaced by someone with more experience than me i.e i think the recommended 1st step for closed loop is ‘torque mode using voltage’ as it is simplest (no PIDs to tune). See step 3: