1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00
Commit graph

60 commits

Author SHA1 Message Date
jirif
5d30b3f437 Show only 3 significant digits in vbat OSD element 2019-04-14 15:41:44 +02:00
Krzysztof Matula
24bf8050c1 OSD: combined ON/ARM timer 2019-04-12 22:41:22 +02:00
Bruce Luckcuck
3f0fe85b98 Fix OSD crash if vario element is enabled but not supported by target
Missing `#ifdef USE_VARIO` around the element definition.
2019-04-12 15:52:47 -04:00
Tony Cabello
16eda6e203 Avoid altitude to blink if its value exceeds the alarm threshold when not armed, as it's showing altitude over sea level instead of flight altitude. 2019-04-08 06:37:08 +02:00
Bruce Luckcuck
138f403204 Fix OSD stats alignment and formatting
Fixes the alignment and formatting of the following stats:
* Max altitude
* Max speed
* Max ESC temperature
2019-03-26 13:37:21 -04:00
Michael Keller
92ed1be027
Merge pull request #7730 from TonyBlit/fix_resc_off
Fix timed GPS RESCUE OFF message condition
2019-03-09 21:52:49 +13:00
Tony Cabello
e279420dd7 Fix RESCUE OFF message timed condition and literal.
Changed RESCUE N/A message literal to be coherent with RESCUE OFF.
2019-03-08 15:17:39 +01:00
jack
45a35eb42d adding rpm and rpm frequency for each motor to osd. It uses either Bidirectional Dshot or ESC telemetry to work out the rpm. Bidirectional Dshot takes precedency over ESC telemetry. 2019-03-07 20:51:43 +11:00
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
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