1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 22:05:17 +03:00
Commit graph

11315 commits

Author SHA1 Message Date
Bruce Luckcuck
4a13c48adf Fix OSD active elements init logic to handle delayed items with delayed activation
Track the state of `sensors(SENSOR_GPS)` and rebuild the active OSD element list when it changes. The GPS sensor can have delayed activation or even deactivate if communication is lost with the module.

Also move the `BOXBLACKBOX` check from the initialization to the runtime element drawing as it can also change in flight.
2019-02-23 18:21:59 -05:00
mikeller
fad7ee3464 Fix missing 'platform.h' includes in compilation units, and make them stay away. 2019-02-23 17:49:25 +13:00
Michael Keller
9bf65ba628
Merge pull request #7638 from jflyper/bfdev-tramp-display-invalid-vtxtable-if-band-or-power-count-is-zero
[VTX, TRAMP] Display a message if band or power count is zero
2019-02-23 16:22:40 +13:00
Michael Keller
44a1dca99c
Merge pull request #7637 from AndersHoglund/spektrum_tm_fix_rpm
Spektrum TM. Fix RPM divide by zero problem.
2019-02-23 13:45:15 +13:00
Michael Keller
f2bbbdb8ca
Merge pull request #7636 from etracer65/use_esc_sensor_dependencies
Fix compilation errors if USE_ESC_SENSOR is not defined
2019-02-23 13:44:41 +13:00
Michael Keller
e22e7e1637
Merge pull request #7635 from mikeller/make_errors_spottable
Make errors in 'diff' / 'dump' easier to spot and parse.
2019-02-23 13:44:20 +13:00
Michael Keller
b1949de21c
Merge pull request #7634 from joelucid/rpm_filter_v3
Fix rpm telemetry pre-filtering
2019-02-23 13:44:01 +13:00
Michael Keller
d86310bea2
Merge pull request #7633 from mikeller/reorder_cli_diff
Put display name in CLI 'diff' in a better position.
2019-02-23 13:43:30 +13:00
Michael Keller
aed1e51cf6
Merge pull request #7632 from mikeller/rename_generic_target_unified_target
Renamed 'GENERIC_TARGET' to 'USE_UNIFIED_TARGET'.
2019-02-23 13:43:02 +13:00
Michael Keller
bd40489492
Merge pull request #7614 from etracer65/optimize_osd_elements_display
Refactor OSD element display code
2019-02-23 13:42:04 +13:00
Bruce Luckcuck
09b5adece4 Fix compile warnings when USE_BEEPER is not defined
If USE_BEEPER is undefined but the BEEPER_PIN or BEEPER_PWM_HZ are defined then there was a compile warning becasue they get redefined in beeper.c.
2019-02-22 16:54:41 -05:00
4712
c7357e06d4 Update serial 4way-if to v20003
Added STM23L431x and STM32G071x MCU.
Increased timeout for flash erase.
2019-02-22 21:55:09 +01:00
jflyper
a66c03cafc Display a message if band or power count is zero 2019-02-22 11:41:33 +09:00
Anders Hoglund
0b4bbaa164 Spektrum TM. Fix RPM divide by zero problem. 2019-02-21 23:27:54 +01:00
Dave Huber
6a67972c6c Updated linked mode processing
Allows links and ranges in a single mode.
Code styling changes.
Add config validation for chained links (not allowed).
2019-02-21 14:45:52 -06:00
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
Michael Keller
06d9f54f77
Merge pull request #7627 from hydra/bf-fix-test-cygwin-issue
TESTS - Prevent -pthread and --coverage from creating errors when building using clang on cygwin.
2019-02-22 04:52:59 +13:00
Michael Keller
5914bf7251
Merge pull request #7624 from hydra/bf-hardfault-leds
Toggle all LEDs for hard-faults.
2019-02-22 04:52:03 +13:00
Michael Keller
405ff95f8e
Merge pull request #7619 from AndersHoglund/spektrum_tm_rpm
Spektrum TM. Added ESC combined average RPM.
2019-02-22 04:51:44 +13:00
Michael Keller
58fad9779f
Merge pull request #7622 from betaflight/bf-add-gpio-port-h
Add GPIO 'H'.
2019-02-22 04:47:43 +13:00
Bruce Luckcuck
a998b89a2a Fix compilation errors if USE_ESC_SENSOR is not defined 2019-02-21 09:54:55 -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
Thorsten Laux
836985cf47 use different max for dterm and gyro based on each sample rate 2019-02-21 13:52:45 +01:00
mikeller
735d48f2f5 Renamed 'GENERIC_TARGET' to 'USE_UNIFIED_TARGET'. 2019-02-22 01:44:49 +13:00
Thorsten Laux
f90e9e51f9 filter fix 2019-02-21 13:29:30 +01:00
Michael Keller
e053965489
Merge pull request #7586 from betaflight/cms-memory-optimizations-1
CMS memory optimizations 1
2019-02-22 00:11:43 +13:00
J Blackman
d9e9056cf6
Merge pull request #7618 from blckmn/target_dir_cleanup
Moved hal config headers etc to ./src/main/startup
2019-02-21 03:09:03 +11:00
Dominic Clifton
622e8be944 TESTS - Prevent -pthread and --coverage from creating errors when
building using clang on cygwin.
2019-02-20 15:24:00 +01:00
Dominic Clifton
456ebfa9be Toggle all LEDs for hard-faults.
* If they all flash yo have a better chance of finding it.
* Boards with only 1 LED (LED0) had no indication of failure.
2019-02-20 14:20:49 +01:00
mikeller
541ba7072f Updated styling of file to be generated, generated the file. 2019-02-21 01:49:09 +13:00
Dominic Clifton
5cbdd51bf4 Add GPIO 'H'. 2019-02-20 13:30:37 +01:00
mikeller
0b95ce6335 Added 'do ... while (0)' to function syntax defines. 2019-02-21 01:14:09 +13:00
Anders Hoglund
fe45689ea8 Spektrum TM. Added ESC combined average RPM. 2019-02-20 12:25:25 +01:00
blckmn
1bedb1b911 Moved hal config headers etc to ./src/main/startup 2019-02-20 18:24:16 +11:00
Anders Hoglund
3ba2799867 Spektrum TM. Core Temp added to RPM report. Added some symbolic names for magic numbers. 2019-02-19 23:19:53 +01:00
Michael Keller
637f5b1ca3
Merge pull request #7599 from AndersHoglund/spektrum_tm_cell_voltage
Spektrum TM, added support for cell voltage.
2019-02-20 06:52:04 +13:00
Michael Keller
7f3a9e4c8b
Merge pull request #7589 from etracer65/arming_disabled_count
Fix arming disabled flags count
2019-02-20 06:51:02 +13:00
Michael Keller
08004e2652
Merge pull request #7605 from jflyper/bfdev-fix-hard-fault-in-cms-VTX_TR-menu
[CMS, TRAMP] One level back if Tramp is not configured
2019-02-20 06:42:28 +13:00
Michael Keller
3114d2e562
Merge pull request #7596 from etracer65/unused_macro_hal_conflict
Fix UNUSED() macro conflict with STM libraries
2019-02-19 09:22:10 +13:00
Bruce Luckcuck
02a368a8e7 Fix UNUSED() macro conflict with STM libraries
Added `#if !defined(` blocks around the `UNUSED()` definitions in the libraries to prevent conflicts.
2019-02-18 11:26:03 -05:00
J Blackman
12a843ae4d
Merge pull request #7603 from fujin/smartaudio-lite-softserial
SmartAudio Lite compatibility: Send 0x00 bit(s) (always) even with Soft Serial.
2019-02-19 01:55:36 +11:00
Michael Keller
839d4072b6
Merge pull request #7593 from dthubereng/mode_range_extras_link_permanentid
Fix MSP_MODE_RANGES_EXTRA link to permanentId
2019-02-19 01:58:06 +13:00
jflyper
69f6088497 One level back if Tramp is not configured 2019-02-18 21:31:36 +09:00
Michael Keller
7fe45f40bc
Merge pull request #7483 from joelucid/airmode_noise_fix
Airmode noise fix
2019-02-19 00:54:12 +13:00
Michael Keller
e5e45faa9b
Merge pull request #7595 from dthubereng/aux_cli_linkedto_fix
Fixed cliAux acknowledge to show permanentId's
2019-02-19 00:09:14 +13:00
Thorsten Laux
e16ef1db4f First attempt low throttle airmode oscillation fix
raise dc offset immediately

Add airmode noise fix

no filter when inactive and slightly more throttle

hpf throttle to avoid large moves increasing throttle persistently

fix ws

fix ununsed variable and default to off

include airmode throttle offset in loggingThrottle
2019-02-18 23:48:36 +13:00
AJ Christensen
ca2c9ecf84 SmartAudio Lite compatibility: Send 0x00 bit even with Soft Serial. 2019-02-18 21:46:06 +13:00