added support for QEIOC_GETINDEX call (implemented to NuttX mainline in 8e2b4576, currently supported only with iMXRT MCU)
QEIOC_GETINDEX returns encoder position, index position and index count with one IOCTL call
Hall 2 Sectors block
This block converts 3 Hall signals to 6 sectors (3 bits)
PMSM Align block
PMSM Align block computes the electric angle of PMSM. Based on the inputs (hall sector number, encoder position, index, index count) it determines whether the HALL sensors or encoder are used for the motor's angle. HALL sensors are used until the encoder hits its index.
This PR consists of three commits.
Enhancement of NuttX Encoder block
Hall 2 Sectors block
PMSM Align block