function [U_out] = check_u(U_in)
U_out = min(max(round(U_in),0),255);
end

