I have a data set of x,y co-ordinates, starting from origin, recorded each second. I can detect distance, speed,acceleration, modulus of displacement . Is there any algorithm to detect whether a left or right turn ?
I am currently calculating distance and modulus of displacement for every 10 seconds, if the displacement is approximately equal to distance, then the vehicle is on straight path, but of the values change then there is a turn involved.
IS there an algorithm to decide whether the turn was left or right ? My data looks like this
Time x y
0 0 0
1 -0.2 -0.1
2 -0.7 0.9
3 -0.8 0.9
4 -1 0.8
5 -1.1 0.8
6 -1.2 0.7
7 -1.4 0.7
8 -1.9 1.7
9 -2 1.7
10 -2.2 1.6
11 -2.3 1.6
12 -2.5 1.5
13 -2.6 1.5
14 -2.7 1.5
15 -2.9 1.4
16 -3.6 1.2
17 -4.1 -0.1
18 -4.7 -1.5
19 -4.7 -2.6
20 -4.3 -3.7
21 -4.3 -3.7
22 -4.7 -3.8
23 -6.2 -3.1
24 -9.9 -1.9
25 -13.7 -1.9
26 -17.9 -2
27 -21.8 -0.8
28 -25.1 -0.6
29 -28.6 1.8