sliding mode angle is shifted with respect to sensored angle due to first order low pass filter.I have introduced the compensation that is (atan(w/wc) however still it is not sync with the sensored angle which makes loop unstable.How to rectify this problem?