Learn FOC algorithm

I want to write my own sinePWM FOC program for a bldc closed loop position control. I read plenty of simpleFOC documents and theory but still I feel like not really understand. Can anyone show me where I can learn more about FOC?

I was able to create my own FOC implementation based on the block diagram in the SimpleFOC documentation, and the FOC transformations guide from Microchip which gives you the equations for park and clarke transforms.

huge thanks for taking the time to reply and for the resource, I’m sure it will be heck of a project but I’ll try my best