hanley6 / IMUSensorModels

This repository contains a C++ class for IMU sensor modeling.
70 stars 29 forks source link

pwelch error #5

Closed ravindraji4 closed 4 years ago

ravindraji4 commented 4 years ago

Dear David, Thank you very much for sharing the code and knowledge.

I encountered an error for Power Spectral Density on 2018b matlab.

image

tried searching google, but unable to solve. Could you please help. Thank you very much in advance. Regards,

hanley6 commented 4 years ago

Hi,

I'm not sure that I have enough information to address this issue, because I don't know what data you have providing the pwelch command. Could you let me know what that data looks like (e.g, its shape)?

Thanks, Dave

ravindraji4 commented 4 years ago

Hello Dave, Thank you very much for your reply. At first I used the dataset you provided; I have no idea why I am having error only with pwelch; whereas the Allan variance works perfectly fine!

Then, I collected my own dataset using the Xsens IMU and it worked. See the following plot

PSD

Do you how we can estimate the Slop of PSD curve for Accelerometer and Gyroscope X-Y-Z axes?

Regards, Ravi

hanley6 commented 4 years ago

Ravi:

That seems odd. I just ran it again on my computer using MATLAB R2016a and I had no problems. However, I am glad that the code runs your data just fine. I do not compute the slope of the PSD curve anywhere in my code. I'm not sure how people usually go about doing that, but I'm sure that there is a method out there.

Best, Dave