Commit Graph
38 Commits
Author SHA1 Message Date
bsongis 6195f5ecc1 Fixes #1646 2014-08-29 11:53:41 +02:00
bsongis e620230e44 STAY replaced by EDGE in constants names 2014-08-28 21:03:15 +02:00
bsongis c2166c8a67 Fixes #1646 2014-08-28 21:03:15 +02:00
bsongis 5907193571 Fixes #1543 2014-07-21 23:21:35 +02:00
Damjan Adamic b4e816b784 Re #1443 - Reverting back d675ab1578 with some improvements:
* when telemetry is not streaming all logical switches that involve telemetry value evaluate to FALSE (same as before the change in above commit)
* the duration and delay processing is now enabled for such logical switches (new functionality that was not present before above commit)
2014-07-07 19:18:18 +02:00
Damjan Adamic 30a68cf170 Fixes #1440 - Logical switches state not reset after model load:
* logical switches reset not called anymore when user selects "Reset Flight", but only after model load
* logical switches reset now includes a reset of switches state (set to false)
2014-07-05 19:11:16 +02:00
Damjan Adamic d675ab1578 Fixes a bug for case: telemetry values used in logical switches and they have a duration and/or delay set. 2014-07-03 20:50:31 +02:00
bsongis 2094e87da5 'phase' renamed to 'flight mode' everywhere in the code 2014-06-17 10:59:00 +02:00
bsongis 20125474c1 Fixes #1267 2014-06-17 10:59:00 +02:00
bsongis 9a83325119 Compilation error when GAUGES=NO 2014-06-12 15:59:54 +02:00
bsongis e4d03b8c70 Fixes #1205 - Delay only applied to Play family function, with a
configurable delay, between 0 and 300ms (default is 150ms).
2014-06-10 16:19:44 +02:00
bsongis bf9fc6dd98 The delay on switches was * 10 2014-06-07 20:27:00 +02:00
bsongis 93d6788605 Fixes #1200 - Needs tests! 2014-06-07 11:07:00 +02:00
bsongis 6511ae173d Fixes #1191 2014-06-06 11:54:13 +02:00
bsongis 86a8e6a128 Fixes #1157 2014-06-05 12:05:53 +02:00
Andre Bernet b593d871a6 Fixes #1175 (display part missing) 2014-06-04 10:37:19 +02:00
bsongis d18c6c9985 Fixes #1175 2014-06-04 10:08:40 +02:00
bsongis 64e84f1af9 Fixes #1173 2014-06-04 09:52:13 +02:00
bsongis 0ea3daa4c4 Bug found in Pots Warning (Auto mode) 2014-06-02 11:01:21 +02:00
bsongis a178d6b326 Fixes #1122 2014-05-20 14:32:27 +02:00
bsongis 49a4d5ecb1 Gtests KO 2014-05-19 15:12:23 +02:00
bsongis 1a7ff9239d A couple of changes on top of projectkkglider branch 2014-05-19 14:52:07 +02:00
bsongis dffb5a7a79 Bad structure alignment (the compiler does the job, but it's better to
write it so we see where are the lost bits)
2014-05-19 11:07:51 +02:00
Damjan Adamic df971b0e77 Cosmetics 2014-05-18 18:44:07 +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 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
bsongis 6c17fee19b Fixes #1107 2014-05-17 07:52:31 +02:00
bsongis 2fbd4ff13a Mixer code splitted differently 2014-05-15 12:08:57 +02:00
bsongis 8b2769a734 Switches code moved to a separate file 2014-05-09 18:05:29 +02:00