Skip to content

initial support for fixed-point data for sensors#3442

Merged
jerpelea merged 2 commits intoapache:masterfrom
raiden00pl:sensors_fixed
May 6, 2026
Merged

initial support for fixed-point data for sensors#3442
jerpelea merged 2 commits intoapache:masterfrom
raiden00pl:sensors_fixed

Conversation

@raiden00pl
Copy link
Copy Markdown
Member

@raiden00pl raiden00pl commented Mar 29, 2026

Summary

apps part for apache/nuttx#17408

  • system/sensorscope: support for fixed16 data
  • system/uorb: DEBUG_UORB depends on float data

Impact

initial support for fixed16 sensor data

Testing

apache/nuttx#17408 (comment)

@raiden00pl raiden00pl marked this pull request as ready for review April 30, 2026 07:02
@raiden00pl raiden00pl changed the title WIP: initial support for fixed-point data for sensors initial support for fixed-point data for sensors Apr 30, 2026
raiden00pl added 2 commits May 5, 2026 14:28
system/sensorscope: support for fixe16 data

Signed-off-by: raiden00pl <raiden00@railab.me>
DEBUG_UORB depends on float data, FIXED16 not supported

Signed-off-by: raiden00pl <raiden00@railab.me>
Copy link
Copy Markdown
Contributor

@cederom cederom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @raiden00pl nice work! :-)

We may want to consider DEBUG_UORB also supporting fixed point variant? :-)

@jerpelea jerpelea merged commit 783957d into apache:master May 6, 2026
41 checks passed
@raiden00pl
Copy link
Copy Markdown
Member Author

raiden00pl commented May 6, 2026

@cederom there is no printf support for fixed point. The only way is to convert fixed-point to float. This contradicts the idea of ​​introducing fixed points for sensors (getting rid of floats), but for debugging purposes, it makes sense and can be useful.

EDIT: or maybe we should support fixed point in printf as not standard extention

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants