betaflight / betaflight-configurator

Cross platform configuration tool for the Betaflight firmware
GNU General Public License v3.0
2.49k stars 890 forks source link

Blackbox estimated data logging time #3988

Open Remleyfpv opened 3 months ago

Remleyfpv commented 3 months ago

Is your feature request related to a problem? Please describe

It would be nice to get an estimated logging time in the blackbox section of BF configurator. So that the user will now how long he can tune before blackbox is full

Describe the solution you'd like

A simpel textbox in the betaflight config window that calculates the datarate (would be cool to see that too in mb/s) of the blackbox logging and looks at the size left of the onboard blackbox storage. And then calculates the estimated logging time.

Describe alternatives you've considered

calculating it myself but thats a hassle with the new optional logging points

Other information

No response

YarosMallorca commented 3 weeks ago

I'm going to look into this. Does anyone know how to calculate the space per sample when given a debug log mode?

haslinghuis commented 3 weeks ago

Guess this would depend on logging rate, perhaps number of debug fields in the debug and maybe gyro and pid loop time. Flash device speed (NOR / NAND) and driver optimization also matters for the timing part. It is also possible to disable certain data included in the log reducing size.