tranlsating motor from -1,1 to 0,180. using stackoverflow question 1969240