1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00
Commit graph

398 commits

Author SHA1 Message Date
Bruce Luckcuck
05cc74a4ae Extend OSD warnings storage to 32bits; add count to MSP
Extends the possible OSD warnings elements from 16 to 32.

Adds a warnings count to MSP data to enable improved handling of warnings added to the firmware but not in the Configurator. Incremental Configurator development required.
2019-01-17 19:46:58 -05:00
Michael Keller
b0e06d2e26
Merge pull request #7395 from TonyBlit/gps_rescue_disabled_warning
GPS Rescue disabled warning
2019-01-16 23:53:29 +13:00
Michael Keller
305f2c213a
Merge pull request #7285 from jflyper/bfdev-vtx-table-refactor
[VTX] Convert direct reference to string and freq table to vtxCommon services
2019-01-16 07:16:11 +13:00
Tony Cabello
ec71965dd8 GPS Rescue disabled warning 2019-01-15 17:34:04 +01:00
jflyper
d8f55f35ef Convert direct reference to string and freq table to vtxCommonXXX services 2019-01-14 11:31:45 +09:00
Michael Keller
7f58ecc77f
Merge pull request #7294 from TonyBlit/gps_rescue_no_mag
Mag heading ignored while GPS Rescue is running
2019-01-13 23:14:06 +13:00
Tony Cabello
25a499cc9a Mag heading optionally ignored while GPS Rescue is running
If flyaway condition is met and a mag is in use, mag is disabled and countdown is reset
Minor cleanup
2019-01-11 06:26:01 +01:00
Tony Cabello
99778b5a6e Hide OSD Altitude and Numeric Vario when no GPS fix 2019-01-11 06:14:57 +01:00
mikeller
e4383b5a36 Simplified conditionals for using gyro data analysis. 2018-12-30 01:31:06 +13:00
Michael Keller
770e883d87
Merge pull request #7292 from kmitchel/fft_osd
Add max FFT to OSD Summary
2018-12-29 22:22:36 +13:00
Michael Keller
78ab31f31f
Merge pull request #7255 from fgiudice98/master
Increased Vbat precision
2018-12-29 20:10:25 +13:00
Kenneth Mitchell
ab4ff72cc2
Add max FFT to OSD Summary 2018-12-27 14:50:09 -06:00
fgiudice98
9d5fb85474 Increased vbat precision 2018-12-25 12:00:45 +01:00
Bruce Luckcuck
7d263667de Prioritize pre-flight OSD warnings
Rearranges the OSD warnings element messages to prioritize the pre-flight warnings. Previously other warnings could override the crash flip or launch control warnings - leading to safety issues.
2018-12-23 15:57:03 -05:00
Michael Keller
e80a68f8db
Merge pull request #7256 from pkruger/6839-feature-add-rescue-unreliable-now-OSD-indication-for-risky-flights
Add GPS rescue unreliable now warning in OSD
2018-12-24 09:38:12 +13:00
Pieter Kruger
fdb9948f53 Add GPS rescue unreliable now warning in OSD 2018-12-23 14:34:35 +10:00
mikeller
468d8a3af5 Added 'small_angle' indicator to OSD flip arrow. 2018-12-20 01:20:49 +13:00
Michael Keller
556f0b2ada
Merge pull request #7188 from etracer65/fix_osd_throttle_pos
Fix OSD throttle position element calculation and add 3D support
2018-12-11 01:19:54 +13:00
Pieter Kruger
ef459cb161 Add OSD Stick Overlay feature - fix issue 3988 2018-12-09 21:42:45 +10:00
Bruce Luckcuck
5ed1bbb2a9 Fix OSD throttle position element calculation and add 3D support
Previously the Throttle Position element calculation was based solely on the raw rcCommand value and didn't take into account the min_check deadzone so the resulting displayed percentage was incorrect. Also 3D trottle handling was not considered.

Corrected the calculation and added support for 3D throttle modes. Reversed thrust will be represented with negative throttle percentages.
2018-12-08 12:58:06 -05:00
Michael Keller
586eef94e5
Merge pull request #7183 from TonyBlit/gps_flight_distance
Total Distance renamed to Flight Distance
2018-12-08 22:41:42 +13:00
Tony Cabello
bbacb7ca28 Total Distance renamed to Flight Distance 2018-12-08 06:57:36 +00:00
Tony Cabello
93bf8b2186 OSD GPS indicator blinks when numSats is below 5 2018-12-04 09:19:45 +01:00
Michael Keller
b6408b3a32
Merge pull request #6714 from pkruger/4155-feature-for-osd-elements-on-a-switch
4155 feature for osd elements on a switch
2018-12-04 02:25:57 +13:00
Pieter Kruger
8d981df1a9 Add OSD Profile feature - issue 4155 2018-12-01 17:51:38 +10:00
Tony Cabello
eadddf90af Blink GPS indicator on OSD when numsats is lower than minimum configured for GPS Rescue 2018-11-30 05:54:34 +01:00
Tony Cabello
13a4561cf3 Motor diag showing low positions on idle 2018-11-19 22:38:08 +01:00
Bruce Luckcuck
b5cb1bf65a Add osd_ah_invert to allow reversing the direction of the OSD artificial horizon 2018-11-10 15:28:10 -05:00
Michael Keller
b58e8f827f
Merge pull request #7056 from etracer65/fix_osd_warning_blinking
Improve behavior of OSD warnings element blinking
2018-11-10 20:00:10 +13:00
Tony Cabello
7abe51303f Total distance flown added to OSD and Stats 2018-11-08 15:40:30 +01:00
Bruce Luckcuck
38c940c11e Improve behavior of OSD warnings element blinking
Previously the logic to blink the warnings element was based on whether batteryState was either BATTERY_WARNING or BATTERY_CRITICAL. The problem is that the warning element might be displaying a higher priority message that shouldn't blink.

Changes the logic to have the blinking based on the actual warning message displayed.

In addition to the battery warning/critical cases, added blinking for some other critical warnings like failsafe, CPU core temp warning, ESC sensor warnings, HEADFREE mode active, and RC smoothing not initialized.
2018-11-07 18:35:32 -05:00
Bruce Luckcuck
98641cde75 Suppress OSD stats if disarming from crash-flip or untriggered launch control
The OSD stats provide no meaningful information and are just an annoyance when exiting these special states.

For Launch Control the stats will be displayed if the launch is triggered and normal flight occurrred.
2018-11-04 09:57:02 -05:00
mikeller
79fd505a8c Changed warning to only be shown when armed. 2018-11-04 13:37:39 +13:00
mikeller
286f21150c Unified warning activation conditions. 2018-11-03 19:25:43 +13:00
mikeller
99eab92200 Added 'crash flip active' to the list of warnings to be shown on LED_STRIP. 2018-11-02 01:48:06 +13:00
Michael Keller
c0344496ca
Merge pull request #6992 from etracer65/launch_control
Launch Control
2018-11-02 00:49:42 +13:00
Michael Keller
ace5017cc8
Merge pull request #6480 from pulquero/osd_frame_errors_3_5
Added frame quality to OSD.
2018-11-01 22:24:20 +13:00
Mark Hale
9b9a86e4c5 Added rx link quality indicator (based on rx frame error rate) to OSD. 2018-10-30 17:31:25 +00:00
Maciej Janowski
9656dbba40 Merge branch 'master' of https://github.com/betaflight/betaflight into motor-diag
# Conflicts:
#	src/main/io/osd.c
#	src/main/io/osd.h
#	src/test/unit/osd_unittest.cc
2018-10-29 21:16:24 +01:00
Maciej Janowski
3d2d5a2efa Initial implementation
Percentage implementation

Settings fix, formatting

Add support for different number of motors

Optimize and cut superfluous code

Hard-add mixer.h

Formatting adjustment to fit BF standards, linking error in unittest fix attempt

Add stubs and variables for unittests

Character based indicators

Change output to special characters

Fix spacing

Update test code, add variable

Include changes as per peer review
2018-10-29 21:09:46 +01:00
Bruce Luckcuck
e4dc93b128 Launch Control
Adds a race start assistance system that allows the pilot to pitch forward and then release the sticks with the quad holding position for the race start.
2018-10-27 11:50:37 -04:00
Michael Keller
f912b891b5
Merge pull request #6952 from mikeller/improve_airmode_detection
Improved handling of airmode detection.
2018-10-25 00:41:50 +13:00
Michael Keller
05f935d38e
Merge pull request #6974 from etracer65/osd_remaining_time_div0
Fix OSD time remaining division by zero
2018-10-24 23:47:57 +13:00
Michael Keller
8ae0e929d1
Merge pull request #6973 from etracer65/osd_temperature_cleanup
OSD temperature display and calculations cleanup
2018-10-24 23:47:40 +13:00
Michael Keller
52b876a2a5
Merge pull request #6970 from etracer65/osd_gforce_fix
Improve OSD g-force display and avoid math when not needed
2018-10-24 23:46:22 +13:00
Michael Keller
9a4a3507f2
Merge pull request #6967 from jflyper/bfdev-fix-add-USE_ESC_SENSOR-conditional-to-OSD-stat-max-ESC-temp
OSD: Protect ESC stat max temp by USE_ESC_SENSOR
2018-10-24 23:43:50 +13:00
Bruce Luckcuck
c1f40b8ebb Fix OSD time remaining division by zero
If the current sensor wasn't configured (or the mahDrawn was still zero) then there would be a division by zero error in the remaining time OSD element calculation. Rearranged the logic to prevent.
2018-10-23 14:09:44 -04:00
Bruce Luckcuck
b31b2d0680 OSD temperature display and calculations cleanup
Remove unnecessary decidegrees conversions as all temperature providers are in degrees celcius.

Fixed rounding for imperial units.

Fixed data type error in core temp warning element. Temperature is captured as int16 and can be negative but logic was using uint8 leading to an underflow for negative temperatures and a false alarm triggering.
2018-10-23 09:27:26 -04:00
Bruce Luckcuck
810b9dab74 Fix OSD artificial horizon division by zero
If osd_ah_max_pit was set to zero there would be a divide by zero error in the calculations for the OSD artificial horizon. Using zero for osd_ah_max_pit is a valid use-case to disable the vertical pitch component in the artificial horizon so we can't simply change the parameter range.
2018-10-23 07:26:01 -04:00
Bruce Luckcuck
a66d6a2fc7 Improve OSD g-force display and avoid math when not needed
Previously the g-force element was being display using integer math and truncating the float value. This lead to the g-force displaying 0.9 much of the time. Changed to use rounding to one decimal place.

Also avoid the g-force calculation unless the element or post-flight statistic are enabled. This saves unnecessary math including a sqrt().
2018-10-22 19:46:51 -04:00