Merge master with development

Basically you need a helper which will look like
function normalize_angle(angle) {
   return (angle + 360) % 360
}

and then you can use angle = normalize_angle(angle -90)