Skip to content

Feature request: support fixed point numbers #89

Description

@gbThreepwood

Some embedded platforms lack support for floating point numbers, and even when floating point is supported there are situations where fixed point has some benefits. Conversion from fixed point to floating point before transmitting over the serial port is an expensive operation that is preferable to avoid.

Currently it would appear that the "Gain" setting on each plot channel is limited to 6 digits after the decimal point. My specific need is a scale factor of 0.00000005960464478 (i.e. a divide by 2^24 = 16777216), which would convert a fixed point Q24 number to floating point.

Ideally a configuration option would allow the user to select the appropriate Q number format (https://en.wikipedia.org/wiki/Q_(number_format)). A quick workaround is to simply support smaller scale factors (more decimals).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions