1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 19:40:31 +03:00
Commit graph

372 commits

Author SHA1 Message Date
mikeller
ac6bbf7e40 Make 'unknown command' appear as an error as well. 2019-02-22 09:02:58 +13:00
Bruce Luckcuck
30672a37c5 Refactor OSD element display code
Remove the giant `select` block that contained all the code to generate the elements and transition them to individual functions called only when the element is active. Simplifies the code and results in a performance improvement as it's not necessary to fall through the large `select` statement for every element that will be drawn. The individual functions and the element to function mapping are moved to a new `osd_elements.c` file.

Moved the OSD related code files to a new `osd/` directory.

Also pre-analyze the active elements and only process those that are active. This also saves processing as it's not necessary to loop through all 50 or so elements when only a couple are active.

Various other cleanup and removal of stale or unnecessary code.

In the default configuration the element drawing phase of the OSD task is reduced from ~51us to ~35us - resulting in about a 30% decrease in processing time.
2019-02-21 14:03:25 -05:00
mikeller
31e8b0425c Put the 'CORRUPTED CONFIG' message on a line of its own as well. 2019-02-22 03:50:01 +13:00
mikeller
bad72c884a Make errors in 'diff' / 'dump' easier to spot and parse. 2019-02-22 02:11:13 +13:00
mikeller
4d03e9b5a6 Put display name in CLI 'diff' in a better position. 2019-02-22 02:00:35 +13:00
Dave Huber
e11d113653 Fixed cliAux acknowledge to show permanentId's 2019-02-17 01:06:06 -06:00
Michael Keller
26c1177cdb
Merge pull request #7541 from mikeller/excise_use_acc
Applied 'USE_ACC' consistently.
2019-02-08 19:48:00 +13:00
AJ Christensen
9076310150 CLI: Fix reference to 'MAX_PROFILE_COUNT' 2019-02-08 12:13:46 +13:00
mikeller
b5908f5bab Applied 'USE_ACC' consistently. 2019-02-08 09:51:48 +13:00
Michael Keller
59ea4becb3
Merge pull request #7516 from mikeller/add_automatic_pid_profile_switching
Added battery cell count based automatic PID profile switching.
2019-02-08 09:28:07 +13:00
Michael Keller
3672bead17
Merge pull request #7542 from mikeller/add_mcu_type_msp
Added the MCU type to MSP.
2019-02-07 23:55:21 +13:00
mikeller
b93b345830 Added the MCU type to MSP. 2019-02-07 00:16:13 +13:00
jflyper
96fc6dc934 CLI parser for vtxtable 2019-02-06 15:24:02 +09:00
Bruce Luckcuck
42af168854 Optimize rc modes activation conditions processing
Analyze the rc modes activation conditions and only process configured entries. Previously the entire possible list was processed even though typically only a handful are configured.

Reduces the RX task processing time by about 25% (~44us to ~33us) with an average setup of 3 modes configured (F405, SBUS). Processing time savings will diminish as the user configures more modes. But typically far fewer than the maximum of 20 will be configured.
2019-02-05 16:05:16 -05:00
mikeller
e121e1e92b Separated LED_STRIP parameter groups, separated out LED_STRIP status mode code. 2019-02-05 08:39:42 +13:00
Michael Keller
7411e10482
Merge pull request #7519 from mikeller/fix_cli_profile_setting
Fixed range detection for setting of PID / rate profiles in CLI.
2019-02-04 19:28:45 +13:00
mikeller
299d96fdc7 Added battery cell count based automatic PID profile switching. 2019-02-04 13:15:43 +13:00
mikeller
f0f6f46eeb Fixed range detection for setting of PID / rate profiles in CLI. 2019-02-03 14:42:26 +13:00
mikeller
f5a979c737 Added support for full range uint16_t parameters in CLI. 2019-02-03 11:14:07 +13:00
mikeller
f7134580f8 Fixed missing conditional, incremented parameter group version, added
config reset.
2019-02-01 07:53:09 +13:00
Sean M
09fce7f1fa Adding display name to OSD and CLI 2019-02-01 01:11:40 +13:00
mikeller
38e1ce04df Reorganised interfaces, putting them where they are used. 2019-01-27 13:38:22 +13:00
Renamed from src/main/interface/cli.c (Browse further)