FrSkyRC / ETHOS-Feedback-Community

Feedback & suggestions are welcomed here for ETHOS by FrSky
187 stars 84 forks source link

developer / deploy options #4372

Open robthomson opened 1 month ago

robthomson commented 1 month ago

Ok.. so ethos has a developer tool.

It would be nice to extend this to have a pre-run and post run script (profile) when you go in and out of developer mode.

This could help a dev by allowing him to write a shell script that deploys his dev tree on the pc - direct to the radio.. then switches to debug mode.

strgaltdel commented 1 month ago

what do you mean by "dev tree", your script folder and the luas which you are working on?

(in my case) most of the development is done on the sim. devt-tool is used when "realtime processing" with regard to telemetry / user input must be tested. then the actual files are copied manually only once.

my workflow by using the tool is to edit the lua files on the tx directly (notepad++ & VS Code keep the files even in "volume dismounted" state) so no "copy files" between notebook <> tx after some changes is needed.

robthomson commented 1 month ago

Ok.. so first and formost.

What is "devt-tool" ?

The reason I raise this request is because when dealing with complicated git repo's its often easier to develop on the git repo -allowing lots of incremental updates to be done as git commits.. then to 'sync' to either thye simulator or the radio for testing.

A prerun/postrun script would be usefull in this scenario (or even a util to switch the mode of the radio) to essentially mean you can do a 1 click sync from a local git repo - to the simulator source.

Naturally this could then be extended to do things like:

etc

strgaltdel commented 1 month ago

btw "one click repo-sync /commit" is supported by vs code . typical use case when i develop "on sim" there is a git-addon for vs code..

robthomson commented 1 month ago

Vs ode.. Bah.. I play with vim :)