Compute speed and estimate position of rotor by using Hall sensors
Motor Control Blockset / Sensor Decoders
The Hall Speed and Position block computes the mechanical speed of the rotor by tracking changes in the Hall state. The block also estimates the electric position of the rotor by using the direction, Hall state, and external counter value inputs.
The block executes periodically after a fixed time interval that the controller algorithm defines.