function y = gel_pulsa(x)
t = x(1);
f = (x(2))/60;
w = 2*pi*f;
phi = x(3);
sinus = sin(w*t + phi);
if sinus >= 0.9
    y = 1;
else
    y = 0;
end