ImuRelativeAnglesFilter#

class pyCGM2.IMU.imuFilters.ImuRelativeAnglesFilter(imuInstance1: Imu, imuInstance2: Imu, procedure: RelativeImuAnglesProcedure)#

Filter for calculating the relative angles between two IMUs.

Parameters:
  • imuInstance1 (imu.Imu) – The first IMU instance.

  • imuInstance2 (imu.Imu) – The second IMU instance.

  • procedure (RelativeImuAnglesProcedure) – The procedure to compute relative angles between the IMUs.

__init__(imuInstance1: Imu, imuInstance2: Imu, procedure: RelativeImuAnglesProcedure)#

Initializes the ImuRelativeAnglesFilter with the specified IMU instances and relative angles procedure.

Methods

__init__(imuInstance1, imuInstance2, procedure)

Initializes the ImuRelativeAnglesFilter with the specified IMU instances and relative angles procedure.

run()

Executes the filter to calculate relative angles between the two IMU instances.

run()#

Executes the filter to calculate relative angles between the two IMU instances.

Returns:

np.ndarray – The calculated angles between the two IMUs.