function r=rfcn(t,amp)
%   Generates the reference
r=amp*(sin(t)+sin(pi*t)+sin(pi^2*t));