08-01-2016, 08:21 PM
Probably there is required some function that will convert angle to x and y variables, that could be passed to motor function. Negative angle turned to i.e. motor(0.8, 1);, or motor(-0.1, 1);, depending how much you must turn, etc.
Spoiler :