Hi,

Hopefully someone can steer me in the right direction (pardon the pun ;))

I'm trying to code something from a paper to get the future position of a car i.e. p(I, Tc + delta t) the position of car I at current time Tc + delta t. Delta t is only one second.

The paper is telling me that I need the following:

v(I,T): motion vector of node I at time T

p(I,T): position vector of node I at time T

with relationship:

p(I,Tc)=p(I,Tr + v(I,Tr)*(Tc-Tr)

The paper then says that the accuracy of the motion vector is vital and says "Let m denote the motion vector accessed from GPS. Mold and Mnew are the reported motion vectors at the last time and this respectively. Mnew = alpha * Mold + (1-alpha)*m, 0<=alpha<=1 with alpha being 0.3 if the car is in a junction and 0.7 otherwise.

Basically I'm confused as to information I need exactly to code this. I have the vehicles current (x,y) position, its old (x,y) position one second ago and can therefore calculate its speed. I don't know how I'm supposed to determine its direction or what form that is supposed to take. I also don't understand the distinction between 'm' in comparison with Mnew and Mold.

Very stuck so any help would be greatly appreciated.

Thanks in advance.