Design and implement complex control algorithms for BLDC and PMSM motors using Matlab and Simulink. Experience in embedded C coding is required.