|
1 | 1 | from __future__ import annotations |
2 | 2 |
|
3 | | -from typing import Any |
| 3 | +from typing import Any, Self |
4 | 4 |
|
5 | 5 | import numpy as np |
6 | 6 | from numba import njit |
@@ -451,7 +451,7 @@ def update( |
451 | 451 | f_imu: ArrayLike, |
452 | 452 | w_imu: ArrayLike, |
453 | 453 | degrees: bool = False, |
454 | | - ) -> "StrapdownINS": # TODO: Replace with ``typing.Self`` when Python > 3.11: |
| 454 | + ) -> Self: |
455 | 455 | """ |
456 | 456 | Update the INS states by integrating the *strapdown navigation equations*. |
457 | 457 |
|
@@ -950,7 +950,7 @@ def update( |
950 | 950 | head_degrees: bool = True, |
951 | 951 | g_ref: bool = False, |
952 | 952 | g_var: ArrayLike | None = None, |
953 | | - ) -> "AidedINS": # TODO: Replace with ``typing.Self`` when Python > 3.11 |
| 953 | + ) -> Self: |
954 | 954 | """ |
955 | 955 | Update/correct the AINS' state estimate with aiding measurements, and project |
956 | 956 | ahead using IMU measurements. |
@@ -1190,7 +1190,7 @@ def update( |
1190 | 1190 | degrees: bool = False, |
1191 | 1191 | pos_var: ArrayLike = np.array([1e6, 1e6, 1e6]), |
1192 | 1192 | vel_var: ArrayLike = np.array([1e2, 1e2, 1e2]), |
1193 | | - ) -> "VRU": # TODO: Replace with ``typing.Self`` when Python > 3.11 |
| 1193 | + ) -> Self: |
1194 | 1194 | """ |
1195 | 1195 | Update/correct the VRU's state estimate with pseudo aiding measurements |
1196 | 1196 | (i.e., zero velocity and zero position with corresponding variances), and |
@@ -1325,7 +1325,7 @@ def update( |
1325 | 1325 | head_degrees: bool = True, |
1326 | 1326 | pos_var: ArrayLike = np.array([1e6, 1e6, 1e6]), |
1327 | 1327 | vel_var: ArrayLike = np.array([1e2, 1e2, 1e2]), |
1328 | | - ) -> "AHRS": # TODO: Replace with ``typing.Self`` when Python > 3.11 |
| 1328 | + ) -> Self: |
1329 | 1329 | """ |
1330 | 1330 | Update/correct the AHRS' state estimate with pseudo aiding measurements |
1331 | 1331 | (i.e., zero velocity and zero position with corresponding variances), and |
|
0 commit comments