A method and apparatus for controlling electromagnetic actuators.