function angle = convertangleto360(x)
        angle = mod(x,360);
        % if x < 0
        %     angle = x +360;
        % elseif x > 360
        %     angle = x-360;
        % else
        %     angle = x;
end