Raphael Coeffic and Raphael Coeffic
86d1ca4364
Reorganize module type/subType/rfProtocol
2022-03-24 10:40:17 +01:00
Peter Feerick and GitHub
2929f1aca9
fix: Disable LUA GV funcs if GVARS=NO build ( #1645 )
...
Compile option breakage from #1602
2022-03-01 08:38:20 +10:00
Jesper Frickmann and GitHub
0391174e06
fix: Lua get/setGlobalVariable not honoring flight mode setting ( #1602 )
...
When GV was set to e.g. `FM0` , `setGlobalVariable` would change it to own value. Now it works as it should
2022-02-27 08:46:37 +10:00
rotorman and Raphael Coeffic
89517d8bd8
Use ETX instead of OTX (also as a file extension).
2021-12-31 10:53:08 +01:00
Peter Feerick and GitHub
362a8e435f
Add filename to lua model.getInfo() ( #1132 )
...
* Add filename to lua `model.getInfo()`
* Make `getModelNumberStr()` globally available
* Move variable extern
* Move constexpr to header, remove externs
* Perhaps .cpp should include its OWN header
2021-11-25 10:38:51 +11:00
rotorman and Risto
fc2142ec78
Changed uniformly to EdgeTX boiler plate (also added boiler for files that were missing it).
2021-10-02 14:22:01 +02:00
Raphael Coeffic
56542bf7e8
Some fixes for simu
2021-07-31 17:31:50 +02:00
Raphael Coeffic
b0fb80b264
ZChar nightmare / take 2
2021-06-09 09:24:48 +02:00
Raphael Coeffic
493b9aaedc
Fixes issue with model LUA API strings
2021-06-04 20:43:02 +02:00
Raphael Coeffic and Raphael Coeffic
6d490bddf0
Sensors don't use ZCHAR in 2.4
...
Resolves #97
2021-06-02 11:19:11 +02:00
Raphael Coeffic
2f5b522413
Merge branch '2.3' into 2.4
2021-05-16 12:55:21 +02:00
c06b789f5c
Multi module config support ( #8438 )
...
* Multi module configuration
Co-authored-by: Pascal Langer <pascal_langer@yahoo.fr >
2021-05-05 15:46:29 +02:00
Raphael Coeffic
2f5dd1d4e3
modelDefault() becomes setModelDefaults()
2021-04-09 15:10:11 +02:00
Raphael Coeffic
3464d0d109
clearInputs() has been moved out of defaultInputs()
...
But we should keep a consistent behaviour in the LUA API.
2021-04-09 08:09:50 +02:00
Bertrand Songis
72feef3911
All my comments from the PR fixed. Still missing the Companion part
2021-02-01 23:02:52 +01:00
Bertrand Songis
a02bf3aa0c
Merge with latest 2.3
2021-01-12 17:16:15 +01:00
Jesper Frickmann and GitHub
a9179d1357
Updated documentation for getSensor ( #8161 )
2020-12-13 08:19:31 +01:00
Jesper Frickmann and 3djc
6ba4187381
Added model.resetSensor(sensor) function
...
Issue #7562
2020-12-10 13:33:34 +01:00
3djc
19b4c687ee
cosmetics
2020-12-09 18:28:44 +01:00
Jesper Frickmann and GitHub
b320e9f884
Added model.resetSensor(sensor) function
...
Issue #7562
2020-12-03 19:53:34 -05:00
87cd9047b1
2.4 continued ( #8092 )
...
Quite a bit of work on 2.4
Co-authored-by: 3djc <Th1sisfmyofmyo>
2020-11-14 14:55:37 +04:00
3djc and GitHub
099d5cb30c
Fix insertMix ( #8066 )
2020-10-30 17:00:17 +01:00
Bertrand Songis
42a3198568
Merge with latest 2.3
2020-10-07 21:01:45 +02:00
3djc and GitHub
fcedcb9c56
LUA improvement ( #7878 )
...
Add FM handling to LUA
2020-08-28 17:05:40 +02:00
Bertrand Songis
bddccb9765
Merge with latest 2.3
2020-05-30 11:57:03 +02:00
3djc and GitHub
8ae2f4f782
Multi channels naming tool ( #7538 )
...
Mostly-authored-by: Pascal Langer <planger@mathworks.com >
2020-04-22 19:23:32 +02:00
Bertrand Songis
1d96af49c4
Merge with latest 2.3
2020-03-18 17:09:38 +01:00
3djc
e26abb5650
Fix #7428
2020-03-08 11:54:34 +01:00
Bertrand Songis
6878ae4a9f
Merge with latest 2.3
2020-03-05 10:43:01 +01:00
3djc and GitHub
40d57a8853
Add name handling to LUA timer functions ( #7358 )
...
Add timer name to LUA timer functions
2020-02-06 14:36:21 +01:00
Bertrand Songis
ae548b9814
New UI continued
2019-10-05 19:01:57 +02:00
Bertrand Songis
82577ed621
Module subType fixes
2019-09-03 21:04:37 +02:00
Bertrand Songis
1efd3cbefa
Cosmetics
2019-06-13 17:14:59 +02:00
lshems and Bertrand Songis
747e6131bc
Update api_model.cpp ( #6492 )
...
Added carryTrim to input API's
2019-06-13 17:07:07 +02:00
Bertrand Songis
d5ce54047c
The script for SBEC now searches for a SBEC sensor
2019-04-01 18:48:14 +02:00
3djc
04c95d2fdb
LUA : Add curves to inputs
2018-10-12 07:34:56 +02:00
Arne Schwabe
c99dc375e8
Fix setting x values < 0 for custom curves ( fixes #6026 )
...
Also accept bool for smooth parameter as the documentation suggest
2018-07-13 09:36:30 +02:00
Arne Schwabe
129bbe2198
Fix getcurve reporting 0 as first x value instead of -100
2017-07-07 23:44:23 +02:00
Arne Schwabe
1ae8e40a3f
Fix setCurve not probably working for custom curves
...
ypoints used for x instead of xpoints
2017-07-01 01:55:31 +02:00
Arne Schwabe
2ae0472f76
Minor fixes to lua dua
2017-05-28 09:48:34 +02:00
Arne Schwabe and Bertrand Songis
cd23fedb56
Schwabe/lua set curve ( #4955 )
...
* Implement setCurve for lua
* Bug fixes after actual testing of API
* Fix documentation
* Even more error checking
* Add example code how to use this function
* Silence gcc warnings
* Drop points and start array index at 1 and note about wrong index in getCurve
* Add standard example
* Fixes
* Don’t use an invalid number in example
* fix missing 0
2017-05-28 07:30:43 +02:00
Bertrand Songis and Damjan Adamic
53f55f8e1d
Fixes #4399 : problem getting/setting curve on output with Lua ( #4455 )
2017-02-15 21:25:08 +01:00
Damjan Adamic
be61e07939
Lua documentation update
2017-02-11 19:08:55 +01:00
Damjan Adamic and Bertrand Songis
b493973d7d
Lua: Use incremental GC and also call it for Widgets ( #4369 )
...
Fixes #3885 : Error in Lua Widget options handled better (does not disable entire Lua state)
Disable Lua Widget if any of its functions has error.
2017-02-04 10:58:06 +01:00
Damjan Adamic
2e12b6401f
Re #3719 : documentation updated for model.setLogicalSwitch() - how to set "and" parameter (previous commit was wrong).
2017-01-14 16:18:19 +01:00
Damjan Adamic
85306a0d91
Re #3719 : documentation updated for model.getLogicalSwitch() - how to set "and" parameter.
2017-01-14 16:05:59 +01:00
Damjan Adamic
d6d91b5798
Fixes #4129 : error in lua documentation of model.setGlobalVariable for flight mode parameter
2016-12-16 19:21:38 +01:00
Bertrand Songis
82d6b96f8b
X7D renamed to X7
2016-12-12 07:39:51 +01:00
Damjan Adamic
4233e71954
Lua docs updated
2016-12-11 20:11:56 +01:00
Bertrand Songis and GitHub
d58244ebde
Bsongis/lua interpreter added on x7d ( #3999 )
...
* [X7D] Lua option added (only standalone scripts)
* [X7D] Compilation fix
* [X7D] Compilation fix
* [X7D] Compilation fix
* [X7D] Compilation fix
2016-11-10 21:41:16 +01:00