Lua Scripts on 9xtreme

Post Reply
kaznad
Posts: 26
Joined: Thu Oct 15, 2015 2:34 am
Country: -

Lua Scripts on 9xtreme

Post by kaznad » Fri Feb 05, 2016 4:22 am

Hi guys,

I am wondering if it is possible to use Lua Scripts on the 9xtreme with ersky9x? I bought an anysense telemetry module and this module has lua scripts made for Taranis. https://github.com/cemizm/TaranisLuaScripts I am wondering if I can use it for the 9xtreme as well?

Also it has been some time since I got the 9xtreme, has there been any firmware updates? I have not updated since I got it?

Thanks a lot guys.

s_mack
Posts: 879
Joined: Thu Dec 29, 2011 6:11 am
Country: -

Re: Lua Scripts on 9xtreme

Post by s_mack » Fri Feb 05, 2016 4:33 am

I personally have no idea what a Lua script is so I can't answer that.

Yes, there have been updates. You can return to the product page and check the "updating firmware" tab for details.

kaznad
Posts: 26
Joined: Thu Oct 15, 2015 2:34 am
Country: -

Re: Lua Scripts on 9xtreme

Post by kaznad » Fri Feb 05, 2016 4:58 am

s_mack wrote:I personally have no idea what a Lua script is so I can't answer that.

Yes, there have been updates. You can return to the product page and check the "updating firmware" tab for details.
Thanks for the firmware info.

I am new to LUA scripts as well. Just heard of it when I got the anysense telemetry module. I think it is used in OpenTX. http://www.open-tx.org/lua-instructions.html

Is there any way to make the telemetry screen show more than 6 values in one screen? Thanks.

User avatar
jhsa
Posts: 17921
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Lua Scripts on 9xtreme

Post by jhsa » Fri Feb 05, 2016 6:41 am

Lua Scripts currently not supported in ersky9x.
Download the latest release version from:

www.er9x.com

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
MikeB
9x Developer
Posts: 15650
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Lua Scripts on 9xtreme

Post by MikeB » Fri Feb 05, 2016 11:07 pm

Using the large characters there isn't really any room on the display for more than 6 items.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!


Testo
Posts: 20
Joined: Tue Oct 20, 2015 6:59 pm
Country: -

Re: Lua Scripts on 9xtreme

Post by Testo » Fri Nov 18, 2016 7:06 am

Could you please rethink that decision? There are so many great and helpful tools, for example PID Tuning on Quadcopters or even changing channel and power of video transmitters. I think the screen is big enough, look at the radio setup tab how much there is written. It would be so awesome to see LUA Script support on 9Xtreme.

Please make the 9X great again :P

dasfliege
Posts: 8
Joined: Wed Nov 30, 2016 3:53 pm
Country: -

Re: Lua Scripts on 9xtreme

Post by dasfliege » Mon Apr 17, 2017 2:24 pm

Hey Mike

I asked you in this Thread: viewtopic.php?t=8665
for Smartaudio Support to adjust Unify and Tramp VTX through the 9x. You asked for further details to implement. Actually, i think you dont have to implement Smartaudio itself, but just a functionality to port LUA Scripts from opentx. Smartaudio Support is implemented in Betaflight, Raceflight and KISS since the newer versions. All we need, is that we can use LUA Scripts zu trigger the FC to Speak with our VTX...

Any Chance to make it work?

User avatar
jhsa
Posts: 17921
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Lua Scripts on 9xtreme

Post by jhsa » Mon Apr 17, 2017 10:33 pm

And that can't be done without LUA scripts??

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
MikeB
9x Developer
Posts: 15650
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Lua Scripts on 9xtreme

Post by MikeB » Tue Apr 18, 2017 11:58 am

I am looking into adding LUA support. Initially I'm working on the Taranis (more RAM available), to get the LUA code integrated. I have all the LUA code compiling in. I now need to look at how it is scheduled from the main program, how it interfaces to the main program, and how you select a script to run.

This is, however, just one of the enhancements being requested.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

dasfliege
Posts: 8
Joined: Wed Nov 30, 2016 3:53 pm
Country: -

Re: Lua Scripts on 9xtreme

Post by dasfliege » Tue Apr 18, 2017 5:29 pm

jhsa wrote:
Mon Apr 17, 2017 10:33 pm
And that can't be done without LUA scripts??

João
I guess its the easiest way to implent it to ersky9x, programming wise...

dasfliege
Posts: 8
Joined: Wed Nov 30, 2016 3:53 pm
Country: -

Re: Lua Scripts on 9xtreme

Post by dasfliege » Tue Apr 18, 2017 5:30 pm

MikeB wrote:
Tue Apr 18, 2017 11:58 am
I am looking into adding LUA support. Initially I'm working on the Taranis (more RAM available), to get the LUA code integrated. I have all the LUA code compiling in. I now need to look at how it is scheduled from the main program, how it interfaces to the main program, and how you select a script to run.

This is, however, just one of the enhancements being requested.

Mike.
Thanks again Mike, for the amazing effort you put in this project! Im sure you will master the challenge ;-)

User avatar
jhsa
Posts: 17921
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Lua Scripts on 9xtreme

Post by jhsa » Tue Apr 18, 2017 5:36 pm

dasfliege wrote:
Tue Apr 18, 2017 5:29 pm

I guess its the easiest way to implent it to ersky9x, programming wise...
I believe that to write scripts we need at least some basic programming knowledge? I don't think many of us can do it, so, not that easy.. :)

Please note that I'm not against it, it would be a good addition just like many other features.. If we don't want,or don't know how to, we don't have to use it :)

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

dasfliege
Posts: 8
Joined: Wed Nov 30, 2016 3:53 pm
Country: -

Re: Lua Scripts on 9xtreme

Post by dasfliege » Tue Apr 18, 2017 5:56 pm

jhsa wrote:
Tue Apr 18, 2017 5:36 pm


I believe that to write scripts we need at least some basic programming knowledge? I don't think many of us can do it, so, not that easy.. :)


João
You can download common LUA scripts for OpenTX like the one to adjust tramp/unify or PIDs everywhere. So if we make OpenTX LUAs working on ersky9x, there is no need to have programming skills ;-)

User avatar
jhsa
Posts: 17921
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Lua Scripts on 9xtreme

Post by jhsa » Tue Apr 18, 2017 6:52 pm

OpenTX and Ersky9x are quite different. I doubt you would have to do only minor adjustments to the existing scripts ;) :)

I hope I'm wrong though..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
MikeB
9x Developer
Posts: 15650
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Lua Scripts on 9xtreme

Post by MikeB » Tue Apr 18, 2017 10:49 pm

The most likely differences are the display size, although now the QX7 has appeared, a script for that may well work OK.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
MikeB
9x Developer
Posts: 15650
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Lua Scripts on 9xtreme

Post by MikeB » Sat May 27, 2017 6:35 pm

I have some progress to report!
I've been porting the LUA code to ersky9x for the Taranis (same processor as the 9Xtreme). Today, I got a standalone script running, so I have the basics in place. I only have standalone scripts available, and a very limited number of interface functions implemented.
With this in place, I should be able to add a lot more fairly easily, and it should compile into the 9Xtreme, which I will sort next.

Mike.

Edit: Compiled for the 9Xtreme and the same standalone script worked!
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
MikeB
9x Developer
Posts: 15650
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Lua Scripts on 9xtreme

Post by MikeB » Tue May 30, 2017 10:55 pm

I've posted "d2" test version, more details on LUA support are here: viewtopic.php?f=7&t=10230.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

Post Reply

Return to “9Xtreme upgrade board”