Damjan Adamic
405fd802d5
Re #1361 - Fixed 10000% bug
2014-06-25 09:02:23 +02:00
Damjan Adamic
317890c9f9
Fixes #1283 - EEPROM backup/restore - unexpectedShutdown set
2014-06-23 19:47:49 +02:00
Damjan Adamic
65f433438a
Fixes #1338 - Extend limits - Companion
2014-06-23 19:22:16 +02:00
Damjan Adamic
b8487c90de
Removed traces
2014-06-22 13:53:46 +02:00
Damjan Adamic
f3bc8cb9a4
Fixes #1345
2014-06-22 13:52:59 +02:00
Damjan Adamic
c0c6a90f65
Added traces
2014-06-22 13:17:16 +02:00
Damjan Adamic
831cbc0122
Script output names same as on the radio (i.e. LUA1b)
2014-06-21 22:20:56 +02:00
Damjan Adamic
d0edbacf37
re #1334 - added Lua script outputs to: mixer soruces list, logical switches V1 and V2 list
2014-06-21 22:05:43 +02:00
Damjan Adamic
2a277e930c
Correct minimum value for speed is 0
2014-06-19 16:44:24 +02:00
Damjan Adamic
c9cc39c139
Unit for Knots is "kn"
2014-06-19 16:43:53 +02:00
Damjan Adamic
11b18ca760
Merge pull request #1315 from opentx/projectkk2glider/issue_1310
...
Fixes #1310 - Vspd V2 value resolution probem in Companion
2014-06-19 15:47:18 +02:00
Damjan Adamic
b1fa194a1d
Cosmetics
2014-06-19 15:45:47 +02:00
Damjan Adamic
3dfe0afd6f
Merge branch 'next-upstream'
2014-06-19 15:40:02 +02:00
Damjan Adamic
73cd69c63b
Fixes #1310 - Vspd V2 value resolution probem in Companion
2014-06-19 09:10:22 +02:00
Damjan Adamic
fd9f3ad8be
Bad indentaton and reduced buffer size
2014-06-19 06:53:53 +02:00
Damjan Adamic
1e917da05e
RTC time initialization in simulator
2014-06-18 22:22:15 +02:00
Damjan Adamic
c82068115f
Fixes #115 - added date and time to backup filename
2014-06-18 22:19:57 +02:00
Damjan Adamic
6497407788
Removed frskyData.hub.gpsDistance simulator initialization because it is a calculated value.
2014-06-17 14:42:29 +02:00
Damjan Adamic
8115a78df7
Added couple of simulator telemety initialization values.
2014-06-17 13:04:35 +02:00
Damjan Adamic
f99fc83993
Fixes #1264 - CFN_GVAR_CST_MAX is 500, int16_t is needed
2014-06-17 11:50:08 +02:00
Damjan Adamic
18f327612f
re #1294 - clear input name if removing last input line
2014-06-17 10:01:14 +02:00
Damjan Adamic
6689919a39
Fixes #1294 - Companion, Delete action without a selection
2014-06-17 09:25:57 +02:00
Damjan Adamic
effcb1610b
Fixes #1290 - Gvar popup wrong if same as other FM
2014-06-15 18:50:45 +02:00
Damjan Adamic
1c2257190a
Fixes #1269 - RSSI Tx should be hidden in companion if radio is Taranis.
...
I followed isTelemetrySourceAvailable() and hided RssiTx and dTE.
2014-06-14 19:03:03 +02:00
Damjan Adamic
f509a7d22b
bug: wrong locaion for addText()
2014-06-14 18:30:23 +02:00
Damjan Adamic
f55e5f862b
Merge pull request #1280 from opentx/ChrisNisbet01/issue_1278
...
Chris nisbet01/issue 1278
2014-06-14 09:03:16 +02:00
Damjan Adamic
10413bbede
Removed compiler warning: lua.cpp:63:60: warning: missing braces around initializer for 'ScriptInputsOutputs' [-Wmissing-braces]
2014-06-14 08:24:00 +02:00
Damjan Adamic
91dfb0309e
Removed compiler warning: lua.cpp:1382:21: warning: variable 'filename' set but not used [-Wunused-but-set-variable]
2014-06-14 08:18:47 +02:00
Damjan Adamic
6707f68923
One more warning removed: ../targets/taranis/board_taranis.h:256:3: warning: function declaration isn't a prototype [-Wstrict-prototypes]
2014-06-14 08:10:40 +02:00
Damjan Adamic
5351514180
Using enume instead of numeric constants
2014-06-14 00:04:44 +02:00
Damjan Adamic
37ec428efc
Fixes #1266 - Companion timer value not in time format
2014-06-13 23:34:01 +02:00
Damjan Adamic
a596001338
Companion mixer tab, if CH1 is empty the Move up button will never bring something there, fixes #1261
2014-06-12 15:16:50 +02:00
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