I looked at the code, but I couldn’t understand how the Hall sensor was doing the Angle estimation
Hello and welcome to the forum.
Please check out the following sources:
Page 14 and onwards have some good description
This one also has some good description
Cheers,
Valentine