Comment support for YAML files on the Tx #2140
Replies: 2 comments 1 reply
-
I don't think it is going to be possible in the short term... the yaml is completely re-written every time it syncs with Companion, and also when changes are made to the model, so any comments that are put in will be stripped out. Documenting the file syntax itself is certainly something that will be needed in the future, now that it's actually a format that is human readable. There is also some effort going towards being able to add labels (comments?) to logical switches and special functions that are visible/editable on radio, so that will go somewhat to help with that also. I'm not sure about actual comment blocks though. There is also a desire to have a template blocks - i.e. like you said with the timers... which you can then simply reference in multiple models, and then you can make changes in a single place to common elements. |
Beta Was this translation helpful? Give feedback.
-
Ahh, I understand the problem now.
Labels on LS and SF will be a help, but not much of one if they are limited to a very few characters.
It does not help much block editing, like copying screenData/"telemetry" pages, telemetry sensors,
rates/expo, a block of ls or sf, or all timers from one model to another.
Thanks for responding
Dean
<http://www.rcgroups.com/forums/member.php?u=139391>
<http://www.rcgroups.com/forums/member.php?u=139391> <http://www.rcgroups.com/forums/member.php?u=139391>
<http://openrcforums.com/forum/viewtopic.php?f=25&t=185&sid=86567a7056f8c66cb2a565b2f73df302#wrap>
…________________________________
From: Peter Feerick ***@***.***>
Sent: Sunday, July 17, 2022 5:45 PM
To: EdgeTX/edgetx ***@***.***>
Cc: Dean ***@***.***>; Author ***@***.***>
Subject: Re: [EdgeTX/edgetx] Comment support for YAML files on the Tx (Discussion #2140)
I don't think it is going to be possible in the short term... the yaml is completely re-written every time it syncs with Companion, and also when changes are made to the model, so any comments that are put in will be stripped out.
Documenting the file syntax itself is certainly something that will be needed in the future, now that it's actually a format that is human readable. There is also some effort going towards being able to add labels (comments?) to logical switches and special functions that are visible/editable on radio, so that will go somewhat to help with that also. I'm not sure about actual comment blocks though.
—
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FEdgeTX%2Fedgetx%2Fdiscussions%2F2140%23discussioncomment-3167672&data=05%7C01%7C%7C137aef83516d4d57e94908da6856dd65%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637937019529731946%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=FHNq4cy9YkyGNIiYPJikU1Da0HVtg2R39LlpHgavqQA%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABE6NP56ZMCWHCWTTORS6FLVUSSL7ANCNFSM532QJNNQ&data=05%7C01%7C%7C137aef83516d4d57e94908da6856dd65%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637937019529731946%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BED%2Ff1KK%2Fd1VgQZxaJEHG4OKftyd8qIc6bVM%2Fy1Klbc%3D&reserved=0>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Having comments in a modelx.yml file would be handy for explaining some features that are complex... for me.
It appears to me that comments do not hurt a model yml file, but they get stripped out and do not preserve being stored in The MODELS
folder and selected as the current model.
I went into bootloader mode, plugged the Tx into my PC and modified a model.ylml with a couple of comments then stored it back to the TX SD/MODELS. I could read it back from the tx and the comments were there. But after I exited bootloader mode and selected that model and then shut down the tx and went back to bootloader mode and looked at that model.yml again the comments were gone.
Is this of interest to others as a way to make blocks of yml statements use clear?
I'm envisioning documenting what a block of yml statements do. Then copying them as a method of adding say: 3 timers or dual or triple rates to a new model as a block instead of line by line as in EdgeCompanion or as a bunch of navigation on the tx.
Beta Was this translation helpful? Give feedback.
All reactions