1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00
Commit graph

121 commits

Author SHA1 Message Date
mikeller
3c7a495716 Changed failsafe warning back to '\!FS\!'. 2019-05-04 22:47:30 +12:00
Michael Keller
5ab38e24f2
remove extra spaces in src/main/osd/osd_elements.c (#8147)
remove extra spaces in src/main/osd/osd_elements.c
2019-05-04 14:55:47 +12:00
laz2wiringpi
a4fcceb04b code style issues 2019-05-02 09:51:32 -04:00
root
6885d27400 comment out unused symbols, use some symbols
Also turns out the Core Temperature widget is subjected to unit tests
2019-05-01 22:17:56 +00:00
root
a8a997fb59 Add new symbols to max7456_symbols.h
Fixes the crosshair
Also changed GPS LAT and LON elements to use new symbols
2019-05-01 00:12:45 +00:00
Michael Keller
45daf97f2b
Merge pull request #8010 from TonyBlit/fix_fs_flymode
Replaced !FS! fly mode with *FS* due to missing '!' in OSD font
2019-04-19 13:40:07 +12:00
Michael Keller
edcacb9f0d
Merge pull request #7994 from krzysztofmatula/km-on-arm-timer
OSD: combined ON/ARM timer
2019-04-19 13:38:56 +12:00
Michael Keller
db5c14da02
Merge pull request #8017 from ianrmurphy/rssi-lq-warnings
Added RSSI and Link Quality warnings
2019-04-17 05:49:27 +12:00
Michael Keller
01e0c95810
Merge pull request #7952 from jirif/vbat_digits
Show only 3 significant digits in vbat OSD element
2019-04-16 00:17:23 +12:00
ianrmurphy
11dd4e7598 Added warnings for RSSI and Link Quality, added Link Quality alarm. 2019-04-15 00:24:20 +01:00
Tony Cabello
e276976b28 Replaced !FS! fly mode with *FS* due to missing exclamation mark in OSD font 2019-04-14 18:17:22 +02:00
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