THis code is working with break, throttle. Motor can be controlled in open loop and closed loop.
for working with each version of code: you need to replace SimpleFOC library src folder with the one in ESP6PWM_test src folder by removing main.cpp from target src folder.