Raphael Coeffic and Bertrand Songis
35571ad4d1
[LUA] added docs for telemetry push/pop functions ( #4013 )
...
related to #4009
2016-11-10 21:40:37 +01:00
Raphael Coeffic
a315f6702b
lua: allow telemetry buffer availability to be queried
...
When crossfireTelemetryPush() or sportTelemetryPush() is called without arguments, it returns a boolean telling whether or not the output buffer is currently available.
This simplifies the LUA in case SPORT or Crossfire is used as a transport for bigger requests (like MSP/SPORT).
2016-11-09 16:17:54 +01:00
Arne Schwabe and Bertrand Songis
345ea0f3e8
Add constants for LUA telemetry ( #3990 )
...
* Add constants for LUA telemetry
This commit added 896 bytes to flash size which is a significant size. An alternative would to just document the values in the lua telemetry function.
Shortening some of the UNIT names (e.g. UNIT_MW instead of UNIT_milliwatts) or shortening UNIT_ to U_ could save a few bytes but the
* #if 0 ... #endif constants
* horus has 2MB flash
2016-11-06 18:29:10 +01:00
Florent Martel and Bertrand Songis
08148e2e33
Lua setTelemetryValue with optional params ( #3993 )
2016-11-05 13:16:56 +01:00
Bertrand Songis
19789c115c
[Lua] popupConfirmation function added
2016-11-05 12:47:48 +01:00
Bertrand Songis
c52e9be3d5
[XFire] New function added to raise a warning popup
2016-11-02 22:13:45 +01:00
Damjan Adamic and Bertrand Songis
5ba14734cb
Projectkk2glider/gps misc fixes ( #3970 )
...
* Fixed Lua GPS date (year is now kept with four digits)
* * GPS year displayed with two digits
* GPS date/time handling fixes
2016-11-02 13:03:26 +01:00
Florent Martel and Bertrand Songis
450430f22e
Provide getRSSI lua method ( #3976 )
2016-11-02 12:53:07 +01:00
Arne Schwabe and Bertrand Songis
54a9393588
Implement setting sensor values from LUA ( #3977 )
...
* Implement setting sensor values from LUA
* Fix name of lua sensors
2016-11-02 12:48:11 +01:00
Damjan Adamic
37ea272bd4
Replaced all 1900 with TM_YEAR_BASE
2016-10-30 11:35:12 +01:00
3djc
4825ffe2f3
Cosmetics
2016-10-23 14:44:07 +02:00
3djc
cff0b33f4b
Cosmetics
2016-10-23 14:42:59 +02:00
3djc
4f24088719
Enable permanent scripts on Horus
2016-10-23 14:41:05 +02:00
Damjan Adamic and Bertrand Songis
4513cf89f2
Projectkk2glider/fatfs 0.12 ( #3925 )
...
* Re #3815 : Disk cache: Write statistic added. Bigger disk cache. Show disk cache misses in CLI.
* Update to the latest FatFS R0.12b (all existing OpenTX patches have been already applied in upstream, only few ff.h modifications needed for simulator)
* Missing file
* SD card manager: do not show parent dir [..] for root directory
2016-10-18 18:14:17 +02:00
Damjan Adamic
e5a5a6319f
Fixes for lua_exports generation
2016-10-12 21:20:24 +02:00
3djc
1e4470a007
Revert commit 7c6dd36ee1, which was preventing LEFT even when specified
2016-10-08 12:04:48 +02:00
Damjan Adamic
88e1740422
Fixes #3882 : Widget option min an max values were not parsed (resulted in Lua disabled)
2016-10-07 15:18:49 +02:00
3djc
0110578bfe
Improve documentation
2016-10-07 11:21:12 +02:00
3djc
7c6dd36ee1
Ensure default for luaDrawNumber is RIGHT for consistency with 2.1.x
2016-10-07 10:54:54 +02:00
Bertrand Songis
298716189e
Cosmetics
2016-09-15 19:30:54 +02:00
3djc and Bertrand Songis
576c148b9c
Add X12S keypad FIRST events to LUA ( #3801 )
...
* Add X12S keypad FIRST events to LUA
* X9E fix
2016-09-14 18:57:45 +02:00
Bertrand Songis
4a88d3477d
Fixes #3766
2016-09-13 18:31:57 +02:00
3djc
d84fd993c9
Move lua evt param from signed uint8_t to unsigned event_t
2016-09-12 07:20:06 +02:00
Bertrand Songis
cc2c2b094e
[Horus] S.PORT devices update should work (not tested)
...
[Horus] SD Manager files renaming fixed (quick & dirty, I would prefer a popup)
2016-09-05 19:33:06 +02:00
Andre Bernet and GitHub
aaf7f67ebb
Add getRAS to Lua interface ( #3742 )
...
* Add getRAS lua function
* Add warning
* Return nil is case of bad antenna
* Check for valid SWR
* Typo
* Cosmetic
* Clarify that it is 0x33
2016-08-31 23:12:18 +02:00
floaledm
29642e379f
Haptic feedback in lua scripts
2016-08-31 15:01:31 -05:00
Bertrand Songis and Andre Bernet
1d735f2bd3
[X9E/X7D] Rotary encoder navigation speed implemented ( #3724 )
2016-08-27 18:19:44 +02:00
Bertrand Songis
10aefb10db
[X12S] GPS now OK
2016-08-20 16:36:32 +02:00
Bertrand Songis and GitHub
d3ae3c035d
Bsongis/gui refactoring for x7 d ( #3701 )
...
* [X7D] New board added
* Cosmetics
2016-08-18 11:49:16 +02:00
Bertrand Songis
7fbd963b3f
Another big refactoring
2016-08-02 22:15:29 +02:00
Bertrand Songis
400faee588
Refactoring
2016-08-01 20:25:20 +02:00
Bertrand Songis
4b2315f56b
Compilation fix. Massstorage won't use disk cache anymore
2016-07-31 08:10:46 +02:00
Bertrand Songis
51223a5864
No more REV9E and REVPLUS
2016-07-29 14:44:59 +02:00
Bertrand Songis
c97ba2bb83
Warning removed
2016-07-24 13:36:32 +02:00
Bertrand Songis
3faa81d799
[Taranis] It's now possible to use killEvents() on PAGE_LONG in Lua standalone scripts
2016-07-09 12:39:54 +02:00
3djc and Bertrand Songis
2f8effb6d1
Add function name to debug output ( #3647 )
...
* Add function name to debug output
* Better english, hopefully :)
* Possible fix for not trying to run background widgets function when it does not exist
* Typos
2016-07-06 18:41:45 +02:00
Bertrand Songis
38fdae6f1f
Fixes #3609 - ``background()`` function in Lua function scripts
2016-06-22 18:32:51 +02:00
Bertrand Songis and GitHub
53b51cac94
Bsongis/crossfire refactoring ( #3613 )
...
* Crossfire refactoring
* Crossfire script now displaying fields
* Crossfire script now displaying text selection values
2016-06-18 22:16:50 +02:00
Bertrand Songis
900266be4a
[Crossfire] Cosmetics
2016-06-16 15:18:32 +02:00
Bertrand Songis
e50aa21dd2
[Crossfire] Devices parameters script started
2016-06-16 11:53:45 +02:00
Bertrand Songis
9b5b9be50c
[Crossfire] Telemetry packets are bigger
2016-06-15 22:19:10 +02:00
3djc and Bertrand Songis
5a3fc73946
Add scale to lcd.drawBitmap. Scale is like in % (50 divides by two, 200 doubles) ( #3592 )
...
Default scale to 0 to allow DMA in target function (thx Bertrand)
2016-06-12 16:01:05 +02:00
3djc and Bertrand Songis
ac953cdcc8
3djc/document lua bitmaps ( #3588 )
...
* Create lua doc for previously added Horus bitmaps functions
* Cosmetic
2016-06-12 10:52:02 +02:00
Bertrand Songis
862fa5525e
[Crossfire] Upstream link development started
2016-06-11 20:05:51 +02:00
Bertrand Songis
5822cfded1
[Horus] Options in widgets can now have a min and a max defined
2016-06-07 20:35:17 +02:00
Bertrand Songis
231499e191
[Horus] Bitmap class and lcd.drawBitmap() added
2016-05-25 11:48:38 +02:00
Bertrand Songis
7a2c0b3b88
[Horus] Widget::update added to the Lua interface (called when options are modified)
2016-05-21 11:08:01 +02:00
Bertrand Songis
9056e76460
[Taranis] RIGHT attribute added + TELEMETRY page splitted
2016-05-18 21:52:16 +02:00
Bertrand Songis
633af68fa9
[Horus] background function added to widgets
2016-05-18 18:49:06 +02:00
Bertrand Songis
f27a87dea4
toInt16 function added
2016-05-17 23:41:05 +02:00