function control_law = fcn(hold_pos,return_LOS)

control_law = 1;

if hold_pos && ~return_LOS
    control_law = 1; % Hold position
end
if hold_pos && return_LOS
    control_law = 2; % Return
end
if ~hold_pos && ~return_LOS
    control_law = 3; % Velocity control
end
if ~hold_pos && return_LOS
    control_law = 3; % Velocity control
end