Commit Graph
93 Commits
Author SHA1 Message Date
Damjan Adamic d767b62d01 Added A3 and A4 simulator initialization values. 2014-06-10 15:24:55 +02:00
Damjan Adamic 5a0f154876 Fixes #1215 2014-06-08 19:31:02 +02:00
Damjan Adamic 15d89d638c Hide gvars for FM>0 if tx does not support per flight mode gvars, issue #1195 2014-06-08 18:58:53 +02:00
Damjan Adamic 087c9f0202 Gvar value restored, issue #1195 2014-06-08 18:26:39 +02:00
Damjan Adamic 0ae00dddf8 Fixes #1204 2014-06-08 18:07:14 +02:00
Damjan Adamic f865bdf785 Changed order of context menu for logical switches and custom functions. Before this change the Delete option was first and it was too easy to inadvertently delete an item. 2014-06-08 17:18:50 +02:00
Damjan Adamic 04897885dd Fixes #1209 2014-06-08 17:11:14 +02:00
Damjan Adamic 2248c84b8f Added error string to output, to help resolving issue #1217 2014-06-08 16:33:34 +02:00
Damjan Adamic 6d384759ae Removed MixesWithoutExpo capability. Added missing files for previous commit. 2014-06-01 16:13:06 +02:00
Damjan Adamic d641147ef0 The "No DR/Expo" was (after conversion from 215) showing in mixes for Taranis. Taranis does not have this setting. 2014-06-01 16:01:35 +02:00
Damjan Adamic 7505701e64 Merge pull request #1119 from opentx/bsongis/logical_switches_issue_1039
Bsongis/logical switches issue 1039
2014-05-19 22:04:30 +02:00
Damjan Adamic df971b0e77 Cosmetics 2014-05-18 18:44:07 +02:00
Damjan Adamic dc2fcb2618 Another gtests failure 2014-05-18 18:30:30 +02:00
Damjan Adamic 0180e3b90d Gtests problems 2014-05-18 18:22:56 +02:00
Damjan Adamic 9dcaccc87f Cosmetics 2014-05-18 18:09:23 +02:00
Damjan Adamic e14734c8af Reduced number of logical switch context to 2. Now we have only active fm context (lswFM[0]) and other context that is used for all other fms (lswFm[1]).
Much smaller RAM usage, but possible (I beleave unimportant) errors when trasitioning between more than two flight modes.
2014-05-18 18:08:41 +02:00
Damjan Adamic fbb1b65fd6 Delay and Duration using 1 x uint8_t instead of 2 x uint32_t.
Timing for delay and duration is not as accurate as before, max error possible is +-100ms.

Worst case example: duration set at 0.1s will produce output pulse of width between 10ms (min mixer loop  time) and 200ms.

But RAM saving is BIG, unfortunately only on ARM.
2014-05-18 16:47:15 +02:00
Damjan Adamic d6a150738c Cosmetics 2014-05-17 19:56:00 +02:00
Damjan Adamic 1491d3b236 Renamed lswReset() to logicalSwitchesReset()
Added PACKED to logical switches data structures
2014-05-17 19:38:23 +02:00
Damjan Adamic 8ec706ad08 Bugfix 2014-05-17 19:35:34 +02:00
Damjan Adamic c0c824c0f4 Cosmetics 2014-05-17 19:34:53 +02:00
Damjan Adamic 8cba5f9c02 gtest correction needed because of changed order of logical swithces calculation 2014-05-17 18:31:15 +02:00
Damjan Adamic d32b869582 CRLF 2014-05-17 18:23:36 +02:00
Damjan Adamic 07a5333a08 Fixes #1039:
* order of logical switches calculaton now predicable: always from L1 to L64
* each flight mode has its own logical switches context (RAM usage multiplied by number of flight modes)
* resolved problem of non-reentrancy of getSwitch() function
2014-05-17 17:51:33 +02:00
Damjan Adamic 6e5f064c31 One more rename 2014-05-17 17:06:29 +02:00
Damjan Adamic c2031934e0 Reenabled missing #if 2014-05-17 16:20:08 +02:00
Damjan Adamic 34e1a0ce86 All references to "custom switches" renamed to "logical switches" 2014-05-17 15:29:31 +02:00
Damjan Adamic 8c21462f74 More switches code moved to switches.cpp 2014-05-17 15:29:31 +02:00
Damjan Adamic 4932ed8099 Re #1086: Corrected displayed flight mode numbering. Added bold to active flight mode gvars values. 2014-05-13 20:28:32 +02:00
Damjan Adamic 0145bcfd6c Fixes #500.
Graphical presentation could be better, I am not very familiar with Qt.
2014-05-11 18:12:03 +02:00
Damjan Adamic 750cde82d1 Companion simulator crash for REVPLUS, TIM4 simulator substitute was not defined 2014-05-11 17:04:16 +02:00
Damjan Adamic 533000ddcd Fixes #1042 2014-05-11 15:06:02 +02:00
Damjan Adamic c5a526f3b3 Merge branch 'next' 2014-05-05 22:49:44 +02:00
Damjan Adamic 77bafb5364 Converted CR back to CRLF. SmartGit did this to me previously when merging. 2014-05-05 22:41:33 +02:00
Damjan Adamic 5316931fa1 Merge branch 'next' 2014-05-05 22:37:04 +02:00
Damjan Adamic 61addd3d4e Merge branch 'next' 2014-05-05 22:13:24 +02:00
Damjan Adamic b9ee1d5dee Sorted fade times for printPhases() 2014-05-05 21:51:56 +02:00
Damjan Adamic 97bbdd3be1 More compaction of printInputs() 2014-05-05 21:04:50 +02:00
Damjan Adamic b9b4e441e7 renamed printExpo() to printInputs() and compacted code, output is the same. 2014-05-05 21:02:26 +02:00
Damjan Adamic 809a3cfd60 Added "Alt+S" shortcut to start model simulation 2014-05-05 20:25:41 +02:00
Damjan Adamic 1f3e67f912 Telemetry for Taranis print improvement 2014-05-04 19:52:26 +02:00
Damjan Adamic fe719686d9 Special Functions print improvement 2014-05-04 18:37:58 +02:00
Damjan Adamic 7027d809c1 Logical switches print improvement 2014-05-04 18:21:03 +02:00
Damjan Adamic 0fc8a5e2f2 Reenabled Ctrl+P shortcut for "print model" 2014-05-04 18:08:55 +02:00
Damjan Adamic 8787dd05cd Many improvements of print dialog. Some minor changes in mixes and inputs formatting. 2014-05-04 10:37:49 +02:00
Damjan Adamic 644f975322 Missed a spot for #1048, Jenkins was not happy 2014-05-03 11:26:19 +02:00
Damjan Adamic b092607553 Save/restore of simulator switches, fixes #1034 2014-05-01 09:46:38 +02:00
Damjan Adamic 88e7ad4b8c Better display of inputs with assigned name 2014-04-30 23:16:49 +02:00
Damjan Adamic 1a6906bbb3 Input name missing from mixer sources 2014-04-30 22:58:54 +02:00
Damjan Adamic 6b1afde47e bugfix: commit 5c8504add6 broke importing of trim values for FM0 - they were all set to zero. 2014-04-30 21:20:07 +02:00
Damjan Adamic 926ad88b73 Hided "popup enabled" checkbox for FM>0. They have taken precious space and severely limited width of GVAR names filed. 2014-04-29 20:06:25 +02:00
Damjan Adamic 8baa2b3887 Bug: setting gvar to "same as flight mode X" caused endless loop if X > current flight mode 2014-04-29 19:59:24 +02:00
Damjan Adamic a6548a05d8 Completed list of conversions in luaGetValueAndPush() 2014-04-28 17:39:43 +02:00
Damjan Adamic bff912aef6 Renamed __luaGetValue() to luaGetValueAndPush() 2014-04-28 17:23:58 +02:00
Damjan Adamic 16c6a94d35 Merge pull request #1018 from projectkk2glider/lua_development
Lua development
2014-04-28 12:49:51 +02:00
Damjan Adamic 01391aa6aa Return 0 for all temeletry values, when telemetry not available. 2014-04-27 18:12:06 +02:00
Damjan Adamic 55d8a0ac8c bug: Default value was not added for input type VALUE 2014-04-27 11:24:08 +02:00
Damjan Adamic fbbe7e9cc6 Merge branch 'next' 2014-04-26 21:12:16 +02:00
Damjan Adamic eac17bda08 Telemetry values are now returned as proper values (i.e. A1 voltage 4.5V is returned as 4.5) for model script inputs and getValue() function. 2014-04-26 21:10:54 +02:00
Damjan Adamic 06beced480 Removed symbol OPENTX_VERSION 2014-04-26 18:50:43 +02:00
Damjan Adamic bd31c541f6 Order of outputs was wrong 2014-04-26 18:48:30 +02:00
Damjan Adamic fc4cf73c89 Registered OpenTX version as symbol OPENTX_VERSION in Lua
Added PlayNumber()
2014-04-26 09:45:07 +02:00
Damjan Adamic 9285a3a9a1 Lua print() function works by using TRACE macro 2014-04-26 09:43:45 +02:00
Damjan Adamic 5d2aacb7d1 Fixes missing icons in menus and buttons on Fedora 20 2014-04-23 19:37:36 +02:00
Damjan Adamic d9c1bf767f Refactored luaGetValue(), my previous fix was incorrect. 2014-04-21 20:47:38 +02:00
Damjan Adamic cfa25ab030 Bad indentation 2014-04-21 20:26:23 +02:00
Damjan Adamic 3815ab8c45 Return nil if value not found in luaGetValue() 2014-04-21 20:17:30 +02:00
Damjan Adamic 36409c37f4 SOURCE type input for model scripts missing getValue() 2014-04-21 17:21:02 +02:00
Damjan Adamic a6ad130df7 Reverted commit 8c5fc3a01f (which prevented moving second mixer to the first line) 2014-04-21 12:22:25 +02:00
Damjan Adamic 3d35273f4f Merge branch 'upstream/next' 2014-04-20 22:17:25 +02:00
Damjan Adamic 27600ba37e Cosmetic changes 2014-04-20 22:12:55 +02:00
Damjan Adamic fc92ad3a86 Prevent drag&drop between inputs and mixers 2014-04-20 21:29:08 +02:00
Damjan Adamic 65521d96d4 Code refactoring
Added documentation
2014-04-20 19:06:55 +02:00
Damjan Adamic b70586bd9f Reverted to original code (both work) 2014-04-20 18:31:54 +02:00
Damjan Adamic a8c828f105 Corrected list items width (long items were wrapping)
Refactored inputs tab, same system as mixes tab (grouping of lines)
Fixed incorrect spacing for first list item
2014-04-20 18:27:28 +02:00
Damjan Adamic 0e7b420b71 Code cleanup 2014-04-20 15:40:40 +02:00
Damjan Adamic 95e7f7915b Better implementation, spacing now correct, drag&drop working.
Inputs tab still needs spaces converted to  
2014-04-20 14:22:54 +02:00
Damjan Adamic 3df9fcb67a Working, but drawing is not perfect 2014-04-20 13:21:28 +02:00
projectkk2glider 4ccbc13f6a Merge branch 'upstream/next' 2014-04-16 09:34:14 +02:00
Damjan Adamic 6354b83a0d Fixes suggested by Bertrand. ExtraChannels not yet removed 2014-04-15 19:12:29 +02:00
Damjan Adamic cd9facb147 Some more code style changes, getting used to openTX style. 2014-04-15 18:56:09 +02:00
Damjan Adamic 7f7c722429 More cosmetic changes 2014-04-15 18:53:00 +02:00
Damjan Adamic 4850541002 Fixes suggested by Bertrand 2014-04-15 18:47:47 +02:00
Damjan Adamic 52954b1be4 * Added space between channels in mixers tab, amount defined by MIX_ROW_HEIGHT_INCREASE
* Added highlighting of selected channel when used as source in other channels (Ctrl+T or context menu->Toogle highlight)
* Added leading zero to channel name for ch_number < 10 (better alignment for CH1 to CH9)
2014-04-14 22:00:39 +02:00
Damjan Adamic 5a522fac4b * One more leak fixed.
* debug print removed
2014-04-14 20:53:54 +02:00
Damjan Adamic df954ae483 Fixed many memory leaks 2014-04-14 20:25:17 +02:00
Damjan Adamic 2cfd95a026 Make flightmode, switch and system file names case insensitive. 2014-04-11 20:16:51 +02:00
Damjan Adamic e4416e6134 USB library fixes according to ST's published known bugs list 2014-04-04 22:03:31 +02:00
Damjan Adamic e5cbba4ee2 Proper rounding for values that are scaled down. Displayed and spoken values affected.
Example: value 3.47V was spoken as 3.4V, new spoken value is 3.5V
2014-03-23 20:50:02 +01:00
Damjan Adamic 32090b8bbe Compiler warning removed for gcc 4.8.3 2014-03-23 20:38:42 +01:00
Damjan Adamic be5e6f678a Unit bug corrected, other languages are ok 2014-03-23 20:36:53 +01:00
Damjan Adamic fbe298bece changed return value of usbPlugged() back to int 2014-03-22 11:17:13 +01:00
Damjan Adamic 86f136c733 * USB Joystick implemented
* USB Mass storage mode removed from openTX (this is now supported by Bootloader)
2014-03-21 20:58:41 +01:00