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

264 commits

Author SHA1 Message Date
pulquero
cf6b3639e2 Add OSD message to report motor/esc problem. (#5550)
Signed-off-by: Mark Hale <mark.hale@physics.org>
2018-03-31 02:09:33 +13:00
Michael Keller
3a8901daa8
Added assertion about OSD warning field size. (#5533) 2018-03-26 20:53:12 +13:00
Michael Keller
d6af4c2d6b
Fixed blinking of OSD RSSI element. (#5542) 2018-03-26 10:46:46 +13:00
etracer65
9edce2359a Add current battery voltage as an option for the OSD stats page (#5531)
Allows the user to configure a new OSD stat item called "BATTERY" that will display a live and updating battery voltage. This would allow the user to see how their battery was recovering after disarming by comparing to the stat "END BATTERY".
2018-03-25 13:56:25 +13:00
etracer65
0c7ae49464 Fix OSD stats not clearing when entering OSD menu (#5522)
The pitch stick high can be used to clear the OSD stats screen, but it's also part of the sequence to enter the OSD menu. Entering the OSD menu from the stats page should have cleared the stats, but because of a race condition they weren't always cleared and the OSD menu would draw on top of the stats.  Changed the logic to ensure that if the OSD menu is entered the stats page is exited and cleared.
2018-03-24 18:03:43 +13:00
etracer65
6b1336a940 Make OSD stats page follow the state of the OSD disable switch mode (#5463)
Previously the OSD stats would always display even if the OSD disable switch mode was active.

Additionally, since the OSD stats page must now be dynamically refreshed rather than only rendered once at disarm, "live" stats like RTC clock and the timer "ON TIME" continue to update and display current information.  All other stats related to the previous flight remain static as of the disarming.
2018-03-21 00:21:08 +13:00
Michael Keller
509d386f14
Merge pull request #3030 from cleanflight/fix-osd-vtx-power (#5423)
Fix OSD VTX power display.  Only one character for the power is needed.
2018-03-15 02:40:09 +13:00
etracer65
27bc23c3bb Suppress OSD stats screen if runaway takeoff triggered the disarm (#5402)
and OSD_WARNINGS is visible in the OSD.

The stats screen was preventing the user from knowing that a disarm might be casued by runaway takeoff.  If the warnings element is visible it will have the message "RUNAWAY" but the disarm it triggers caused the stats display to replace the screen.

The change prevents the stats page from displaying if the ARMING_DISABLED_RUNAWAY_TAKEOFF flag is set and the OSD_WARNINGS element is visible.  Otherwise the stats screen is displayed as normal.
2018-03-15 02:04:16 +13:00
etracer65
35f5e5025f Fix OSD "DISARMED" blanking the display when armed (#5384)
Changed the logic so that if currently armed and the previous arming state was disarmed, then blank out the message for just this single iteration. This should allow any elements behind to be properly displayed when armed.
2018-03-13 09:31:52 +13:00
Dan Nixon
66dac7a2e3 Positionable OSD crosshairs and AHI (#5326)
* Make Artificial horizon and crosshairs positionable

* Remove dependency on AHI for AHI sidebars

* Use the old fixed positions as defaults for some OSD elements

Namely:
- crosshairs
- artificial horizon
- artificial horizon sidebars
2018-03-04 11:46:39 +13:00
Michael Keller
6560e96e98
Fixed inconsistency in OSD code. (#5223) 2018-03-04 11:43:46 +13:00
Petr Ledvina
c11d016bc7 optimize math (#5287)
* optimize math

Results in considerable flash saving

* log_approx, exp_approx, pow_approx

Taken from https://github.com/jhjourdan/SIMD-math-prims/blob/master/simd_math_prims.h

* Fix pow in rangefinder

* Use approximate function in baro calculation

Maximum error is < 20cm

* fixup! Fix pow in rangefinder
2018-03-04 01:26:33 +13:00
mikeller
c89f87018b Fixed OSD warnings overlap to the right. 2018-02-23 19:36:22 +13:00
Bruce Luckcuck
4185756baf Change crash-flip OSD message to track actual state rather than switch
Previously the OSD crash-flip warning would only track the state of the activation switch.  So if the switch was disabled but still armed the message would go away, but the quad was still in active crash-flip mode until it was disarmed.  This change makes the OSD message follow the actual internal state for crash-flip.
2018-02-21 08:19:59 -05:00
mikeller
8db70252dd Fixed problem with craft name overwriting elements in OSD. 2018-02-19 01:35:01 +13:00
Diego Basch
d75b1f71c3 Fix for #5117. GPS coordinates no longer require special fonts to render the decimal separator.
Removed the code that used leading and trailing half-dots, now using a regular dot instead.
Also fixed the maximum length of the coordinate string, as the 7th decimal digit was getting clobbered in longitudes with three digits (the count was off by one).
2018-02-11 13:02:41 -08:00
Martin Budden
e2683cd2dc Corrected VTX vtables to not use static device handle 2018-02-01 11:15:07 +00:00
Martin Budden
e7cac0e9c6 Always use arming disable flag names 2018-01-21 14:15:49 +00:00
Dan Nixon
ed42d59c94 Add temperature conversion for ESC temp, tidy formatting 2018-01-14 20:56:40 +00:00
Dan Nixon
52d45ff72b Add temperature unit conversion
Selects unit based on OSD unit system setting: metric is degC and
imperial is degF.
2018-01-14 13:49:05 +00:00
Dan Nixon
f8e4d02c99 Add core (MCU) temperature to OSD 2018-01-13 12:39:42 +00:00
Martin Budden
e6f5926131 Prepare OSD for iterative updating 2018-01-12 14:46:29 +00:00
mikeller
385623bd9d Converted defines for VTX_COMMON, VTX_CONTROL, VTX_RTC6705, VTX_RTC6705SOFTSPI, VTX_TRAMP, VTX_SMARTAUDIO to use USE_ prefix. 2018-01-09 17:34:34 +13:00
mikeller
09d396c05c Cleaned up parameter group handling.
Fixed missing include.
2017-12-31 10:51:01 +13:00
mikeller
d82c72bc54 Moved sdcard parameter group to pg/. 2017-12-24 12:23:27 +13:00
mikeller
b489d0ba9d Renamed 'parameter_group' to 'pg'. 2017-12-19 23:36:31 +13:00
atomiclama
6e5ad5d210 Change switch default handling
Currently if no black box device is selected the default case sets
storageDeviceIsWorking = true. 

I believe this to be wrong.

This commit keeps the initial setting of false.
2017-12-06 09:17:55 +00:00
mikeller
4d30971e2d Fixed permissions on files. 2017-11-28 23:31:55 +13:00
Martin Budden
b49f20fd8d Tidy of OSD code 2017-11-22 09:46:28 +00:00
Dan Nixon
2bb561aa61 Add RTC date/time to OSD stats
Fixes #4575
2017-11-19 10:55:52 +00:00
mikeller
fb7f0e1904 Move default position for OSD elements away from underneath artificial horizon / crosshairs position. 2017-11-14 01:29:45 +13:00
Michael Keller
12c052c103
Merge pull request #4555 from codecae/vtx_low_power_disarm_fix
Fixes for vtx_low_power_disarm_fix issue
2017-11-12 23:10:50 +13:00
Curtis Bangert
f35ec19b15 Fixed vtx_low_power_disarm 2017-11-12 02:33:54 -05:00
jyesmith
4e0c16855f Added OSD_REMAINING_TIME_ESTIMATE which is based on flight used mAh rate. 2017-11-12 14:20:34 +10:00
Michael Keller
1c5c7476c1
Merge pull request #4541 from mikeller/cleanup_rssi
Cleaned up handling of RSSI, added resetting to 0 for RSSI over MSP.
2017-11-12 10:35:26 +13:00
mikeller
fc28817448 Fixed up adjustment range OSD display and made it configurable. 2017-11-12 04:22:28 +13:00
Michael Keller
41806636d6
Merge pull request #4543 from mikeller/added_rtc_date_time_to_osd
Added RTC date/time to OSD.
2017-11-12 03:17:55 +13:00
mikeller
c6b88e5d04 Cleaned up handling of RSSI, added resetting to 0 for RSSI over MSP. 2017-11-12 01:22:12 +13:00
mikeller
968efb86bf Added RTC date/time to OSD. 2017-11-11 20:07:20 +13:00
Curtis Bangert
01a78ef77f Use parameter group to populate vtx channel in OSD 2017-11-10 21:18:54 -05:00
Bjoern Schultze
03b1f5f54c show inflight adjustments in osd 2017-11-07 11:30:14 +01:00
mikeller
a8d34dabb0 Changed defines for GYRO/ACC/MAG/BARO/GPS/SONAR/OSD/BLACKBOX/CMS to conform to the USE_ convention. 2017-11-05 10:15:24 +13:00
Michael Keller
df6b2dc1be
Merge pull request #4475 from mikeller/order_osd_warnings_by_importance
Ordered priority of OSD warnings by importance.
2017-11-02 18:56:01 +13:00
Michael Keller
c9e96a6d7f
Merge pull request #4445 from McGiverGim/bf-fix_negative_rth_arrow_osd
Fix negative direction in HOME ARROW in OSD
2017-11-02 03:08:40 +13:00
mikeller
b7c17151c1 Ordered priority of OSD warnings by importance. 2017-11-01 21:22:30 +13:00
Dan Nixon
6621ed9818 Allow OSD warnings to be toggled 2017-10-29 10:10:29 +00:00
Miguel Angel Mulero Martinez
21f2433653 Fix negative direction in HOME ARROW in OSD 2017-10-28 10:56:16 +02:00
Dan Nixon
bb4f573615 Ensure OSD display is refreshed when stat screen disabled 2017-10-27 19:54:43 +01:00
Miguel Angel Mulero Martinez
06728f360a Fix the GPS image in OSD to use two symbols 2017-10-26 10:04:43 +02:00
Miguel Angel Mulero Martinez
dadedd059f Show stats only if enabled
If no enabled stat to show, don't show the stats page in the OSD
2017-10-24 10:14:15 +02:00