LUA based basic GCS
READ THE WIKI!
Install video: https://youtu.be/FCzwqhODTDI
LUA based basic GCS
License: GNU General Public License v3.0
LUA based basic GCS
READ THE WIKI!
Install video: https://youtu.be/FCzwqhODTDI
Reading parameter is done till success - which is correct.
However writing(setting) parameter is done once, when not succeeded the next command is just parameter read.
Example:
parameter A=100.
changing parameter A to 101 - if successful in first attempt then A=101
when first attempt expires then second attempt is read command so the value refreshes to A=100
Please see video of loading parameters and then trying to change IMAX value.
https://photos.app.goo.gl/qCVz6mQaDvyv3utn8
P.S.
Is it normal to have so many retries in reading and writing parameters ?
Hello is it possible to make it also work for EdgeTX. It does only show a black screen
I am using:
The script fails to establish connection to the FC if GPS sensor with address 0800 is detected.
Debug messages show it sending repeatedly with no response:
TX: 0 - 0800:455F5114
TX: 1 - 4E01:454C4241
TX: 2 - 7802:00000000
Disabling GPS sensor immediately stops the issue.
if modelname_plane_tune.lua exists it will be used instead of global plane_tune.lua
be sure to remove he debug messages from param fetchs when this gets merged into master....bad customer experience
It would be nice to add support for the crsf protocol to this excellent script.
Hi, I guess topic name explains everything. I rolled back to 1.01 and scripts works again.
Regards,
Jacek
Currently only AS calibration is supported..
Something like {"CALIBRATE" , {"Compass", "Airspeed and Baro"}, { {0,1}, {0,0,1} }, cmd_id=241, value=1 },
in plane_commands_1.lua (probably also copter_commands..)
I assume luas are autogenerated, so I didn't make a PR..
I live in Poland where separation symbol for decimal is "," instead of "."
It looks like GUI code relays somehow on decimal symbol in Windows and does not allow to add new parameter unless I change "." to "," in max, min and increment fields.
When I want to change in my param list (lower part of the window) same thing happens - I need to change "." to "," again.
scroll wheel on the Taranis 2019 increments the values of a parameter when you scroll left instead of right. Can this please be reversed?
Not tested on prior tatanis model sorry.
The GUI doesn't work for me, selecting frame fails with could not create SSL/TLS secure channel.
Szczegółowe informacje na temat wywoływania debugowania w trybie JIT (just in time)
zamiast tego okna dialogowego znajdują się na końcu tego komunikatu.
************** Tekst wyjątku **************
System.Net.WebException: Żądanie zostało przerwane: Nie można utworzyć bezpiecznego kanału SSL/TLS.
w System.Net.HttpWebRequest.GetResponse()
w System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
w System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
w System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
w System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
w System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
w System.Xml.XmlTextReaderImpl.OpenUrl()
w System.Xml.XmlTextReaderImpl.Read()
w System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
w System.Xml.XmlDocument.Load(XmlReader reader)
w System.Xml.XmlDocument.Load(String filename)
w LuaGCSGUI.MainForm.updateParameters(Int32 vehicleId)
w LuaGCSGUI.MainForm.toolStripCBVehicle_SelectedIndexChanged(Object sender, EventArgs e)
w System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
w System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
w System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
w System.Windows.Forms.ComboBox.WndProc(Message& m)
w System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Zestawy załadowane **************
mscorlib
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.9232.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
LuaGCSGUI
Wersja zestawu: 1.0.13.0
Wersja Win32: 1.0.13.0
CodeBase: file:///C:/Users/User/Downloads/LuaGCSGUI.exe
----------------------------------------
System.Windows.Forms
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.9195.0 built by: NET481REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.9236.0 built by: NET481REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.9236.0 built by: NET481REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Windows.Forms.resources
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_pl_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
Microsoft.GeneratedCode
Wersja zestawu: 1.0.0.0
Wersja Win32: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.resources
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.resources/v4.0_4.0.0.0_pl_b77a5c561934e089/System.resources.dll
----------------------------------------
mscorlib.resources
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_pl_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
************** Debugowanie w trybie JIT **************
Aby włączyć debugowanie w trybie just in time (JIT), plik .config tej
aplikacji lub komputera (machine.config) musi mieć
wartość jitDebugging ustawioną w sekcji system.windows.forms.
Aplikacja musi być również skompilowana z włączonym
debugowaniem.
Na przykład:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
Gdy debugowanie JIT jest włączone, wszystkie nieobsługiwane wyjątki
są wysyłane do debugera JIT zarejestrowanego na komputerze
i nie są obsługiwane w tym oknie dialogowym.
PS changing locale doesn't help.
Hi,
I tried so hard with several settings to make the Matek H743 FC work with RXSR. Then, I downgraded the RX and TX to the old framework, everything worked well.
I know it's highly unlikely to be an issue in the GCS code. However, I still want to confirm whether is my setting wrong (Serialx_options) for Fport or if the 2.0 firmware is unsupported.
Thanks for your help.
use ARMING_CHECK as the test case...
make a list like this:
None
ALL
ALL but GPS (and GPS config)
ALL but INS
ALL but LOGGING
Happens in 1.01. Checked for "CALIBRATE: Airspeed and Baro" and "REBOOT: Autopilot".
Setting parameters like LIM_PITCH_MAX for example works just fine.
CALIBRATE and REBOOT used to work in 1.01. It got broken probably by updating 4.1dev ArduPlane firmware to newer compilation or by some ArduPlane parameter change, don't know for sure.
Regards,
Jacek
The IMAX values under Throttle Accel and Rate Loiter (same as Velocity XY in MP) in my Jumper T16 Lua GCS default page and Mission Planner (connected to my FC) are 10 times off. Pls see attached 2 screen shots.
The script doesn't remember the "disable msg beep" setting (version 1.0.3 / 28f1213). Please make the script remember the "disable msg beep" setting
After many changes to some of the parameters they refuse to be read from AP, they are still being changed by Yaapu GCS.
The only solution is to power cycle ArduPilot.
Reboot AP from MissionPlanner or from Yaapu GCS reboots AP but does not fix this issue.
Restarting OpenTX radio does not fix this.
LUA GCS 1.03 (downloaded from github at the end of August)
T16 OpenTX 2.3.14, ArduPlane master from 9th Oct .2021
FrSky R9MM with fw ACCST_v20190201 FLEX
connected with SBUS and S.Port
Hi Alex, I hope this thread is still monitored after a long silence.
After I executed the lua GCS, my Jumper T16 displays only the parameter (photo attached) in the Lua GCS after I updated from Open Tx to Edge Tx. The parameters appear one by one as I scroll the Tx wheel. It was working alright before update. Yaapu Lua telemetry script is working.
Pls see the attached photo on the folders/files relevant to the Lua GCS.
Appreciate your help to verify if the files/folders is/are misplaced or missing.
Frankie
I spotted one minor issue with the standard plane_tune.lua script. If your entered parameter value is assigned the minimum value for that field, then ERR_RNG is displayed for this field. If I increment the value even one increment then I get an OK status for this parameter. Drop it back to mim value and ERR_RNG again. This applies to any field configured with min,max,increment type configuration in lua. Setting a value to the max displays OK, so no issue at this end of the range.
This with Ardupilot plane 4.1.0beta4
When trying to select a vehicle type:
Consultez la fin de ce message pour plus de détails sur l'appel du débogage
juste-à-temps (JIT) à la place de cette boîte de dialogue.
************** Texte de l'exception **************
System.FormatException: Le format de la chaîne d'entrée est incorrect.
à System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
à LuaGCSGUI.MainForm.updateParameters(Int32 vehicleId)
à LuaGCSGUI.MainForm.toolStripCBVehicle_SelectedIndexChanged(Object sender, EventArgs e)
à System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
à System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
à System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
à System.Windows.Forms.ComboBox.WndProc(Message& m)
à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Assemblys chargés **************
mscorlib
Version de l'assembly : 4.0.0.0
Version Win32 : 4.8.4420.0 built by: NET48REL1LAST_C
CodeBase : file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
LuaGCSGUI
Version de l'assembly : 1.0.14.0
Version Win32 : 1.0.14.0
CodeBase : file:///C:/Users/Shel/Desktop/FrskyLuaGCS/TOOLS/LuaGCSGUI.exe
----------------------------------------
System.Windows.Forms
Version de l'assembly : 4.0.0.0
Version Win32 : 4.8.4400.0 built by: NET48REL1LAST_C
CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Version de l'assembly : 4.0.0.0
Version Win32 : 4.8.4360.0 built by: NET48REL1LAST_C
CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Version de l'assembly : 4.0.0.0
Version Win32 : 4.8.4390.0 built by: NET48REL1LAST_C
CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Version de l'assembly : 4.0.0.0
Version Win32 : 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Version de l'assembly : 4.0.0.0
Version Win32 : 4.8.4390.0 built by: NET48REL1LAST_C
CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Version de l'assembly : 4.0.0.0
Version Win32 : 4.8.3752.0 built by: NET48REL1
CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Windows.Forms.resources
Version de l'assembly : 4.0.0.0
Version Win32 : 4.8.3752.0 built by: NET48REL1
CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
Microsoft.GeneratedCode
Version de l'assembly : 1.0.0.0
Version Win32 : 4.8.3752.0 built by: NET48REL1
CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
mscorlib.resources
Version de l'assembly : 4.0.0.0
Version Win32 : 4.8.3752.0 built by: NET48REL1
CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
************** Débogage JIT **************
Pour activer le débogage juste-à-temps (JIT), le fichier de configuration pour cette
application ou cet ordinateur (machine.config) doit avoir la valeur
jitDebugging définie dans la section system.windows.forms.
L'application doit également être compilée avec le débogage
activé.
Par exemple :
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
Lorsque le débogage juste-à-temps est activé, les exceptions non gérées
seront envoyées au débogueur JIT inscrit sur l'ordinateur
plutôt que d'être gérées par cette boîte de dialogue.
Matek F405 CTR
R9mm Fport connected using "inverted Fport" pin https://ardupilot.org/copter/docs/common-FPort-receivers.html
Arduplane from https://github.com/yaapu/ardupilot/tree/frsky_telem_bidirectional
endless Loading:
https://www.youtube.com/watch?v=Et8wgduSBB0
Being able to upload presaved waypoint missions would be a really useful addition to this. Not having to have an entire extra laptop with mission planner running just for uploading missions when everything else can be done on the RC.
resolved with latest gui
Hi Alex, In LuaGCS app I get "Invalid input string format (Nieprawidłowy format ciągu wejściowego)" exception error while selecting something in "select your vehicle". Happens with version 1.0.14 and 1.0.13. Didn't happen few month ago on 1.0.13, when I last edited my GCS params.
Text from error window (polish language):
************** Tekst wyjątku **************
System.FormatException: Nieprawidłowy format ciągu wejściowego.
w System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
w LuaGCSGUI.MainForm.updateParameters(Int32 vehicleId)
w LuaGCSGUI.MainForm.toolStripCBVehicle_SelectedIndexChanged(Object sender, EventArgs e)
w System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
w System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
w System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
w System.Windows.Forms.ComboBox.WndProc(Message& m)
w System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Zestawy załadowane **************
mscorlib
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.4400.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
LuaGCSGUI
Wersja zestawu: 1.0.14.0
Wersja Win32: 1.0.14.0
CodeBase: file:///C:/GoogleDrive/modelarstwo/FPV_UAV/ArduMule/yaapu_GCS/TOOLS/LuaGCSGUI.exe
----------------------------------------
System.Windows.Forms
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.4400.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.4360.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.4390.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.4390.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Windows.Forms.resources
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_pl_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
Microsoft.GeneratedCode
Wersja zestawu: 1.0.0.0
Wersja Win32: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
mscorlib.resources
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_pl_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
Hi Alessandro, Thank you for making luagcs workong again on EdgeTX.
I just found the 5th page(xml file) which was customized from the luagcs tool can't be addon as it works fine on OpenTX.
they are ***params_1.lua ***params_1.luac ***params_1.xml
all horus can compile, right? we have defective luac from changes to the lua files
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.