Invert turning logic so that it fits to inverted encoder readings