OpenI6X / opentx

OpenTX for FlySky FS-i6X
GNU General Public License v2.0
149 stars 40 forks source link

Lua script implementation #342

Closed eksperymento closed 1 year ago

eksperymento commented 1 year ago

Is it possible to run INAV,Yapu lua scripts on this firmware?

ajjjjjjjj commented 1 year ago

Lua is not possible on i6X. The only way is to port it to C or C++, like it is with elrs config.

psicho100pro commented 1 year ago

Hi @eksperymento , maybe this is what @FRPProject is trying to do, I don't know. I'm trying something too. I've never worked in C, I'm slow and busy elsewhere. So far, the real and serious limitation is memory, it is possible that it will not even succeed. Some limited form maybe yes. So far I only have a sketch of the drawing and the mathematical basis of the artificial horizon. I can't handle the automatic assignment of sensors with my knowledge yet.

FRPProject commented 1 year ago

@eksperymento @psicho100pro @ajjjjjjjj

A few weeks back, I started with a similar idea of making the INAV widget because I was very excited about the "Hello World!" feature of OpenI6X (See: https://discord.com/channels/973289741862727741/973289742588321844/1056794523495321641). (I believe lots of people want to help out with the development of the OpenI6X project but don't know how/where to start). I think @ajjjjjjjj did a great job of triggering folks' initiative to build their own widget via the "Hello World" feature. Thanks to @ajjjjjjjj support on OpenI6X Discord, I learned about Docker and CircleCI to compile my very first hardware firmware using GitHub online editor. I am still very new to all of this but glad that I took the initiative😅

However, like many others, I found the limited memory space (and the fact that there is no Lua compiler); So, with my limited time and experience in C/(hardware programming/GitHub/...), I shortly came to the conclusion that it's best for me to at least finish a simple utility tool I wanted to have on my radio: image (Press OK-> centers the HOME position, Up/down key-> changes the plot x/y positive directions). (See: https://discord.com/channels/973289741862727741/973290217266118677/1060291095138939002)

psicho100pro commented 1 year ago

@ajjjjjjjj I have to put my work in a form where I won't be ashamed of it and then share it. Until I really don't know what to do next.

Ultraexpert commented 1 year ago

An inav lua flavor would be nice