raiden00pl commented on issue #17365:
URL: https://github.com/apache/nuttx/issues/17365#issuecomment-3570518237

   > We immediately lose floating point values, so it's no longer possible for, 
say, an accelerometer to measure in m/s^2 unless you only want 1 m/s^2 
resolution. So, all the fields will have to change from SI units to maybe 
something like 0.001 of an SI unit? And we'll need a large enough field, like 
an i32, to represent enough values.
   
   @linguini1  that's why I proposed that we should use fixedpoint math already 
present in NuttX (include/fixedmath.h). In this way, by using a macro to define 
mathematical operations we should be able to create portable code: 
https://github.com/apache/nuttx/issues/10644#issuecomment-2592061754
   
   If any unit already used with float implementation doesn't fit for 
fixedmath, we should change the unit used in float so that both versions of the 
framework use the same one.


-- 
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]

Reply via email to