Change the pulsewidth calc to us rather than ms