RRF configuration using object model notation
-
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
-
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.
-
@fcwilt, think of all the comments it will save.
-
@zapta said in RRF configuration using object model notation:
@fcwilt, think of all the comments it will save.
True enough.
-
@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?
-
I was a programmer for 30+ years.
Lots and lots of comments, more comments than code.
Frederick
-