A software component to control two dc motors with three half-bridge