Skip to content

Blackbox rates below 1/128 are not displayed properly #2581

@OlivierC-FR

Description

@OlivierC-FR

Something I've notice for a long time now, the display in the selectbox is wrong for denoms > 128.
I set my blackbox logging rates rather slow, since I need these datas only for OSD overlay purpose, the display in the selectbox is wrong for denoms > 128.
And additionally, for "exotic" values like 384 (to get 1 sample per 5 seconds approx.), the time between samples is unstable, but that's on the INAV side of things.

See below, for 1/256 the selectbox is empty, and for 1/384 it looks like a signed 16 bits overflow.

Maybe it would be simpler and fail-proof to just have 2 fields, for blackbox_rate_num and blackbox_rate_denom ?
And also display the final rate of logging in milliseconds or Hz ?
Because it's not so easy to calculate, since the looptime can vary.

blackbox_rate_denom = 256

Image Image Image

blackbox_rate_denom = 384

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions