added math for deg to Us for timing control