PI regulator for speed loop