Get dt for numerical integration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get dt for numerical integration

668 Views
aminesedki_as
Contributor I

I want to implement a complementary filter for IMU data fusion than i can't see how we can get the time delay after each data sampling this time will be used for gyroscope numerical integration (dt), i want to know also if there is a function in MCUXpresso API that could help me.

Thanks for you.

Sincerely.   

Labels (1)
0 Kudos
4 Replies

574 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Dear aminesedki.as@gmail.com‌,

 Could you let me know which MCU are you using?

Best Regards,
Alexis Andalon

0 Kudos

574 Views
aminesedki_as
Contributor I

Hello,

I use the a TWR-K60D100M which include a Kinetis K60 32-bit MCU.

Thanks for your quick reaction.

0 Kudos

574 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Dear Amine,

If you only need certain delay between the sampling you could try using a timer to do it. Maybe the FlexTimer examples could help with it.

Also the using the PDB module could be a good option for it.

You can find examples for this two modules in the SDK.

I hope this helps you.

Best Regards,

Alexis Andalon

0 Kudos

574 Views
aminesedki_as
Contributor I

Dear Alexis,

Thanks for your quick reaction, i will try this two modules.

Regards,

Amine Sedki

0 Kudos