| Algorithm 1. Pseudocode to detail the orientation estimation process for each SFA. |
| for each pair of MIMUs (Xsens, APDM, and Shimmer) for each angular rate condition (slow, medium, fast) remove the static bias for each gyroscope compute the starting orientation for each MIMU initialize the matrix (#rows = length(), #columns = length()) for each value belonging to between [, ] for each value belonging to between [, ] compute the absolute orientation of each MIMU separately with the SFA under analysis to obtain and refer and to the starting orientation to obtain and , as done in (1) compute the absolute orientation error of and separately using the gold standard to obtain and , as done in (2) convert and into angular rotation errors to obtain and compute the average value between the two absolute errors to obtain compute the RMS of considering only the dynamic parts of the recording to obtain add to the matrix end end find the optimal region of which correspond to the range of which includes its minimum () + 0.5 deg to obtain and find the value of which correspond to the default parameter values to obtain end end |