Commit Graph
102 Commits
Author SHA1 Message Date
Bertrand Songis 8bd4f0b7de Fonts refactoring (no more font list in libopenui) 2019-10-22 10:25:18 +02:00
Bertrand Songis 1d8c5d38e4 BitmapBuffer::load renamed to BitmapBuffer::loadBitmap 2019-10-21 21:06:43 +02:00
Bertrand Songis 5ef575132f Window::~Window() is now in charge of calling deleteLater for all children 2019-10-20 11:14:35 +02:00
Bertrand Songis 9bf7563a02 lcdNextPos not needed anymore 2019-10-19 19:26:14 +02:00
Bertrand Songis e2f84b8047 Cosmetics 2019-10-19 13:03:08 +02:00
Bertrand Songis 5e111dd00c Bitmaps encoder script rewritten 2019-10-16 17:46:38 +02:00
Bertrand Songis 920af0f7a5 Latest updates 2019-10-16 08:18:36 +02:00
Bertrand Songis 7bad66db1c Latest libopenui updates 2019-10-11 19:44:06 +02:00
Bertrand Songis 078cf3ba86 Latest libopenui updates 2019-10-11 18:30:24 +02:00
Bertrand Songis 887616091b libopenui latest updates 2019-10-10 13:58:15 +02:00
Bertrand Songis a9838378ce Cosmetics 2019-10-07 08:44:56 +02:00
Bertrand Songis ae548b9814 New UI continued 2019-10-05 19:01:57 +02:00
Bertrand Songis 6504b4f69c Compilation fix 2019-10-05 08:21:06 +02:00
Bertrand Songis d9eb9c3a4d Cosmetics 2019-10-04 19:38:13 +02:00
Bertrand Songis 9e152b8fba Cosmetics 2019-10-04 19:32:10 +02:00
Bertrand Songis 9dd219d33c Cosmetics 2019-10-04 19:03:39 +02:00
Bertrand Songis 7ab886064b Updates 2019-10-04 15:14:43 +02:00
Bertrand Songis 1da95fdcdd More code moved to the theme 2019-10-04 11:45:31 +02:00
Bertrand Songis 447534137d Compilation fixes 2019-10-03 23:05:00 +02:00
Bertrand Songis a7ec12f878 Compilation fixes 2019-10-03 00:16:13 +02:00
Bertrand Songis 3581dce96b Update to latest FatFS version 2019-10-02 17:53:22 +02:00
Bertrand Songis 338413328f git remove MAVLINK submodule 2019-10-02 16:33:18 +02:00
Bertrand Songis 6740400399 git module fight 2019-10-02 16:29:08 +02:00
Bertrand Songis aa97be46da attempt to use libopenui master 2019-10-02 16:08:13 +02:00
Bertrand Songis 3e2cb83991 Now uses the external libopenui 2019-10-02 14:41:52 +02:00
Bertrand Songis f4f8893ae9 New UI merged 2019-08-28 20:50:14 +02:00
Bertrand Songis 9b6a2201bf Compilation fix 2019-08-28 12:28:07 +02:00
Bertrand Songis 3f47ec8f1c Compilation fix 2019-08-28 11:43:40 +02:00
Bertrand Songis e7736f3fdc Replace NULL by nullptr 2019-08-28 10:28:11 +02:00
Kilrah dc1987e0ab missing option 2019-05-04 11:12:29 +02:00
Bertrand Songis 6de4f22efb Framing 1ms for STM32 boards ... 2019-02-01 16:56:42 +01:00
Bertrand Songis f3bfde242b RTOS refactoring + more AVR removal 2018-08-05 12:06:48 +02:00
Bertrand Songis db1d3fcb32 Remaining CPUARM removed 2018-07-11 13:33:51 +02:00
Arne Schwabe e76d1d0c3d Remove unused telemetry protocols 2018-07-05 12:05:55 +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
Bertrand SongisandGitHub 99604dccc9 XLite support (#5806) 2018-04-25 23:07:04 +02:00
Arne SchwabeandBertrand Songis 4925e756a6 Save memory (move usb mass storage buffer to reusableBuffer) (#5579)
* Save 128 byte by moving variable to stack

* Make usb mass storage buffer smaller on F2 processors and put into reuseablebuffer

- Lower USB mass storage buffer to 512 bytes per default on F2
  targets, makes usb speed slightly slower ~600 kB/s instead ~700 KB/s
  in my tests, saving 3584 bytes
- Save another ~300 bytes by putting that buffer into reusableBuffer

* Don't put id into reusuableBuffer

All uses of id can be on the stack as well. Makes no difference for ram usage but makes it safer to reuse reusableBuffer

* Only link cdc serial when needed

We always linked usb cdc even in non debug builds. CDC uses about ~600 byte of RAM for its buffers and structures.
2018-01-26 19:00:47 +01:00
Arne SchwabeandBertrand Songis b7acee5723 Allow USB mode selection on USB connect (#5193)
Allow all USB modes to be compiled in at the same time
2017-09-10 17:28:08 +02:00
Damjan AdamicandBertrand Songis 73f4b8f172 Projectkk2glider/issue 4827 (#4855)
* Reverting a part of f94b4c743d that deals with the size of table hash. Fixes 4827, but uses more memory and CPU.

* New internal Lua traces
2017-04-26 21:45:46 +02:00
3djcandBertrand Songis fa951acf40 Review line ending handling (#4820)
* New line end handling rules

* Normalize all the line endings
2017-04-19 10:54:43 +02:00
Damjan Adamic acfeb7b47a Closes #4560: Lua uses double (again) for numbers. The float usage was not good for bit32 library where only ~24bits (out of 32) were correct, others were lost. This is supposed to be a temporary solution. 2017-03-06 18:21:41 +01:00
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
altemanandBertrand Songis 4a2bbc665c Update thirdparty/GCS_MAVLink sync script to work with updated mavlink repo (#4548) 2017-03-04 10:16:21 +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 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 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 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
Max PapernoandBertrand Songis 3542c8b807 Make build setup a little more Windows-friendly (#4435)
* [build][CMake] Use `find_package(Git)` to confirm existence before trying to use git for version stamp; Use friendlier detection of grep executable on Windows; Use "del" on Windows instead of "rm".

* [build][Windows] Include dirent and msinttypes headers in source tree.

* Remove grep dependency for lua exports generation

* Sneaky pythons hiding in code.

* [build] Change `git_id` macro to skip check if no git directory is present, also now fails gracefully; Fix `today` macro on Windows; Report git revision; Make sure QtSvg module is found.
2017-02-11 22:23:07 +01:00
Damjan AdamicandBertrand Songis 82dce3ee60 Projectkk2glider/flash savings (#4199)
* Flash savings: getFileExtension() de-templated, saves 160 bytes

* Flash savings: several variables moved to rodata, RGB macro optimization (speed and can now be used to initialize rodata)

Result for Horus:
   text	   data	    bss	    dec
1261182	 808603	  42020	2111805   before
1267149	 803335	  42124	2112608   after (data size also counts .sram section)

5kB saved in .data section (RAM and FLASH)

* Removed compiler warnings

* RGB() and ARGB() gtests added

* ARGB() optimized
2017-01-05 21:44:59 +01:00