function out = cascadeSelector(wd,Td,p)
cascade   = p(13);
if cascade == 1
    out = wd;
elseif cascade == 2
    out = Td;
end
end

