I want to use the quaternion data representing the attitude of a device (e.g. Android and iOS smartphones), during a movement task (e.g. arm movement), to calculate time derivatives of this angular data.
Since attitude is angular, the first derivative will be angular velocity, the second will be angular acceleration, and the third will be angular jerk.
How should this be done? I'm assuming such analyses can't be performed on the fly, but must be done after data are captured, but not sure what best to do.