presision was mistakenly discarded on the x variable while calculating the sine for the PWMControl
Fixed miscalculation of x in renderSine