hi there i'm working on quadrotor path tracking in matlab's simulink . there is an inner loop which is responsible for tracking the desired euler angles generated by the outer loop . feedback linearization is applied to a kinematic inversion block to generate reference euler angles . and a three separate sliding mode controllers are devoted for each three euler angles(fi , teta , sai).and i should mention that the kinematic inversion block's calculations are only valid under the condition that sai is held zero. so the corresponding sliding mode control should hold the sai zero . the problem is that for appropriate values for eta and landa(eta is the velocity of reaching the sliding surface and landa is the velocity of sliding toward zero when our variable is on the sliding surface) and feedback linearization parameters(alpha and beta), x and y track their reference values with the least possible error and so do the euler angles. but z does not at all track its reference value and starts to unboundedly diverge. what do you think i should do ? where do you think the problem may come from ? any advices or answers will be greatly appreciated.