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

RRF configuration using object model notation

Scheduled Pinned Locked Moved
Firmware wishlist
3
6
591
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.
  • undefined
    zapta
    last edited by zapta 27 Aug 2021, 17:51

    TL;DR, allow RRF configuration using a human friendly object model notation.

    RRF has now a nice object model and format that allows humans to easily read its state

    https://duet3d.dozuki.com/Wiki/Object_Model_of_RepRapFirmware

    However, writing to the object model (e.g. in config.g) is still done with cryptic gcode based setters.

    Being able to also configure with object model notation would make RRF configuration more intuitive and less error prone. Here is one example how this can be done, using the indented block construct currently used for conditions and loops:

    M???
    move.axes [
    {
    "letter": "X",
    "max": 200,
    "min": 0,
    "visible": true
    },
    {
    "letter": "Y",
    "max": 200,
    "min": 0,
    "visible": true
    },
    ]

    EDIT: Some ideas may be borrowed from GCL. It's a similar language to construct structured configurations but with more bells and whistles https://gcl.readthedocs.io/en/latest/introduction.html#vision

    undefined 1 Reply Last reply 27 Aug 2021, 18:01 Reply Quote 0
    • undefined
      fcwilt @zapta
      last edited by 27 Aug 2021, 18:01

      @zapta

      Way too much typing.

      If that was an alternate way fine but don't force everyone to generate that much code.

      Just my 2 cents - well given inflation maybe that should be 4 cents.

      Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

      undefined 1 Reply Last reply 27 Aug 2021, 18:55 Reply Quote 0
      • undefined
        zapta @fcwilt
        last edited by 27 Aug 2021, 18:55

        @fcwilt, think of all the comments it will save.

        😉

        undefined undefined 2 Replies Last reply 27 Aug 2021, 18:56 Reply Quote 1
        • undefined
          fcwilt @zapta
          last edited by 27 Aug 2021, 18:56

          @zapta said in RRF configuration using object model notation:

          @fcwilt, think of all the comments it will save.

          😉

          True enough.

          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

          1 Reply Last reply Reply Quote 0
          • undefined
            engikeneer @zapta
            last edited by 27 Aug 2021, 22:45

            @zapta said in RRF configuration using object model notation:

            @fcwilt, think of all the comments it will save.

            😉

            Wait, you guys are commenting your gcode? 😛

            1_0VaTwYF3RdMFp1PjY_1NqA@2x.jpeg.jpg

            E3D TC with D3Mini and Toolboards.
            Home-built CoreXY, Duet Wifi, Chimera direct drive, 2x BMG, 300x300x300 build volume
            i3 clone with a bunch of mods

            undefined 1 Reply Last reply 28 Aug 2021, 01:18 Reply Quote 5
            • undefined
              fcwilt @engikeneer
              last edited by 28 Aug 2021, 01:18

              @engikeneer

              I was a programmer for 30+ years.

              Lots and lots of comments, more comments than code.

              Frederick

              Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

              1 Reply Last reply Reply Quote 0
              • undefined zapta referenced this topic 9 Apr 2022, 13:42
              6 out of 6
              • First post
                6/6
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA