Fpga Based Hardware-In-The Loop Controller For Electric Drives