Commit Graph
4290 Commits
Author SHA1 Message Date
altemanandBertrand Songis cd6eef2cfa Replace thirdparty/GCS_MAVLink with a git submodule (#4556)
* Replace thirdparty/GCS_MAVLink with a git submodule

* Try to recover from missing submodules
2017-03-05 13:04:52 +01:00
altemanandBertrand Songis b4059849e2 Update third party mavlink header files to git revision 8e864d2 (#4552)
* Update mavlink protocol definitions to mavlink GIT revision 8e864d2

* Change struct initializers due to updated mavlink proto headers
2017-03-05 08:50:28 +01:00
Max PapernoandBertrand Songis 45cfcd67ff [simu][horus] Replace 2nd knob/pot with functional 6-pos switch (must be calibrated). (#4554) 2017-03-05 08:48:10 +01:00
Max Paperno 8563ed8eac [lua-api] Prettify loadScript() API docs. [ci skip] 2017-03-04 04:25:06 -05:00
3djcandBertrand Songis 80b44444ec Fix lcdLastPos (#4487)
* Fix lcdLastPos
Introduce lcdLeftPos

* Cosmetics

* Cosmetics

* Non ARM code cleanup

* Move telem screen to midsize

* Fine tune

* Renaming
2017-03-04 10:16:45 +01:00
altemanandBertrand Songis 4a2bbc665c Update thirdparty/GCS_MAVLink sync script to work with updated mavlink repo (#4548) 2017-03-04 10:16:21 +01:00
Bertrand SongisandGitHub 481df9ee3d [Horus] Fixes #3775 (#4544)
* [Horus] Fixes #3775

Quick fix ... comments welcome :)

* Better hash function for strings

* One comment, one!

* One comment, one!
2017-03-04 10:14:38 +01:00
3djcandBertrand Songis 883ab9a937 Reduce colon size in DBL font (#4540) 2017-03-02 23:27:51 +01:00
Bertrand Songis d724ec1128 Fixes #4136 - Reset all logical switch fields on change of function type - By @elecpower 2017-03-02 20:24:01 +01:00
Arne SchwabeandBertrand Songis 40dae8a8a7 [MULTI] Implement option Value adjustment in Companion (#4459)
* [MULTI] Implement option Value adjustment in Companion

Also refactor ui code to use the same multi table as the radio to make updates easier and consistent

* Fix warnings with gcc 6

* Make the whole thing more C++ like

Using QVector instead of std::vector gives me strange errors.

* Fix gcc warning

* another signedness fix

* Add missing include

* Add Gw008 protocol and move subtype definitions out of the translations

* Add note about struct

* More cleanups

Integrate @mpaperno’s latest ideas about cleaning up
2017-03-02 18:40:31 +01:00
Max PapernoandBertrand Songis 00b2799427 [Companion][Simulator] Add custom qDebug message handler/formatter (#4475)
* [Companion][Simulator] Add custom qDebug message handler/formatter as an option. Keeps support for QT_MESSAGE_PATTERN env. var.

* [Simulator] Show system messages of level qInfo and above in debug console.

* [Simulator] Still capture screenshot to clipboard if path is not accessible (and screenshot results now print to simulator debug console).

* Fix for older CMake.

* [Companion] Do not start debug message handler if app is shutting down, and add null checks before using it; Increase backtrace report depth; Add OTx headers; Add Companion exit status debug; Clean up unused code.

* [Simulator] Add asynchronous FIFO buffer for handling debug output/display more efficiently. (#4488)
(cherry-picked from b12bd7d7be)
2017-03-02 18:35:00 +01:00
NathanandBertrand Songis 620094e358 remove src/radio/stamp.h from the gitignore list to make it make cmake idempotent (#4530) 2017-03-02 18:33:29 +01:00
3djcandBertrand Songis c9555e510c Allow datestamp for ARM 128x64 model backups (#4534)
* Allow datestamp for x7 model backups

* Add ability to restore too

* Make this all 128x64 instead of x7 only
2017-03-02 18:32:24 +01:00
3djcandBertrand Songis b800642090 Add popup menu to Play value SF on X7 (#4535) 2017-03-02 18:30:37 +01:00
altemanandBertrand Songis 26259f398d Fix a regression that omitted filenames from allsrc.cpp (#4531) 2017-03-02 18:28:10 +01:00
Bertrand Songis 9f3898ae1e [9XR-PRO] Navigation issue in FlightModeOne screen 2017-02-27 14:04:44 +01:00
3djcandBertrand Songis 4d847e6943 Fix FM screen on X7 (#4515)
* Fix 4513

* Fix 9XR-PRO (hopefully)
2017-02-27 13:51:19 +01:00
Bertrand SongisandGitHub 7bc557b4eb Trainer code simplification (#4519) 2017-02-27 13:50:03 +01:00
Bertrand Songis 89e1dfeeff [Warnings] Removed sRGB warnings raised by libpng 2017-02-27 13:49:35 +01:00
Bertrand Songis 99b01d396c [Sky9x] skipHiddenLines broken on 128x64 LCD 2017-02-27 13:46:37 +01:00
Bertrand Songis 029e12860a Cosmetics 2017-02-27 13:43:54 +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 AdamicandBertrand 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 AdamicandBertrand 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 AdamicandBertrand Songis 7081f924de Some memory leaks and out of bounds array access fixed (#4498) 2017-02-26 12:39:26 +01:00
3djcandBertrand Songis 1910af51b6 Make lcd.clear() color aware on color screens (#4504)
* Make lcd.clear() color aware on color screens

* Compilation fix
2017-02-26 11:46:23 +01:00
Andre Bernet 86d897b23f [Horus] Restore emergency mode priority over "no SD card" warning 2017-02-23 23:20:16 +01:00
Andre Bernet b866baae65 [Horus] Restore emergency mode priority over "no SD card" warning 2017-02-23 23:04:09 +01:00
3djcandGitHub 0857e27665 Merge pull request #4497 from opentx/3djc/x7-trainer-fix
X7 fix
2017-02-22 23:40:25 +01:00
Damjan Adamic 2c99de86d0 RTC Year fix for simulators 2017-02-22 16:26:21 +01:00
3djc f3e951e0fb X7 fix 2017-02-22 15:19:17 +01:00
Max PapernoandBertrand Songis 051a4638f3 [radio] Improve TRACE macro. (#4484) 2017-02-21 11:05:54 +01:00
Bertrand SongisandGitHub 24c0f5008d [X7] S.PORT devices update is now done on the bottom connector (#4457)
* [X7] S.PORT devices update is now done on the bottom connector

* [X7] I introduce a PCBREV option, as previous versions didn't have this S.PORT bottom connector

* [X7] Introduce a PCBREV PIN to avoid having different 2 different firmware on X7

* Compilation fix

* [X7] PCBREV PIN was inverted

* [X7] PULL DOWN on PCBREV PIN

* S.PORT bottom connector is powered by PB.02, not PB.01

* [X7] PCBREV resistor changed

* [X7] PCBREV resistor changed
2017-02-21 11:03:37 +01:00
Damjan AdamicandBertrand 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 AdamicandBertrand 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
Max Paperno 177acb95e5 [212x64] Fix channels display view with PPM_UNIT_PERCENT_PREC1. 2017-02-20 12:14:17 -05:00
Max Paperno bb8dd1294f [480x272] Fix extra channel showing up in custom failsafe settings menu. (closes #4486) 2017-02-20 03:41:40 -05:00
Max Paperno ac9b781647 [build] Minor fixes for Windows and OS X. 2017-02-19 17:20:10 -05:00
3djc e4c3326c0a isExtensionMatching is case insensitive, but not further checks, making those whole function case sensitive, which it should not 2017-02-18 11:00:13 +01:00
Damjan AdamicandBertrand 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
Bertrand SongisandGitHub 3e84e7930c Bsongis/9x fixes (#4463)
[9x] Fixes + make firmware target added
2017-02-17 17:11:38 +01:00
Arne SchwabeandBertrand Songis 6106d1b228 Fix warnings with avr-gcc 6.2 (#4471) 2017-02-17 17:00:39 +01:00
Damjan AdamicandBertrand 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
Bertrand SongisandDamjan Adamic 53f55f8e1d Fixes #4399: problem getting/setting curve on output with Lua (#4455) 2017-02-15 21:25:08 +01:00
Bertrand SongisandAndre Bernet 27b1255584 [X9D/X9D+/X9E] Fixes #4334 (#4451) 2017-02-15 18:25:26 +01:00
Bertrand SongisandAndre Bernet 733cfb3218 Fixes #3865 (#4456) 2017-02-15 18:18:08 +01:00
Andre BernetandGitHub fe49fb5442 Multiprotocol working on sky9x and co (#4409)
* MULTI working on sky9x

* Fix crash with module OFF

* Cosmetics

* Compilation fix / cosmetics

* Typo....

* Multi now available on all ARM platforms

* Does this help?

* Compilation fix
2017-02-15 17:31:38 +01:00
hrenzandArne Schwabe e8b04cdee6 Updated german translations (#4390)
* Update de.h.txt

shorten some texts for Q X7 Display

* Update de.h.txt

shorten some texts for Q X7 Display

* Update de.h.txt

shorten some Texts for Q X7 display

* shorten some Text for  Q X7 display

* Shorten some texts for QX7
2017-02-15 16:55:40 +01:00