Damjan Adamic
eedbf2fbb7
Launchpad files for 2.2.1 release:
...
* dropped support for trusty (Ubuntu 14.04 LTS) since it's QT version 5.2 is too old, we need at least 5.3
* added bionic (Ubuntu 18.04 LTS)
2017-12-17 18:40:25 +01:00
Damjan Adamic and Bertrand Songis
49a63d43b3
Fix some bugs found by Sonar ( #5392 )
...
* Fix some bugs found by Sonar
* Different syntax for NOSONAR
* Switch Sonar badge to proper branch
2017-11-23 23:28:36 +01:00
Damjan Adamic and Bertrand Songis
f0f3e35bf6
Lua memory (de)allocation tracer: ( #5191 )
...
* Lua memory (de)allocation tracer:
Usage:
* turn on: `cmake -DLUA=YES -DLUA_ALLOCATOR_TRACER=YES -DDEBUG=YES -DNANO=NO`
* get debug output and make plot data: `./simu 2>&1 | grep "^LT" | ../radio/util/lua_trace2plot.py > data.plot`
* plot: `gnuplot -e 'set xtics rotate; plot "data.plot" using 2:xtic(1) ; pause mouse close'`
* Changes based on Bertrand comments
2017-11-11 09:41:05 +01:00
Damjan Adamic
69afa9d0f8
Fixes #5302 : added zesty (Ubuntu 17.04) and artful (Ubuntu 17.10) and removed yakkety (Ubuntu 16.10)
2017-11-10 19:23:01 +01:00
Damjan Adamic and Andre Bernet
955d5775cb
Add Lua getUsage() function that returns percent of already used up i… ( #5313 )
...
* Add Lua getUsage() function that returns percent of already used up instructions in current script execution cycle. It can be used to avoid script being killed when doing long lasting tasks (like telemetry logs loading and parsing)
* Compilation fixes
* Doc fix
* Disable Lua script instructions limit in DEBUG mode
2017-11-10 17:23:37 +01:00
Damjan Adamic and Andre Bernet
6c7e4b5597
Debug Timers: add 10ms period measurement, delete unused timer debugT… ( #5319 )
...
* Debug Timers: add 10ms period measurement, delete unused timer debugTimerPerMainPeriod
* Typo in drawSplash() if MENUS_LOCK == 1
2017-11-10 17:23:09 +01:00
Damjan Adamic
b153cdec93
Fixes #5266 : Lua docs updated: radio type has different names for the various radios in 2.2.0
2017-10-31 18:04:21 +01:00
Damjan Adamic
6cc40c65b2
Lua docs update (CrossfireTelemetryPush and crossfireTelemetryPop and some small spelling fixes)
2017-08-27 16:45:56 +02:00
Damjan Adamic and Bertrand Songis
a167e9f751
Fixes #5055 : infinite loop in lcdDrawFilledRect() when h parameter is bigger than 127. Similar fixes in other places. ( #5058 )
2017-08-15 06:57:29 -07:00
Damjan Adamic and Bertrand Songis
3436273fdf
Fixes #5090 : periodically update sensor ratios from the radio when the telemetry simulator is running. ( #5110 )
2017-07-30 09:56:16 +02:00
Damjan Adamic and Bertrand Songis
4dcd49a516
Fixes #5093 : usbasp udev were rules missing from the installation package ( #5111 )
2017-07-30 09:55:16 +02:00
Damjan Adamic
97ef444648
Travis build fix
2017-06-24 19:17:51 +02:00
Damjan Adamic
7956bd6bab
Launchpad files for 2.2.0 release:
...
* updated changelogs
* use suffix only for nightly builds
2017-05-31 23:31:16 +02:00
Damjan Adamic
618832974e
Re #4718 : added missing dependency libqt5multimedia5-plugins for Debian/Ubuntu packages (missing sound when using Qt Multimedia)
2017-05-14 19:20:51 +02:00
Damjan Adamic
d35d3b5e22
Prepare Launchpad scripts for non-nightly release
2017-05-13 14:02:59 +02:00
Damjan Adamic and Andre Bernet
582546f8ed
Fixes #4839 : path buffer overflow if LUA widget or theme directory name was too long (max length of directory name is 13 characters) ( #4876 )
2017-04-29 22:18:11 +02:00
Damjan Adamic
c1e7235375
Launchpad changelogs for 2.2.0 RC18
2017-04-29 19:26:49 +02:00
Damjan Adamic
c6d15c6f37
Launchpad changelogs for 2.2.0 RC17
2017-04-27 11:19:57 +02:00
Damjan Adamic and Bertrand Songis
73f4b8f172
Projectkk2glider/issue 4827 ( #4855 )
...
* Reverting a part of f94b4c743d that deals with the size of table hash. Fixes 4827, but uses more memory and CPU.
* New internal Lua traces
2017-04-26 21:45:46 +02:00
Damjan Adamic
723b5df4f1
Launchpad changelogs for 2.2.0 RC16
2017-04-15 11:54:12 +02:00
Damjan Adamic and Bertrand Songis
9c7c8244f4
Fixes #4715 : model notes were read from the settings path, but should be read from SD card path ( #4728 )
2017-04-01 08:11:16 +02:00
Damjan Adamic
fa275793ad
simpgmspace CoGetOSTime() was returning wrong values (too big)
2017-03-31 19:52:20 +02:00
Damjan Adamic
2aebcb842a
Lua docs update: lcd.drawText() added link to fonts
2017-03-31 18:33:48 +02:00
Damjan Adamic and Bertrand Songis
29018fae9c
Keys code cleanup and documentation ( #4692 )
2017-03-26 20:11:06 +02:00
Damjan Adamic
2bbb704c3e
Fixed: AudioQueue::playTone() with 0 frequency caused radio reboot (divide by zero)
2017-03-26 19:16:08 +02:00
Damjan Adamic
5e55a3f5d3
Lua killEvents() docs update
2017-03-25 20:37:05 +01:00
Damjan Adamic
93f6abd81a
Launchpad changelogs for 2.2.0 RC14 (and compilation fix for trusty)
2017-03-23 19:48:13 +01:00
Damjan Adamic and Bertrand Songis
dc89d2d630
Projectkk2glider/performance tests ( #4658 )
...
* Transparency and fonts gtests added (Horus)
* Added to CLI: Graphics performance test, memory speed test (Horus)
* Gtests fixes
2017-03-21 19:47:41 +01:00
Damjan Adamic and Bertrand Songis
8375304d61
Several fixes for Lua Widgets and Themes options ( #4648 )
2017-03-21 07:42:00 +01:00
Damjan Adamic
1f1098e270
Lua getValue() docs updated (fixed source links for 2.2 added)
2017-03-20 17:51:02 +01:00
Damjan Adamic
fab3b96815
Compilation fix for gcc 6.2.0
2017-03-19 22:30:40 +01:00
Damjan Adamic
4ecc41229a
Launchpad changelogs for 2.2.0 RC13
2017-03-19 20:51:06 +01:00
Damjan Adamic and Bertrand Songis
b965cac481
Projectkk2glider/issue 4099 leaks ( #4617 )
...
* Re #4099 : memory leaks on model select screen fixed [Horus]
* Re #4099 : memory leak in wizard background image [Horus]
2017-03-14 20:09:53 +01:00
Damjan Adamic
ac2a424353
Lua docs update: lcd.clear()
2017-03-13 20:21:53 +01:00
Damjan Adamic
7aae618ff8
Lua docs fix: playNumber() units table correction
2017-03-13 20:16:58 +01:00
Damjan Adamic
97734f2d9a
Fixed a leak in Companion import: name can't be const char, it must store the string locally because some classes construct name dynamically.
2017-03-13 18:28:05 +01:00
Damjan Adamic
c05ea013f6
OpenTX 2.2.0 RC12 Launchpad files
2017-03-13 18:26:12 +01:00
Damjan Adamic and Bertrand Songis
03b65b06b6
Projectkk2glider/issue 4479 slow joystick ( #4569 )
...
* Missing debug timer
* USB driver cleanup
* Re #4479 : Joystick update called from mixer thread every 10ms
* Cosmetics
* Compilation fix
* Cosmetics
* Another compilation fix
2017-03-07 22:59:32 +01:00
Damjan Adamic
acfeb7b47a
Closes #4560 : Lua uses double (again) for numbers. The float usage was not good for bit32 library where only ~24bits (out of 32) were correct, others were lost. This is supposed to be a temporary solution.
2017-03-06 18:21:41 +01:00
Damjan Adamic and Bertrand Songis
0e906162e1
Added files and scripts to enable Launchpad.net package building
2017-03-05 21:11:22 +01:00
Damjan Adamic
d7801f4a06
Lcd gtests added for Horus
2017-02-26 20:33:43 +01:00
Damjan Adamic
cc36f189f2
Re #4502 : Removed cache in Lua rotable search, tests have proven it does not speed up search significantly. Scripts that use some function a lot can use simple local variable to store pointer to the function - simpler and faster that cache.
2017-02-26 18:12:37 +01:00
Damjan Adamic
ca6a31016a
Re #4498 : Comment removed
2017-02-26 17:57:39 +01:00
Damjan Adamic and Bertrand Songis
a1a58ad8f8
Lua: All usage of double converted to float ( #4502 )
...
* Lua: All usage of double converted to float. printf("%f") still uses promotion to double, (floating point va_args are always promoted to double)
Speed improvements:
* reordering of rotable to put most used tables at the top
* caching of last found global table
Use real pointer to rotable instead of misusing void* to pass integer value
Lua internal traces now turned on by TRACE_LUA_INTERNALS cmake option
* Replaced floating point division with multiplication (where possible), the hardware FPU is much faster at multiplication vs division.
stb_image: enabled STBI_NO_HDR and STBI_NO_LINEAR (removes code that we don't need)
2017-02-26 12:59:39 +01:00
Damjan Adamic and Bertrand Songis
455fc1f79f
Proper skipping of hidden menu lines, old code accessed mstate_tab[] out of bounds ( #4491 )
2017-02-26 12:43:06 +01:00
Damjan Adamic and Bertrand Songis
7081f924de
Some memory leaks and out of bounds array access fixed ( #4498 )
2017-02-26 12:39:26 +01:00
Damjan Adamic
2c99de86d0
RTC Year fix for simulators
2017-02-22 16:26:21 +01:00
Damjan Adamic and Bertrand Songis
2fbd1d8955
Re #4477 : All usage (except Lua) of double converted to float. printf("%f") still uses promotion to double, (floating point va_args are always promoted to double) ( #4483 )
2017-02-21 11:02:26 +01:00
Damjan Adamic and Bertrand Songis
f36d01d560
Fixes #4438 : wrong cast used when setting Lua mixer script input source ( #4470 )
...
* Fixes #4438 : wrong cast used when setting Lua mixer script input source
Improved parsing of Lua mixer script inputs
* Additional type check
* ScriptDataInput union introduced.
Fixed: when using SOURCE input, do not use default value
Fixed: when using SOURCE input, min-max range is fixed
2017-02-21 10:59:47 +01:00
Damjan Adamic and Bertrand Songis
299c5924fa
Projectkk2glider/hardware floating point ( #4477 )
...
* Turn on compiler hardware floating point support for F4 targets
* Fixes, works on Horus
* Comment updated
2017-02-18 00:52:52 +01:00
Damjan Adamic
0e97d30363
DebugOutput buffer increased and overflow message only printed once.
2017-02-16 10:22:01 +01:00
Damjan Adamic and Bertrand Songis
ee43d3fb97
Projectkk2glider/issue 4449 drawline ( #4464 )
...
* Gtest pattern changed
* Fixes #4449 : lcdDrawLine_line() was wrong for slanted lines [128x64]
* Fixes #4449 : lcdDrawLine_line() was wrong for slanted lines [480x272]
* lcdDrawLine() coordinates check moved to Lua API
2017-02-16 00:23:42 +01:00
Damjan Adamic and Bertrand Songis
e80c4c858e
Prevent Lua from allocating all heap memory (Horus) ( #4440 )
...
* Fixes #4284 : Prevent Lua from allocating all heap memory (Horus)
Lua bitmap functions cleanup and docs update
Added x or y < 0 check to drawBitmap()
* Proper float constant
2017-02-11 22:21:14 +01:00
Damjan Adamic
be61e07939
Lua documentation update
2017-02-11 19:08:55 +01:00
Damjan Adamic
12a5af98b4
Fix for f_readdir() in simulator.
2017-02-10 20:58:44 +01:00
Damjan Adamic and Bertrand Songis
17a77114d0
Re #3882 : parse theme/widget options depending on option type ( #4391 )
2017-02-04 15:35:00 +01:00
Damjan Adamic
c66e45f0f7
Another fix for processTelemetryData
2017-02-04 14:47:33 +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
fc01f77d49
Re #4384 : Lua doc updated: added max image size to lcd.drawPixmap()
2017-02-03 20:22:55 +01:00
Damjan Adamic
2b83160284
Fix needed to get f98f63fa5 working (PR was based on some older code)
2017-02-03 10:18:49 +01:00
Damjan Adamic
fe76ecfe02
Re #4353 : Header background color is now 70% of base color.
2017-02-01 09:56:43 +01:00
Damjan Adamic and Bertrand Songis
baa5929671
Fixes #4350 : Horus 2pos switches need different switch conditions, fixes SF and SH switches in simulator ( #4351 )
2017-01-31 07:41:59 +01:00
Damjan Adamic
dcbfa92b03
Lua docs update: playNumber units updated
2017-01-30 21:53:06 +01:00
Damjan Adamic and Andre Bernet
a45aafff33
Fixes: Mixers were not calculated in simulator. CoGetOSTime() needed … ( #4342 )
...
* Fixes: Mixers were not calculated in simulator. CoGetOSTime() needed implementation.
* Cleanup
2017-01-30 15:33:22 +01:00
Damjan Adamic
bbe82db087
Cosmetics
2017-01-30 14:52:37 +01:00
Damjan Adamic and Bertrand Songis
8eadee0719
Projectkk2glider/misc fixes ( #4331 )
...
* Re #4326 : default backlight mode keys+sticks
* Re #4329 : when saving radio/model data work on a copy of it, because Export() can change values. Fixes switch warnings change for Horus
2017-01-29 10:02:38 +01:00
Damjan Adamic and Bertrand Songis
d5e3fabf03
Read/write backup fixes: ( #4327 )
...
* Read/write backup fixes:
* radio not found was show behind all windows (missing parent)
* bad behavior on write when radio not found
* Disable model backup read/write for Horus (needs implementation)
2017-01-29 09:59:58 +01:00
Damjan Adamic and Bertrand Songis
d1547dd32d
Prevent Companion crash if input data is smaller than required ( #4309 )
2017-01-28 13:47:45 +01:00
Damjan Adamic
f40e64c2aa
Added Q_OBJECT to TreeModel and some cosmetics
2017-01-27 20:07:00 +01:00
Damjan Adamic
cc12601a01
Fixed radio data import [Horus] (broken in 0f90ff0b65)
2017-01-27 19:26:21 +01:00
Damjan Adamic
16960cb9a0
Fixed segfault when saving setup with no models defined [Horus]
2017-01-27 09:32:43 +01:00
Damjan Adamic
7d849e1c4c
Hide Show Splash Screen on Startup option in general settings [Horus]
2017-01-27 09:21:24 +01:00
Damjan Adamic and Bertrand Songis
0f90ff0b65
Fixes #4299 and #4298 and other Horus import/export bugs. Checked all existing IS_TARANIS() macros and tuned them to IS_HORUS_OR_TARANIS() where needed. ( #4301 )
2017-01-26 22:15:17 +01:00
Damjan Adamic and Bertrand Songis
8b1078d081
Fixes #4290 : Input Offset fix [Horus] ( #4293 )
2017-01-26 18:26:40 +01:00
Damjan Adamic and Bertrand Songis
8102f870fe
Fixes for "Read Models and Settings from the radio": ( #4291 )
...
* show errors
* close dialog in nothing in progress widget
2017-01-26 18:24:27 +01:00
Damjan Adamic
362698484f
Url traces added (Companion)
2017-01-25 13:20:08 +01:00
Damjan Adamic and Bertrand Songis
398c3b1e33
DIY ID range changed to 0x5100 - 0x52FF ( #4232 )
...
[S.PORT] DIY range updated. The spec should follow soon
2017-01-25 08:22:24 +01:00
Damjan Adamic
36928b7b60
Cosmetics
2017-01-24 11:26:19 +01:00
Damjan Adamic
6d2ea5c801
Changes to allow compilation with Qt5.2
2017-01-24 10:19:20 +01:00
Damjan Adamic and Bertrand Songis
b3f4870da7
Refactoring of startup code, mainly dealing with detection of unexpec… ( #4275 )
...
* Refactoring of startup code, mainly dealing with detection of unexpected restart/shutdown
* Added g_FATFS_Obj initialization [Horus]
* Fix normal startup
* Use g_eeGeneral.unexpectedShutdown only on radios that have PWRMANAGE defined
Fixes for radios that don't have power control.
Other fixes
* CLI test for new()
* [Horus] Reboot protection reworked to also handle non-WDT events
(cherry picked from commit fe9a52779d062e3f24639479273c906abe6e440b)
Conflicts:
radio/src/targets/horus/board.h
* Reverting most of the changes
* Cleanup
* Added comment that explains apparent non usage of the wdt_disable() function
* More cleanup
* Missing include
* Compilation fix
2017-01-24 07:52:33 +01:00
Damjan Adamic and Bertrand Songis
3085ba7d91
Fixes for simulator paths on Windows ( #4259 )
2017-01-20 21:45:47 +01:00
Damjan Adamic
7e0c461740
Copyright OpenTX Team 2011-2017
2017-01-20 20:00:21 +01:00
Damjan Adamic
0a351112dd
Re #4224 : Enable .otx file drag&drop on main window
2017-01-20 19:35:46 +01:00
Damjan Adamic
f3521728ef
Cosmetics
2017-01-20 19:22:18 +01:00
Damjan Adamic and Bertrand Songis
e59a51e25f
Re #4224 : Enable reading and writing Models and Settings from/to Horu… ( #4254 )
...
* Re #4224 : Enable reading and writing Models and Settings from/to Horus radio (SD card)
* Fix for findMassstoragePath() on Windows (which got there in previous commit)
2017-01-19 21:26:18 +01:00
Damjan Adamic and Bertrand Songis
979de6bfa2
Re #4224 : Companion Hours simulator now uses temporary directory for radio/models settings. ( #4247 )
2017-01-16 21:35:52 +01:00
Damjan Adamic
19213c8013
Windows build fixes
2017-01-16 15:09:39 +01:00
Damjan Adamic and Bertrand Songis
f7543e3220
Projectkk2glider/simu tmp sd path ( #4231 )
...
* Re #4224 : Introduced settingsPath and use std::string for paths in simpgmspace.
* Re #4224 : Relevant parts of simpgmspace.cpp moved into simufatfs.cpp and simudisk.cpp
* Removed "/" from "mask_monitor_logsw.png"
* Re #4224 : findTrueFileName() refactoring
* Faster gtests (less waiting for eeprom operations to finish)
* Re #4224 : Radio settings and models directories now taken from alternate path (if set) [simu]
* Fixes #3322 : together with previous changes to the SD browser this prevents the simulator from browsing higher than SD card root path.
* f_chdir() debug traces
2017-01-15 21:53:18 +01:00
Damjan Adamic and Bertrand Songis
985dff2af7
Fixes #3683 : Display trainer icon in master mode when IS_TRAINER_INPUT_VALID() is true, don't rely on trainer jack connected detection. ( #4233 )
2017-01-15 10:01:30 +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 and Bertrand Songis
4fd42e0e3d
Fixes #4209 : Backlight was always 100% due to wrong test for the unexpected shutdown. ( #4220 )
2017-01-11 22:36:21 +01:00
Damjan Adamic
865ec6eca3
Remove extra NULL from OutputsWidget::options[]
2017-01-07 09:04:26 +01:00
Damjan Adamic and Bertrand Songis
82dce3ee60
Projectkk2glider/flash savings ( #4199 )
...
* Flash savings: getFileExtension() de-templated, saves 160 bytes
* Flash savings: several variables moved to rodata, RGB macro optimization (speed and can now be used to initialize rodata)
Result for Horus:
text data bss dec
1261182 808603 42020 2111805 before
1267149 803335 42124 2112608 after (data size also counts .sram section)
5kB saved in .data section (RAM and FLASH)
* Removed compiler warnings
* RGB() and ARGB() gtests added
* ARGB() optimized
2017-01-05 21:44:59 +01:00
Damjan Adamic
659f9e0556
Fixed a problem with MSVC
2017-01-02 22:36:46 +01:00
Damjan Adamic and Bertrand Songis
803dc7d853
Projectkk2glider/issue 4138 and other fixes ( #4182 )
...
* Fixed Companion translations cmake target
* Some translations had problems with string termination (missing or excessive " characters)
* Fixes #4138 : Use [RTN] instead of [EXIT] on Horus
* Define spare bits if BUZZER is not defined
2017-01-02 11:31:55 +01:00
Damjan Adamic and Bertrand Songis
afe3d4a1e9
Custom OpenTX types moved to separate file opentx_types.h, fixes linker problem with lcdDrawBitmapPattern() in release build ( #4188 )
2017-01-02 11:29:20 +01:00
Damjan Adamic and Bertrand Songis
fd01376f1e
Reduced Companion simulator CPU usage by a factor of 5. ( #4167 )
2016-12-27 22:00:23 +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
Damjan Adamic
4233e71954
Lua docs updated
2016-12-11 20:11:56 +01:00