When processing trackpoints, would be good to generate stats based on acceleration/deceleration.

If the journey log was ever needed to back up a contested insurance claim, it'd be good to be able to include

- maximum rate of acceleration

- maximum rate of deceleration

- average rate of acceleration

- average rate of deceleration

If the journey log was ever needed to back up a contested insurance claim, it'd be good to be able to include

- maximum rate of acceleration

- maximum rate of deceleration

- average rate of acceleration

- average rate of deceleration

## Activity

Ben Tasker Permalink2013-11-17 14:09:53So should be reasonably easy to add a calculation;

|time (seconds)|speed (metres/sec)|Acceleration|Deceleration|

|0|0| | |

|10|50||5 m/s^2 | |

|15|65||3 m/s^2 | |

|25|50| ||1.5 m/s^2|

|30|40| ||2 m/s^2|

|0|0| ||4 m/s^2|

As the SI for acceleration is metres a second (squared), we'll need to convert speeds from MPH/KPH

Ben Tasker Permalink2013-11-17 14:13:43Ben Tasker Permalink2013-11-17 15:09:24- faccel

- fdecel

Journey stats will be pushed to

- accels

- decels

Acceleration and deceleration will not be included if speeds are suppressed.

The following stats will be available at Journey and Track levels (support for segments not being implemented at this time)

- Max acceleration

- Max deceleration

- Min acceleration

- Min deceleration

- Average acceleration

- Average deceleration

Ben Tasker Permalink2013-11-17 16:01:28KPH to metres/s(10 kph * 1000) = 10000kph / 3600 = 2.7778 m/s

MPH to metres/s (1609.344 metres to mile)(10 mph * 1609.344) = 16093.44 / 3600 = 4.4704 m/s

Figures confirmed using online calculator

Ben Tasker Permalink2013-11-17 16:19:36Will merge changes and close feature branch

Unassigned Permalink2013-11-17 16:21:04Unassigned Permalink2013-11-17 16:21:04Unassigned Permalink2013-11-17 16:21:10Ben Tasker Permalink2013-11-17 20:13:34Unassigned Permalink2013-11-17 20:13:34Unassigned Permalink2013-11-17 20:13:34Unassigned Permalink2013-11-17 20:16:11Unassigned Permalink2013-11-17 20:19:09Unassigned Permalink2013-11-17 20:19:09