I have to filter heading provided by GPS. Heading is provided as degrees 0-360. When there is transition between 0-360 or 360-0 Kalman goes crazy and my filtered heading is