Max Paperno
66cd99bf6b
[simu] Updates for RTOS abstraction layer; Remove further SIMU_SLEEP usages.
2018-09-08 22:04:37 -04:00
Max Paperno
a2006940db
[simu] Refactor simu startup and shutdown handling (for 2.3 branch):
...
* Use pwrCheck() as primary control point for shutdown, centralizes thread control in simpgmspace module;
* Remove main_thread_running in favor of separate variables for startup mode and shutdown flag;
* Don't start a thread for ARM startup, just run simuMain() directly (the thread just exits anyway);
* Refactor SIMU_SLEEP() macro, and remove all unnecessary uses of it, also remove SIMU_SLEEP_NORET;
* Add startType param to opentxStart() to control splash and startup checks;
* Fixes backlight never turning off in simulator with "SWITCH" power button type (pwrPressed() was always true);
* Fixes simu shutdown when model checklist is displayed at startup;
* Adds stubs to possibly simulate a "soft" power button in the future.
2018-09-08 22:04:37 -04:00
Max Paperno and Kilrah
4ff75ae87f
[Simulator] Fix mixer outputs monitor not updating when channel value hasn't changed ( fixes #6064 ). ( #6122 )
2018-09-04 11:46:40 +02:00
3djc
f13bf76699
Turn on backlight on power press (but not on startup) ( #6145 )
2018-09-02 13:35:25 +02:00
Kilrah
fbcdcabab5
VC++ compilation
2018-08-05 20:04:12 +02:00
Bertrand Songis and GitHub
8a51682190
Merge pull request #6087 from opentx/rtos_and_align_macros
...
Rtos and align macros
2018-08-05 16:26:18 +02:00
Kilrah
ce7cb7f7e9
Fix Horus bootloader needing 2 encoder clicks per line
2018-08-05 15:47:57 +02:00
Bertrand Songis
ed91931184
More AVR removal
2018-08-05 13:12:51 +02:00
Bertrand Songis
ea76998beb
More AVR removal
2018-08-05 12:39:05 +02:00
Bertrand Songis
f3bfde242b
RTOS refactoring + more AVR removal
2018-08-05 12:06:48 +02:00
Bertrand Songis and GitHub
61b82254d0
Merge pull request #6084 from opentx/modules_type_macros
...
All macros for modules removed
2018-08-04 10:17:35 +02:00
Bertrand Songis
85ad25e0e8
All macros for modules removed
2018-08-04 00:13:32 +02:00
Bertrand Songis
131078e3a0
GCC new warnings fixed (GCC) 8.1.1 20180531
2018-08-03 23:02:43 +02:00
Bertrand Songis
d2697345e1
VIRTUAL_INPUTS #define removed
2018-07-11 18:54:05 +02:00
Bertrand Songis and GitHub
a8707baf57
Merge pull request #6034 from opentx/navigation_files_splitted
...
Navigation methods splitted to avoid a lot of #ifdef
2018-07-11 16:39:02 +02:00
Bertrand Songis
5eff34ce8a
Navigation methods splitted to avoid a lot of #ifdef
2018-07-11 15:17:14 +02:00
Bertrand Songis
db1d3fcb32
Remaining CPUARM removed
2018-07-11 13:33:51 +02:00
Bertrand Songis and GitHub
3f1d09bc68
Merge pull request #6016 from opentx/schwabe/removeAVR
...
Remove a lot more AVR specific code
2018-07-11 13:19:23 +02:00
Max Paperno
c408c30bc1
Fix libsimulator build MSVC warnings introduced in commit 6110bbc.
2018-07-09 13:06:38 -04:00
Max Paperno
6110bbce98
Support Companion build with clang-cl on Windows (fw/libsimu not working yet due to compiler-specific macros in that code).
2018-07-09 12:02:26 -04:00
Max Paperno
d507dbb5dd
Add SIMU_TARGET build option to exclude libsimulator & simu from all/install.
2018-07-09 11:53:38 -04:00
Max Paperno
e24a736fc9
Merge branch '2.2' into 2.3
2018-07-08 21:01:01 -04:00
Bertrand Songis and GitHub
3540015132
Merge pull request #6002 from opentx/raphaelcoeffic/rle_bitmaps
...
[Horus] save space in bootloader and firmware by using RLE compression
2018-07-08 16:47:22 +02:00
Kilrah
1383afb36f
Use BT detection on X-Lite too (current prod has no module, preprod has one, future batches unknown)
2018-07-08 15:49:10 +02:00
Raphael Coeffic
1fec7a7c51
enabled USB_SERIAL on Horus by default
2018-07-06 10:01:09 +02:00
Raphael Coeffic
25c02b96f3
add LUA access to serial port (serial2 and USB)
2018-07-06 10:01:09 +02:00
Raphael Coeffic
7806382d8e
add RLE support for other bootloader bitmaps as well
2018-07-06 08:59:34 +02:00
Raphael Coeffic
96afa57d84
use RLE compressed fonts on Horus
2018-07-06 08:59:34 +02:00
3djc
5dd365238e
Merge branch '2.2' into 2.3
2018-07-06 07:16:27 +02:00
Raphael Coeffic and Bertrand Songis
4880497db5
generate_datacopy.py fixes ( #6015 )
...
* fix generate_datacopy on osx
* more datacopy fixes
* added support for linux & llvm-3.8 (default on debian stretch)
2018-07-05 19:04:28 +02:00
Arne Schwabe
aa5d8c4ba7
Remove remaining references to Mavlink
2018-07-05 12:05:55 +02:00
Arne Schwabe
c75d873b91
Remove CASE_CPUARM and IF_CPUARM macros
2018-07-05 12:05:55 +02:00
Arne Schwabe and 3djc
aa1493cad0
Use nano.spec for linking bootloader ( #6004 )
...
This saves about 2kB on the Taranis X-Lite
(cherry picked from commit 5dd0ac7 )
2018-07-05 08:43:46 +02:00
3djc
dd632969f3
Massive clean thanks to Schwabe : unifdef -m -DCPUARM -UCPUM64 -UCPUM2560 -UPCBSTD -UPCBMEGA2560 -UPCBGRUVIN9X -UPCB9X $(find . -name "*.cpp" -or -name "*.h")
2018-07-05 08:04:55 +02:00
3djc
c032b30247
avr-remove remove files in main dir and targets
2018-07-03 09:44:03 +02:00
Arne Schwabe and Bertrand Songis
5dd0ac75bc
Use nano.spec for linking bootloader ( #6004 )
...
This saves about 2kB on the Taranis X-Lite
2018-06-30 17:40:33 +02:00
Arne Schwabe
a26879dca8
Revert "Remove -nostartfiles linker option from bootloader ( #5996 )"
...
This reverts commit 17b4aa2466 .
Removing the -nostartfiles caused the Taranis bootloader to include
a number of strange functions. Instead define _fini to avoid the linker
issues.
2018-06-30 00:46:50 +02:00
Arne Schwabe
429d55769c
Revert "Remove -nostartfiles linker option from bootloader ( #5996 )"
...
This reverts commit 17b4aa2466 .
Removing the -nostartfiles caused the Taranis bootloader to include
a number of strange functions. Instead define _fini to avoid the linker
issues.
2018-06-30 00:39:54 +02:00
Yannick Richter and Bertrand Songis
9cbd0b9813
Full 11 bit USB HID gamepad resolution and fixed offsets for compatibility ( #5825 )
...
* Changed USB Gamepad resolution to full 11 bit and fixed offset issues for some games
* Changed USB Gamepad resolution to full 11 bit and fixed offset issues for some games
* Changed USB Gamepad resolution to full 11 bit and fixed offset issues for some games
2018-06-29 08:07:30 +02:00
Arne Schwabe and Bertrand Songis
968e7233e5
Clean up PWM stick reads, remove double averaging ( #5995 )
...
We already do averaging in the normal anaIn/getADC().
Also according to Mike's and my own research we don't need the averaging.
Tested on two X-Lites with PMW sticks
2018-06-27 16:10:27 +02:00
Arne Schwabe and Bertrand Songis
17b4aa2466
Remove -nostartfiles linker option from bootloader ( #5996 )
...
* Remove -nostartfiles linker option from bootloader
Compiling with this option creates undefined references to _fini
* Remove now empty init.c
2018-06-27 16:09:12 +02:00
3djc and Andre Bernet
bd1c9274b3
Xlite adc stick fix ( #5972 )
...
* Xlite ADC stick order fix
* In the right order this time
2018-06-16 11:24:39 +02:00
3djc and Andre Bernet
9bdd0c682d
Fix 2.2.2RC1 no gvar compile ( #5961 )
...
* Make model_gars.cpp flag dependend
* Cosmetics
2018-06-11 19:05:40 +01:00
Raphael Coeffic and Bertrand Songis
a6afbebc94
support for CLI (over USB CDC) without DEBUG ( #5940 )
2018-06-03 23:17:29 +02:00
Arne Schwabe and Bertrand Songis
ce77fbd2ff
No longer use deprecated qt5_use_modules ( #5931 )
...
QT 5.11 finally removes the qt5_use_modules macro.
Instead target_link_libraries with the Qt5::Lib added should be used.
Since we already use that in one place, it should work everywhere. Since
the common companion lib already depends on Core, widges and multimedia
components that link against it, also implicitly link against those
libraries.
2018-06-02 18:14:49 +02:00
Kilrah
a1de19c105
Xlite simu shift working, dirty hack to get mouse wheel to do the right thing
2018-05-22 23:09:32 +02:00
Kilrah
f0bea027c1
Match voltage settings and fix simu giving voltage below default min
2018-05-22 22:27:59 +02:00
Kilrah
a368d74619
Revert "Xlite PPM/Heartbeat trainer input ( #5881 )"
...
This reverts commit 25049d041d .
2018-05-21 11:17:19 +02:00
Andre Bernet and Bertrand Songis
8e7e036591
Potential fix for #5895 ( #5897 )
...
Fixes #5895
2018-05-21 10:43:44 +02:00
Andre Bernet and Bertrand Songis
25049d041d
Xlite PPM/Heartbeat trainer input ( #5881 )
...
* Xlite PPM/Heartbeat trainer input
* UI adaptations
* Sky9x has no trainer settings!
2018-05-21 10:06:59 +02:00