Adding code to calculate alpha and beta angles from low sampling rate
trajectory.