I have a set of GPS data with Lat, lon and Course. I need to interpolate current value of course, using previous values of Course. The formula I am using is not accurate in curves.In C language I was trying the implementation. Formula I have used is : Current_Course = previous_Course + ((previous_course - previous_to_previous_course)* Ratio)
where Ratio is ratio of time difference and GPS update time.
Does anyone knows a better formula to interpolate course value. Thanks in advance.