GPS based acceleration
Posted: Thu Dec 19, 2013 12:40 pm
Hello Harry,
I would like to know if you could add GPS based acceleration.
As a motorcycle rider, I keep my iphone in my leather suit and therefore can't use the embedded accelerometer.
Would it be possible to add lateral/longitudinal acceleration based on the GPS signal?
Longitudinal acceleration can easily be processed as it is the derivative of the speed.
Lateral acceleration is a bit more complex, but can also be done:
It is expressed as Alat = v^2 / R ,with v = speed and R = radius of the corner
R can be found knowing 3 GPS points (latitude, longitude) :
R = a*b*c/(4*K)
with a, b, c are the length of the 3 sides from the triangle
and K = sqrt(s * (s-a) * (s-b) * (s-c))
with s = 0.5 * (a + b + c)
All in all, we finally have :
R = a*b*c / (4 * sqrt(0.5*(a+b+c) * (0.5*(a+b+c) - a) * (0.5*(a+b+c) - b) * (0.5*(a+b+c) - c))
To convert latitude/longitude into X,Y cartesian, here is a link : http://stackoverflow.com/questions/5983 ... coordinate
Let me know if you think it can be included in a future version, or if you need other details.
I would like to know if you could add GPS based acceleration.
As a motorcycle rider, I keep my iphone in my leather suit and therefore can't use the embedded accelerometer.
Would it be possible to add lateral/longitudinal acceleration based on the GPS signal?
Longitudinal acceleration can easily be processed as it is the derivative of the speed.
Lateral acceleration is a bit more complex, but can also be done:
It is expressed as Alat = v^2 / R ,with v = speed and R = radius of the corner
R can be found knowing 3 GPS points (latitude, longitude) :
R = a*b*c/(4*K)
with a, b, c are the length of the 3 sides from the triangle
and K = sqrt(s * (s-a) * (s-b) * (s-c))
with s = 0.5 * (a + b + c)
All in all, we finally have :
R = a*b*c / (4 * sqrt(0.5*(a+b+c) * (0.5*(a+b+c) - a) * (0.5*(a+b+c) - b) * (0.5*(a+b+c) - c))
To convert latitude/longitude into X,Y cartesian, here is a link : http://stackoverflow.com/questions/5983 ... coordinate
Let me know if you think it can be included in a future version, or if you need other details.