Improved logic for coil signal ramping.