Fixed got straight function
Added support for negative rotational angles