raiden00pl opened a new pull request, #17408: URL: https://github.com/apache/nuttx/pull/17408
## Summary WIP code for fixed-math data type for sensors. All sensor math operations will require modification to use `sensor_data_xxx` macros. At the moment, no sensor is modified to handle this properly. I'll probably choose the easiest sensor to port with a small amount of math operations to provide PoC. Ultimately, all sensor units must be checked to see if the data unit make sense for the b16_t type. Doing this work all at once is a lot of work which I don't want to do, so I suggest introducing this change gradually: 1. introducing a configurable sensor data type and raise compilation error in all sensors that don't support fixed-point data type 2. gradually port sensors to use fixed-point data and remove compilation errors 3. on the app side we need to modify uorb tools to work with fixed-point data. At this moment we can just raise compilation error for fixed-point data type, and add `depends on SENSORS_USE_FLOAT` ## Impact ## Testing -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
