Question: ODE with events

HI,is it possible to solve the ODE system (that I have uploaded) by adding events at a certain timestep, instead of reformulating the system for each step.The ODE system expresses two coupled movements y(t) and X(t). The current position of y(t) is controlled by a parameter which depends on values calculated in the previous step, while changing the sign for each step.Thank you! 
Please Wait...