xioTechnologies / Fusion

MIT License
1.01k stars 241 forks source link

Python Implimentatoin #119

Closed gbakerLV closed 1 year ago

gbakerLV commented 1 year ago

I am some what new to this. I am getting an error trying to run in Python
I installed imufusion, and running advanced_example.py in VSCode.

VS Code is having trouble resolving, ahrs_internal_states.acceleration_recovery_trigger and acceleration_recovery (there maybe others). I can follow what you are doing to translate the calls from C to Python and I don't see any discrepancies.

AttributeError: 'imufusion.InternalStates' object has no attribute 'acceleration_recovery_trigger'. Did you mean: 'acceleration_rejection_timer'?

If you could be so kind, to take a quick look. thx

xioTechnologies commented 1 year ago

The problem is that the main branch is currently ahead of the latest release. You need to use the version of advanced_example.py from the latest release, v1.1.2.

xioTechnologies commented 1 year ago

The main branch now matches the latest release, v1.2.0.