Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    How many decimal places of precision does RRF use in its calculations?

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    2
    3
    687
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • botundefined
      bot
      last edited by

      I've noticed, for example, that when I input a delta rod length of 439.246 mm, the returned value when I send m665 is 439.25. Is the duet actually ignoring the last decimal place for calculations, or simply rounding for display?

      *not actually a robot

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        It's rounding for display. The floating point calculations are done in single precision floating point, so 24 bits of precision. The integer calculations used in step generation are done mostly using 32 bits, with 64 bits where necessary.

        Let me know if you find any figures that need to be displayed with more decimal digits.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • botundefined
          bot
          last edited by

          Perfect, thanks for the clarification!

          I don't think it's essential to have m665 return more precise values, but it might be a good feature to have so it isn't confusing for some people. It was slightly confusing for me, and I think I did end up inputting the rounded up value into config.g rather than .246 (I mean, 4 microns is not much :P)

          *not actually a robot

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA