-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added FFT plots for accelerometer, gyro and rate setpoints #194
base: main
Are you sure you want to change the base?
Conversation
In current PX4 we have |
Would it be interesting to plot the FFT for some of these topics before and after filtering? |
|
Agreed to have both raw and filtered data, would be really helpful for filters tuning. However we are in a weird situation where the filtering is not happening in the same place in stable and master at the moment. From my understanding:
In this PR the log is showing the sensors_combined data, which means it would show the filtered data in stable and the unfiltered data in master. Should we wait for v.1.11 stable release to unify things? Concerning the Dterm:
so making FFT of vehicle_angular_acceleration output would show the filtered data on master, and the unfiltered data on stable. v1.11 stable should also unify things there. |
It would be great to use FIFO for raw data @bkueng , as I understand we would have much higher sampling rate? The FFT would then provide much more info (see https://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem ). The FIFO plots don't appear when I run the stable release on fmuv5 (CUAV nano). I tried looking into past PRs to see the state of things but couldn't find clear info. What is the state of FIFO in stable/master/v1.11 upcoming release for the fmuv5 boards? Do you need to enable it manually on stable? |
You'll have to use master for the fifo topics, and add them to the log - it's a bit more involved as logging rate becomes exceedingly high, and I'll have to do some changes to the logger to make it generally usable. |
Added new FFT plots for the accelerometer and gyro raw data in order to better visualise the effect of notch and lowpass filters.
Also added a FFT for the rate setpoints data. Not convinced of its utility yet, the reasoning was to provide additional insights of the outputs of the rate controller.
In the future I would like to also have a Dterm FFT plot but that will require a PR to have it logged in the main stack.