summaryrefslogtreecommitdiff
path: root/nuttx/TODO
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-12-29 07:25:44 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-12-29 07:25:44 -0600
commit4bd30cfa891c06cf484fc91fc2739d5438097163 (patch)
treeb55ecee09f521b63e5fe8e765416afff64dfaec0 /nuttx/TODO
parentc48eb9ed0ef3ba69825c66cc13a18297ed94e891 (diff)
downloadpx4-nuttx-4bd30cfa891c06cf484fc91fc2739d5438097163.tar.gz
px4-nuttx-4bd30cfa891c06cf484fc91fc2739d5438097163.tar.bz2
px4-nuttx-4bd30cfa891c06cf484fc91fc2739d5438097163.zip
Update TODO list
Diffstat (limited to 'nuttx/TODO')
-rw-r--r--nuttx/TODO39
1 files changed, 37 insertions, 2 deletions
diff --git a/nuttx/TODO b/nuttx/TODO
index 3e414ad8e..6e050b791 100644
--- a/nuttx/TODO
+++ b/nuttx/TODO
@@ -1,4 +1,4 @@
-NuttX TODO List (Last updated November 29, 2014)
+NuttX TODO List (Last updated December 29, 2014)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This file summarizes known NuttX bugs, limitations, inconsistencies with
@@ -17,7 +17,7 @@ nuttx/
(6) Binary loaders (binfmt/)
(13) Network (net/, drivers/net)
(4) USB (drivers/usbdev, drivers/usbhost)
- (10) Libraries (libc/, )
+ (11) Libraries (libc/, libm/)
(11) File system/Generic drivers (fs/, drivers/)
(8) Graphics subystem (graphics/)
(1) Pascal add-on (pcode/)
@@ -1140,6 +1140,41 @@ o Libraries (libc/)
Status: Open
Priority: Medium (this might important to someone).
+ Title: LIBM INACCURACIES
+ Description: "..if you are writing something like robot control or
+ inertial navigation system for aircraft, I have found
+ that using the toolchain libmath is only safe option.
+ I ported some code for converting quaternions to Euler
+ angles to NuttX for my project and only got it working
+ after switching to newlib math library.
+
+ "NuttX does not fully implement IEC 60559 floating point
+ from C99 (sections marked [MX] in OpenGroup specs) so if
+ your code assumes that some function, say pow(), actually
+ behaves right for all the twenty or so odd corner cases
+ that the standards committees have recently specified,
+ you might get surprises. I'd expect pow(0.0, 1.0) to
+ return 0.0 (as zero raised to any positive power is
+ well-defined in mathematics) but I get +Inf.
+
+ "NuttX atan2(-0.0, -1.0) returns +M_PI instead of correct
+ -M_PI. If we expect [MX] functionality, then atan2(Inf, Inf)
+ should return M_PI/4, instead NuttX gives NaN.
+
+ "asin(2.0) does not set domain error or return NaN. In fact
+ it does not return at all as the loop in it does not
+ converge, hanging your app.
+
+ "There are likely many other issues like these as the Rhombs
+ OS code has not been tested or used that much. Sorry for not
+ providing patches, but we found it easier just to switch the
+ math library."
+
+ Ref: https://groups.yahoo.com/neo/groups/nuttx/conversations/messages/7805
+Status: Open
+Priority: Low for casual users but clearly high if you need precision
+ math libraries.
+
o File system / Generic drivers (fs/, drivers/)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^