
==== Front
Sensors (Basel)
Sensors (Basel)
sensors
Sensors (Basel, Switzerland)
1424-8220
MDPI

10.3390/s24175795
sensors-24-05795
Article
A Novel Method and System Implementation for Precise Estimation of Single-Axis Rotational Angles
https://orcid.org/0000-0002-2468-5134
Yang Qinghua Conceptualization Methodology Writing – original draft Writing – review & editing Supervision Project administration Funding acquisition 1*
https://orcid.org/0009-0006-4284-6663
Shen Yang Methodology Validation Data curation Writing – review & editing 1
Sun Xuetao Data curation Writing – review & editing 1
Wang Changfa Resources 12
Lázaro Antonio Academic Editor
Oyadiji Olutunde Academic Editor
1 School of Mechatronic Engineering and Automation, Shanghai University, Shanghai 200444, China; shenyang8123@163.com (Y.S.); 201339930@shu.edu.cn (X.S.); changfa1999@163.com (C.W.)
2 Shanghai Aircraft Manufacturing Co., Ltd., Shanghai 200436, China
* Correspondence: yangqinghua@shu.edu.cn
06 9 2024
9 2024
24 17 579527 7 2024
23 8 2024
30 8 2024
© 2024 by the authors.
2024
https://creativecommons.org/licenses/by/4.0/ Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Accurately estimating single-axis rotational angle changes is crucial in many high-tech domains. However, traditional angle measurement techniques are often constrained by sensor limitations and environmental interferences, resulting in significant deficiencies in precision and stability. Moreover, current methodologies typically rely on fixed-axis rotation models, leading to substantial discrepancies between measured and actual angles due to axis misalignment. To address these issues, this paper proposes an innovative method for single-axis rotational angle estimation. It introduces a calibration technique for installation errors between inertial measurement units and the overall measurement system, effectively translating dynamic rotational inertial outputs to system enclosure outputs. Subsequently, the method employs triaxial accelerometers combined with zero-velocity detection technology to estimate the rotation axis position. Finally, it delves into analyzing the relationship between quaternion and axis–angle, aimed at reducing noise interference for precise rotational angle estimation. Based on this proposed methodology, a Low-Cost, a High Accuracy Measurement System (HAMS) integrating sensor fusion was designed and implemented. Experimental results demonstrate static measurement errors below ±0.15° and dynamic measurement errors below ±0.5° within a ±180° range.

angle measurement
calibration
inertial measurement unit
axis–angle pair
Shanghai Municipal Science and Technology CommissionYDZX20223100004008 This research was funded by the Shanghai Municipal Science and Technology Commission, project number YDZX20223100004008.
==== Body
pmc1. Introduction

In the fields of aerospace, robotics, and automotive engineering, accurately measuring the rotational angles of movable surfaces is crucial [1,2,3]. This measurement aids in understanding the system’s posture and status, enabling appropriate operations and adjustments. In aviation, precise measurement of aircraft control surface deflection is key for maintaining stability during high-speed flight, and any deviations from the designed angle measurement system can significantly impact the aircraft’s performance and safety [4,5]. In robotics, accurately measuring joint rotation is essential for executing complex movements and delicate operations [6,7]. For example, during precision assembly or surgical assistance, robots must precisely control each joint of their mechanical arm to ensure accuracy and safety [8,9]. Similarly, in automotive engineering, precise measurement of wheel steering angles and suspension adjustments is vital for maintaining vehicle stability and optimizing the driving experience. Significant measurement errors can reduce overall vehicle performance and, in severe cases [10], threaten driving safety. Hence, accurate angle measurement provides a fundamental basis for the system’s stability, accuracy, and safety.

Inertial sensor-based motion tracking methods have become a research focus in rotational angle measurement due to their low cost, compact size, and ease of integration. Inertial Measurement Unit (IMU) typically include a gyroscope, accelerometer, and magnetometer. By combining data from these sensors, attitude angles are obtained through attitude estimation algorithms [11,12,13,14,15]. IMUs reference their own coordinate system when measuring angular acceleration and velocity, making this approach to posture estimation largely unaffected by interference and obstructions [16]. In theory, they can capture the motion of a target without any limitations, leading to their widespread application [17,18,19].

In the field of rotational axis estimation, researcher Sara [20] introduced the Simultaneous Orthogonal Rotations Angle (SORA) method. This approach uses gyroscope outputs to determine the rotational angle and axis of single-axis movements. Its simplicity makes it suitable for general angular positioning, marking significant progress in angle estimation. However, it has limitations, relying solely on gyroscopes, which suffer from drift issues that worsen over time. Furthermore, the model assumes constant angular velocity, which might struggle with complex and unpredictable motion dynamics. To address gyroscopic drift, Cao [21] proposed a method for measuring spatial rotation angles using dual-axis MEMS tilt sensors. The method calculates the rotation angles of an object in space by establishing and solving model equations. A perpendicularly mounted single-axis tilt sensor is added to the original dual-axis tilt sensors, forming a three-axis tilt sensor system that effectively corrects and measures the spatial rotation angles of the object. Wang [22] proposed using an accelerometer to estimate the rotation axis can improve the precision of static measurements. However, when using Euler angles to represent rotation, the measurement precision decreases when the measurement angle exceeds 60 degrees. Subsequently, Xu [23] proposed a method for estimating the rotation axis based on incremental quaternions. This method employs incremental quaternions to calculate the rotation axis by computing intermediate rotation angles, ultimately determining the rotation angle. It effectively circumvents the gimbal lock issue associated with Euler angles and enables full-range rotation angle measurement and complete attitude estimation of the rotation axis. While it has been proven effective in handling the static motion of targets, over-reliance on quaternions has resulted in increased accumulated errors over time in computations.

The remainder of the paper is organized as follows. Section 2 lays out the coordinate systems and introduces a calibration technique designed to correct installation errors between the Inertial Measurement Unit (IMU) and the entire measurement system, effectively translating the dynamic rotation outputs of the IMU into the system frame. Section 3 presents a method for estimating the direction of the rotation axis using a tri-axial accelerometer and zero-velocity detection technology and analyzes the transformations between quaternions and axis–angle pairs. Section 4 provides experimental validation of the algorithm’s effectiveness. Finally, conclusions are summarized in Section 5.

2. Modeling

The coordinate systems are defined as follows. Earth coordinate system O, Ox and Oy lies in the horizontal plane, with Ox pointing east and Oy pointing north. Oz is perpendicular to the horizontal ground and points upward.

The inertial measurement unit coordinate system, I, corresponds to the three axes of the accelerometer’s sensitive axis.

The HAMS coordinate frame, S, has its geometric center as the origin. The x-axis points forward, the y-axis points to the right, perpendicular to the x-axis, and the z-axis is perpendicular to the plane formed by x and y.

The relationship between the system coordinate system and the IMU coordinate system as shown in Figure 1.

The inertial measurement unit is placed inside the system, and its measurement axis has a small angular error with the outer frame of the system. Therefore, need to calibrate the small angle error between the system coordinate S and the inertial measurement unit coordinate system I, and convert the dynamic rotational inertial measurement output to the output of the overall. The relationship between the acceleration in the system coordinate system and the IMU coordinate system can be inferred as Formula (1). (1) aS=RISaI

RIS denotes the rotation matrix of the IMU coordinate system I rotated to the HAMS coordinate frame S.

With the accelerometer stationary, rotate around the x-axis of the system. According to Formula (1), the following can be derived:(2) vxS=RISvxI=100T

where vxS and vxI represent the coordinates of the rotation axis x in the HAMS coordinate system S and the inertial measurement unit coordinate system I, respectively.

At the initial moments, we can obtain the initial matrix in the HAMS coordinate system I:(3) R(θt,vxS)=1000cosθtsinθt0−sinθtcosθt

Then, at time t, assuming that a0S=[ax0S,ay0S,az0S], the acceleration in the HAMS coordinate system can be expressed as: (4) atS=R(θt,vxS)a0S=ax0Say0Scosθt+az0Ssinθt−ay0Ssinθt+az0Scosθt

With the angle changes, the rotation trajectory is a plane perpendicular to vxS. The atS perpendicular to vxS can be obtained at any time by cross product, which is in the same direction as the rotation axis.

After three rotations at11S, at12S, at13S can be obtained three time instants. Then, (5) vxS=±at12S−at11S×at13S−at12Sat12S−at11S×at13S−at12S

According to Equation (2), we can obtain:(6) vxI=±at12I−at11I×at13I−at12Iat12I−at11I×at13I−at12I

According to Equation (6), the first column vector of RIS can be obtained, which is vxI.

Next, repeat the above steps to obtain the other two column vectors of the rotation matrix RIS, which is vyI for rotation about the y axis, and vzI for rotation about the z axis. (7) vyI=±at22I−at21I×at23I−at22Iat22I−at21I×at23I−at22I

(8) vzI=±at32I−at31I×at33I−at32Iat32I−at31I×at33I−at32I

According to the definition (9) vI=[vxI,vyI,vzI]

(10) vS=[vxS,vyS,vzS]

(11) vS=RIS·vI=I3

Therefore, according to Formulas (6)–(11) the small angle transform matrix from the inertial unit to the device frame RIS can be obtained:(12) RIS=[vxI,vyI,vzI]−1

This section has derived the coordinate transformation matrix from the IMU coordinate system to the HAMS coordinate frame, which allows for the conversion of outputs from the inertial measurement unit into the system coordinate framework.

3. Algorithm Design

The entire angle measurement process involves estimating the rotation axis direction to construct the prediction model and the measurement model, and using the relationship between quaternions and axis–angle pairs to calculate the rotation angle. Figure 2 shows the block diagram of the angle measurement algorithm.

3.1. Zero Velocity Update

When using accelerometers for posture estimation, the precision of angle measurement by the accelerometer can be affected by other accelerations. Given the limitations of its dynamic performance, accurately identifying a static state becomes crucial [24]. Therefore, ZUPT technology is applied to determine whether an object is in a stationary state.

In the ZUPT algorithm, Wagstaff [25] proposed an adaptive threshold detector that optimizes the zero-velocity threshold by analyzing the characteristics of acceleration and angular velocity data under different motion patterns. This method can dynamically adjust the threshold according to changes in the motion state, adapting to various motion conditions and environments.

Considering that the main focus of this study is the rotation of a movable surface around a fixed axis, including both uniform and variable-speed rotation, the determination of thresholds may vary between the uniform and variable-speed rotation phases. Therefore, we propose a method of adaptive zero-velocity detection based on accelerometers and gyroscopes.

In the initial production stage, a segment of stationary time is collected for both accelerometer and gyroscope data. The magnitudes of the collected acceleration and angular velocity data, denoted as ak and ωk, respectively, are calculated. Initial thresholds thamin, thamax, thωmin, and thωmax are set. The variance of the collected acceleration magnitude, ζa2=vartkakt, is computed, and an initial threshold thζa is established.

For a stationary state, for both the accelerometer and gyroscope, their thresholds and variances satisfy:(13) thamin≤ak≤thamax

(14) ζa2<thζa

(15) ωk≤thωmax

Table 1 shows the initial threshold settings.

where ζa2 is the variance is measured for the acceleration within a time window of length seconds.

In subsequent stages, accelerometer data ak and gyroscope data ωk are collected in a loop, where k represents the time step index. The most recent N samples constitute a sliding window ak−N+1,…,ak and ωk−N+1,…,ωk. For each sample, the acceleration error term is calculated as ek=|ak−g|2, and the gyroscope error term as fk=|ωk|2. The weighted mean of errors within the sliding window is computed as Sk=1N∑i=k−N+1k(1σa2ei+1σω2fi). For data samples satisfying the stationary status, the acceleration error term ek and gyroscope error term fk are calculated. Using maximum likelihood estimation, the distribution parameters of the acceleration and gyroscope error terms, namely μe, σe2, μf, and σf2, are estimated. Based on the estimated parameters, thresholds thamin, thamax, and thωmax are updated to adapt to the current motion state.

Selecting a sample that transitions from a stationary state to uniform rotation and then back to a stationary state, Figure 3 illustrates the variation in acceleration data, with fluctuations observed over a specific time period. Areas of low fluctuation indicate the object’s stationary state.The part enclosed by the dashed box in the figure. Displaying the corresponding changes, Figure 4 reveals areas of low fluctuation in gyroscope data, corresponding to the presence of a stationary state, similar to the acceleration data. Directly presenting the rotation angles calculated after data processing, Figure 5 clearly shows that the angle changes corresponding to the stationary state are very small, intuitively demonstrating the working principle and effect of ZUPT.

3.2. Estimating the Rotation Axis

In the study of angle estimation for single-axis rotational motion, accurate estimation of the rotational axis’s attitude is a fundamental and critical step. Currently, most data fusion algorithms are based on a fixed and visible rotation axis, imposing stringent requirements on the installation of angle measurement devices. Therefore, this section proposes a method for estimating the rotation axis that does not depend on the installation position, effectively avoiding the impact of installation errors.

Define the z-axis of the moving plane coordinate system C as the axis of rotation, as shown in Figure 6.

vC and vS represent the directions of the rotation axis in the moving plane coordinate system C and in the HAMS coordinate system S, respectively. (16) vC=RSCvS=001T

When the accelerometer is in a stationary state, the initial matrix of the moment of the moving plane rotating around the rotation axis can be obtained at the initial moment: (17) Rθt,vC=cosθt−sinθt0sinθtcosθt0001

Then, after a time t, the acceleration can be expressed as: (18) atC=Rθt,vCa0C=ax0Ccosθt−ay0Csinθtax0Csinθt+ay0Ccosθtaz0C

Similarly to the aforementioned calibration method, based on Formulas (2)–(5), rotating the moving plane around the rotation axis three times can yield vS, which is the direction of the rotation axis in the HAMS coordinate system. (19) vS=±[at2S−at1S]×[at3S−at2S]|[at2S−at1S]×[at3S−at2S]|

3.3. Attitude Solution

In the field of attitude estimation, Hamilton quaternions are widely used to represent rotational states. Theoretically, axis–angle pairs can be derived from quaternions, leading to the calculation of rotation angles. However, rotation angles derived directly from a single element of a quaternion often fail to meet the accuracy required for practical applications, because using a single element from the quaternion to solve for the rotation angle does not accurately reflect the relationship between the rotation angle and the quaternion, and the estimation of the rotation angle is highly sensitive to the rotation axis [26]. Therefore, this section will delve into the analysis of the relationship between quaternions and axis–angle pairs, aiming to achieve precise estimation of rotation angles by reducing noise interference.

This paper utilize Hamilton quaternions q to represent the state of rotation. A quaternion is composed of a real number and a vector, represented as follows:(20) q=q0q1q2q3T=cosθ2vxsinθ2vysinθ2vzsinθ2T

In this representation, q0 denotes the real number, while u=q1,q2,q3T represents the vector component.

3.3.1. Rotational Axis Transformation

Based on the rotational axis obtained from Formula (19), it needs to be converted to the rotational axis in the Earth-fixed coordinate system. Therefore, we need to utilize the initial quaternions q obtained from the system device and calculate the rotational axis in the Earth-fixed coordinate system using Formulas (21) and (22). (21) ROS=1−2q22−2q322q1q2−2q0q32q1q3+2q0q22q1q2+2q0q31−2q12−2q322q2q3−2q0q12q1q3−2q0q22q2q3+2q0q11−2q12−2q22

(22) vO=vS·ROS−1

3.3.2. The Relationship between Quaternions and Axis–Angle Pairs

After filtering the obtained quaternions, calculate the angles. Substitute the rotational axis vO obtained from Formula (22) into Formula (20) and simplify the expression. This process yields the expressions for four rotation angles as demonstrated in Formula (23). (23) θ=2arctan213q1vx+q2vy+q3vz,q0

where vx, vy, and vz are the three components of the axis of rotation pose estimation vS.

When using the aforementioned formula, it is necessary to use the derivatives of the rotational components, and if the component of the axis of rotation is small or even 0, this will cause the estimated value of the angle to be distorted, so it is necessary to filter out the component when solving. Introduce the gain component γ. (24) γx=0,ifvx<ξv1,otherwiseγy=0,ifvy<ξv1,otherwiseγz=0,ifvz<ξv1,otherwise

Convert Formula (23) to:(25) θ=2arctan2γxq1vx+γyq2vy+γzq3vzγx+γy+γz,q0

where arctant2 is a function used to calculate the angle θ for any point (x,y), returning an angle value ranging from −180° to 180°.

According to Formula (24), if a component of the estimated rotational axis vO does not meet the criterion during the process of solving for the rotation angle, that component will not be incorporated into the equation for solving the rotation angle. Appropriate thresholds need to be selected, as improper threshold selection, as shown in Figure 7, can result in significant distortions in certain angle calculations.

Formula (25) will resort to utilizing the more reliable rotational axis estimation vO component to solve for the rotation angle, where the calculated rotation angle becomes the final rotation angle.

4. Experiments and Discussions

In this section, the precision three-axis turntable (SGT320E from China Aviation Industry Corporation, Beijing, China) is used to simulate single-axis rotational motion. With an accuracy of 5 arcseconds, this precision three-axis turntable is highly suitable for applications requiring high-precision inertial attitude sensors, providing actual reference data for rotation angles. In both dynamic and static performance experiments, and taking the angles measured by SGT320E as references, the rotation angles calculated by the method proposed in this paper are compared with the rotation angles obtained using the IOE method [23]. To better validate the effectiveness of the proposed method in estimating rotation angles and axis attitudes during single-axis rotational motion, a low-cost high-precision angle measurement system (High Precision Angular Measurement System, HAMS) based on sensor fusion is designed and implemented. It is compared with the currently available Ellipse2-N (a compact, high-precision Attitude and Heading Reference System (AHRS)) (VectorNav: Dallas, TX, USA) in Figure 8. The Ellipse2-N device can provide measurement accuracies of 0.1° for roll and pitch, and 0.8° for yaw [27,28]. Through comparison, we can evaluate the accuracy and reliability of the proposed method.

4.1. Static Performance Experiment

In the research presented in this paper, static performance experiments are a crucial component, used to validate and assess the stability and accuracy of algorithms in the absence of external dynamic inputs [25]. Such experiments are particularly important for applications requiring precise angle measurements over extended periods.

In static experiments, controlled disturbances are intentionally introduced during rotation to simulate uncertain factors present in reality. These disturbances are designed to take various forms, including mechanical vibrations, temperature fluctuations, and electromagnetic interference. In this study, mechanical vibration is utilized to assess the applicability and robustness of the proposed method. In each experiment, as depicted in Figure 9, disturbances are introduced after the rotation reaches the set angular velocity and gradually reduced over time until the system comes to a complete stop, allowing it to return to its static state.

The data comparison plot in Figure 10 demonstrates a high consistency between the proposed method and the IOE method [23] regarding angle measurements during rotation and disturbance. After the dynamic disturbance, both methods show a return to the static state, indicating that the proposed method can provide more precise measurement results. Figure 11 and Figure 12 further illustrate the measurement errors of the proposed method and the IOE method [23]. From Figure 12, it can be observed that although the proposed method initially exhibits an error greater than 0.1° at the start of rotation, the error gradually decreases over time and stabilizes, indicating good accuracy in adapting to disturbances and returning to the static baseline. In contrast, the error of the IOE method, as shown in Figure 11, quickly peaks at the beginning of the experiment, suggesting sensitivity to initial conditions. When disturbances are introduced, the system requires time to stabilize, with the final error stabilizing at around 0.16°. Table 2 provides a comparison of the static experimental data between the IOE method and the proposed method. The results show that the proposed method yields a lower error and RMSE in comparison to the IOE method.

4.2. Dynamic Characteristic Experiment

Dynamic performance experiments involve assessing the algorithm’s responsiveness under changing temporal conditions. As evident from the angular velocity data in Figure 13, significant fluctuations occur, providing a dynamic backdrop for evaluating the measurement methods.

From Figure 14, it can be observed that both the proposed method and the IOE method [23] can track the true values with good consistency, indicating that the proposed method effectively captures the trend of angle changes. From the enlarged section, it can be observed when the angle reaches its peak, both the IOE method and the proposed method exhibit smaller fluctuations in estimated angles, resulting in smoother variations.

In Figure 15 and Figure 16, the results show that the estimation error of the IOE method remains around 0.2° for the majority of the regions, indicating good stability. However, towards the end, the IOE method exhibits a significant error spike, suggesting over-reliance on gyroscopic data and the phenomenon of gyroscopic error accumulation. The maximum estimation error reaches 0.4°. The errors of the proposed method primarily concentrate within a range of 0.3°. Table 3 provides a comparison of the dynamic experimental data between the IOE method and the proposed method. The results indicate that the proposed method exhibits some improvement in error and RMSE compared to the IOE method.

4.3. Experimental Features of the System

In the system experiment, a high-precision angular measurement system (HAMS) based on sensor fusion at low cost was designed and implemented. Angle estimation for single–axis rotation was conducted based on the method proposed in this paper, and compared with a compact, high-precision Attitude and Heading Reference System (AHRS).The angular variation data in the experiment is shown in Figure 17.

In Figure 18, the AHRS racks the reference angle more closely than the HAMS. In Figure 19 and Figure 20, the HAMS designed in this paper exhibits larger variations in error, staying within 0.5°. However, it demonstrates better performance in the final static state with smaller errors compared to AHRS, indicating the superior static performance of HAMS. The AHRS maintains relatively consistent errors of less than 0.1° for the majority of the time, but towards the end, due to the phenomenon of gyroscopic error accumulation, the error exceeds 0.3°. Table 4 lists the error and root mean square error (RMSE) data for both AHRS and HAMS. Although HAMS has higher error values, the results suggest that in certain specific scenarios, considering its low-cost design, it may still exhibit acceptable performance.

Experimental tests compared with the IOE method demonstrate the effectiveness of the approach proposed in this paper, particularly in enhancing static measurement performance. Compared to costly AHRS devices, the HAMS designed according to the method in this paper significantly reduces costs while maintaining a measurement accuracy of 0.5° for dynamic error and 0.15° for static error. This makes precise angle measurement feasible, even with limited budgets. Furthermore, the low–cost HAMS equipment demonstrates outstanding static measurement performance, which is crucial for industrial applications with stringent requirements for both cost and performance.

5. Conclusions

This study focuses on a novel method for estimating single–axis rotation angles for movable planes rotating around a fixed axis. Traditional angle measurement techniques are often limited by sensor constraints and environmental interference, leading to significant deficiencies in accuracy and stability. Moreover, existing methodologies typically rely on the strict alignment of the IMU’s X axis or Y axis with the rotation axis of the measured plane. However, due to installation errors, there is often a discrepancy between the assumed and actual rotation axes, resulting in a significant deviation between the measured and true angles [29].

To address the aforementioned issues, this paper proposes an innovative method for single–axis rotation angle estimation. The core innovations of this method lie in three aspects: Firstly, we introduce a novel calibration method for the installation error of the inertial measurement unit, allowing effective conversion of dynamic rotational inertial measurement data to system shell output, thereby significantly enhancing the accuracy and reliability of the data. Secondly, by utilizing a combination of triaxial accelerometers and zero velocity detection technology, we accurately estimate the direction of the rotation axis, effectively eliminating the influence of the installation position on the measurement results. This ability to negate the impact of installation position gives the method high versatility, making it adaptable to a wider range of single-axis rotational angle estimation tasks. Finally, quaternion representation of rotation combined with the estimated rotation axis is employed for attitude estimation.

In the experimental section, we first compared the rotation angles calculated using the method proposed in this paper with those obtained using the IOE method [23]. Static experiments demonstrates good system stability, with a maximum error of less than 0.15°. Dynamic experiments showed a maximum error of less than 0.3°, indicating that the proposed method effectively captures the trend of angle changes. To further validate the effectiveness of the method proposed in this paper in estimating the rotation angles and axis orientations of single–axis rotational motion, we designed and implemented HAMS, which was compared with the commercially available AHRS (Ellipse-2). The HAMS designed according to the method proposed in this paper maintains a measurement accuracy of 0.5° for dynamic errors and 0.15° for static errors, while significantly reducing costs. This makes it possible to perform accurate angle measurements within a limited budget.

Author Contributions

Conceptualization, Q.Y.; Methodology, Q.Y. and Y.S.; Validation, Y.S.; Resources, C.W.; Data curation, Y.S. and X.S.; Writing—original draft, Q.Y.; Writing—review & editing, Q.Y., Y.S. and X.S.; Supervision, Q.Y.; Project administration, Q.Y.; Funding acquisition, Q.Y. All authors have read and agreed to the published version of the manuscript.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

No new data were created or analyzed in this study.

Conflicts of Interest

Author Changfa Wang was employed by the company Shanghai Aircraft Manufacturing Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Figure 1 The relationship between the HAMS coordinate frame S and the IMU coordinate system I.

Figure 2 The block diagram of the algorithm system.

Figure 3 Changes in acceleration data during stillness and motion.

Figure 4 Changes in angular velocity data during stillness and motion.

Figure 5 Changes in angular data during stillness and motion.

Figure 6 Schematic of the rotation axis direction in the geodetic coordinate system.

Figure 7 Comparison experiment of different thresholds for rotational components.

Figure 8 HAMS and AHRS Experimental.

Figure 9 Angular velocity data in static experiment.

Figure 10 Angle comparison in static characteristic experiment.

Figure 11 IOE error in static experiment.

Figure 12 Our method’s error in static experiment.

Figure 13 Angular velocity data in dynamic experiment.

Figure 14 Angle comparison in dynamic characteristic experiment.

Figure 15 IOE error in dynamic experiment.

Figure 16 My Method error in dynamic experiment.

Figure 17 Angular velocity data in system experiment.

Figure 18 Angle comparison in system experiment.

Figure 19 AHRS error in system experiment.

Figure 20 HAMS error in system experiment.

sensors-24-05795-t001_Table 1 Table 1 Static experimental data.

Parameter Value	Value	
tk	0.005 s	
thamin	9.74 m/s2	
thamax	9.83 m/s2	
thζa	0.001 m/s2	
thωmax	0.12°/s	

sensors-24-05795-t002_Table 2 Table 2 Static experimental data.

	IOE	My Method	
Error (°)	0.18	0.13	
RMSE (°)	0.15325	0.09065	

sensors-24-05795-t003_Table 3 Table 3 Dynamic experimental data.

	IOE	My Method	
Error (°)	0.38	0.30	
RMSE (°)	0.17535	0.14972	

sensors-24-05795-t004_Table 4 Table 4 System experimental data.

	AHRS	HAMS	
Error (°)	0.3	0.5	
RMSE (°)	0.06798	0.20662	

Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
==== Refs
References

1. Wang J. Tao B. Gong Z. Yu S. Yin Z. A mobile robotic measurement system for large-scale complex components based on optical scanning and visual tracking Robot. Comput.-Integr. Manuf. 2021 67 102010 10.1016/j.rcim.2020.102010
2. Zhang J. Yang Q. Yang L. Hu P. Uncertainty Analysis of Spherical Joint Three-Dimensional Rotation Angle Measurement Appl. Sci. 2023 13 3544 10.3390/app13063544
3. Liu K. Cai C. Li J. Ma L. Sun H. Gao J. Squeezing-enhanced rotating-angle measurement beyond the quantum limit Appl. Phys. Lett. 2018 113 261103 10.1063/1.5066028
4. Price M. Raghunathan S. Curran R. An integrated systems engineering approach to aircraft design Prog. Aerosp. Sci. 2006 42 331 376 10.1016/j.paerosci.2006.11.002
5. Zhang Z. Deng L. Feng J. Chang L. Li D. Qin Y. A survey of precision formation relative state measurement technology for distributed spacecraft Aerospace 2022 9 362 10.3390/aerospace9070362
6. Park J.J. Kim H.S. Song J.B. Safe robot arm with safe joint mechanism using nonlinear spring system for collision safety Proceedings of the 2009 IEEE International Conference on Robotics and Automation Kobe, Japan 12–17 May 2009 3371 3376
7. Lee H.W. Kim D.H. Shin S. Low-Cost Angle Sensor for Robotics Applications Using Plastic Optical Fiber Based on Optical Loss Mechanism Biomimetics 2023 8 567 10.3390/biomimetics8080567 38132506
8. Qu W. Liu T. Luo D. High-Precise Robot Arm Manipulation based on Online Iterative Learning and Forward Simulation with Positioning Error Below End-Effector Physical Minimum Displacement arXiv 2023 abs/2302.13338
9. Zhou X. Zhang H. Feng M. Zhao J. Fu Y. New remote centre of motion mechanism for robot-assisted minimally invasive surgery Biomed. Eng. Online 2018 17 170 10.1186/s12938-018-0601-6 30453983
10. Wang J. Luo Z. Wang Y. Yang B. Assadian F. Coordination control of differential drive assist steering and vehicle stability control for four-wheel-independent-drive EV IEEE Trans. Veh. Technol. 2018 67 11453 11467 10.1109/TVT.2018.2872857
11. Ye Z. Guo H. Ji W. Design and implementation of a MEMS-based attitude angle measuring system for moving objects Proceedings of the 2021 IEEE International Conference on Power, Intelligent Computing and Systems (ICPICS) Shenyang, China 29–31 July 2 2021 145 149
12. Wang M. Yang Y. Hatch R.R. Zhang Y. Adaptive filter for a miniature MEMS based attitude and heading reference system Proceedings of the PLANS 2004. Position Location and Navigation Symposium (IEEE Cat. No. 04CH37556) Monterey, CA, USA 26–29 April 2004 193 200
13. Hung T.N. Suh Y.S. Inertial sensor-based two feet motion tracking for gait analysis Sensors 2013 13 5614 5629 10.3390/s130505614 23628759
14. Wilmes E. de Ruiter C.J. Bastiaansen B.J. Zon J.F.v. Vegter R.J. Brink M.S. Goedhart E.A. Lemmink K.A. Savelsbergh G.J. Inertial sensor-based motion tracking in football with movement intensity quantification Sensors 2020 20 2527 10.3390/s20092527 32365622
15. Kok M. Hol J.D. Schön T.B. Using inertial sensors for position and orientation estimation arXiv 2017 1704.06053
16. Filippeschi A. Schmitz N. Miezal M. Bleser G. Ruffaldi E. Stricker D. Survey of motion tracking methods based on inertial sensors: A focus on upper limb human motion Sensors 2017 17 1257 10.3390/s17061257 28587178
17. Hindle B.R. Keogh J.W. Lorimer A.V. Inertial-based human motion capture: A technical summary of current processing methodologies for spatiotemporal and kinematic measures Appl. Bionics Biomech. 2021 2021 6628320 10.1155/2021/6628320 33859720
18. Sibson B.E. Banks J.J. Yawar A. Yegian A.K. Anderson D.E. Lieberman D.E. Using inertial measurement units to estimate spine joint kinematics and kinetics during walking and running Sci. Rep. 2024 14 234 10.1038/s41598-023-50652-w 38168540
19. Berner K. Cockcroft J. Louw Q. Kinematics and temporospatial parameters during gait from inertial motion capture in adults with and without HIV: A validity and reliability study Biomed. Eng. Online 2020 19 57 10.1186/s12938-020-00802-2 32709239
20. Stančin S. Tomažič S. Angle estimation of simultaneous orthogonal rotations from 3D gyroscope measurements Sensors 2011 11 8536 8549 10.3390/s110908536 22164090
21. Cao J. Zhu X. Wu H. Zhang L. A novel method of measuring spatial rotation angle using MEMS tilt sensors Meas. Sci. Technol. 2017 28 105907 10.1088/1361-6501/aa82a9
22. Wang C. Tu X. Chen Q. Yang Q. Fang T. Movable Surface Rotation Angle Measurement System Using IMU Sensors 2022 22 8996 10.3390/s22228996 36433594
23. Xu X. Tian X. Zhou L. A robust incremental-quaternion-based angle and axis estimation algorithm of a single-axis rotation using MARG sensors IEEE Access 2018 6 42605 42615 10.1109/ACCESS.2018.2859805
24. Fisher C.J. Using an Accelerometer for Inclination Sensing AN-1057, Application note, Analog Devices Analog Devices Norwood, MA, USA 2010 1 8
25. Wagstaff B. Peretroukhin V. Kelly J. Robust data-driven zero-velocity detection for foot-mounted inertial navigation IEEE Sens. J. 2019 20 957 967 10.1109/JSEN.2019.2944412
26. Gamage S.S.H.U. Lasenby J. New least squares solutions for estimating the average centre of rotation and the axis of rotation J. Biomech. 2002 35 87 93 10.1016/S0021-9290(01)00160-9 11747887
27. Suh Y.S. Orientation estimation using a quaternion-based indirect Kalman filter with adaptive estimation of external acceleration IEEE Trans. Instrum. Meas. 2010 59 3296 3305 10.1109/TIM.2010.2047157
28. Sabatelli S. Galgani M. Fanucci L. Rocchi A. A double-stage Kalman filter for orientation tracking with an integrated processor in 9-D IMU IEEE Trans. Instrum. Meas. 2012 62 590 598 10.1109/TIM.2012.2218692
29. Seel T. Raisch J. Schauer T. IMU-based joint angle measurement for gait analysis Sensors 2014 14 6891 6909 10.3390/s140406891 24743160
