Skip to content

Kalman filter positional arguments #1

Description

@andteklin
Traceback (most recent call last):
  File "/home/pi/bob-imu/imu-test/angle_test.py", line 147, in <module>
    main()
  File "/home/pi/bob-imu/imu-test/angle_test.py", line 125, in main
    z = sensor_reading(accel_x, accel_y, accel_z, gyro_x, gyro_y, gyro_z, curr_angle)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/bob-imu/imu-test/angle_test.py", line 51, in sensor_reading
    accel_pitch, gyro_pitch = calculate_data_p(accel_x, accel_y, accel_z, gyro_x, gyro_y, gyro_z, angle)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: calculate_data_p() takes 5 positional arguments but 7 were given

This is an error occurring when running #angle_test.py.

Please edit the kalman branch to fix these errors and ensure that you are translating the correct angles.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions