Phi resonance correction added. (Phi resonance can be more than PI/2 arctg limitation)