VladimirP1 / firefly-resampler

3 stars 0 forks source link

After running the resampler, how do I use the output csv in Gyroflow? #1

Open seanmavley opened 2 years ago

seanmavley commented 2 years ago

Specifically the part below. image

Footage recorded with Firefly x Lite FPV (firmware V3.0, in 4K60fps, with Gyro log enabled). I understand the logging isn't perfect, and the resampler helps filling in the gaps.

After running the resampler, what next?

thanks

VladimirP1 commented 2 years ago

So if the camera is like this (when you look at it from the lens side):

------------------
|   O            |
|                |
|                |
------------------

then: If you added the --flip-xy flag, then Rotate video: None. If NOT, then Rotate video: 180.

The log file type should be Blackbox IMU log

Camera angle: 0

Low pass, you can experiment, I do not exactly know what's better

VladimirP1 commented 2 years ago

There are two more-or-less working branches: main and denoise-and-interp.

The code in main is not very explainable, I just tried fitting some curves on my data with regularized least squares and it gave some results.

The code in denoise-and-interp searches for four high frequency peaks (likely motor noise) and removes them from the data and then interpolates the missing points using simple linear interpolation.

I am not sure which one is better

seanmavley commented 2 years ago

Thanks for the explanation.

I tried the denoise-and-interp branch. Followed the other steps. Syncing a 2 minute 39 minutes video with the CSV from the firefly after resampling, gets me this result.

For a result like this, how good or bad is it?

image