function [h,finish,dir]= mycheck(t,y)
global param1
h=[y(2),y(2)-5];

if h(2) >=0
    param1 =0.3
end
finish=[1,0]; 
dir=[0,1];
end

