1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00
Commit graph

69 commits

Author SHA1 Message Date
mikeller
95eb87b678 Changed OSD stick overlay to use custom symbols. 2019-01-28 00:53:02 +13:00
Tony Cabello
a0604dd1a5 Reordered Max Altitude and Total Distance in stats screen 2019-01-22 17:08:55 +01:00
Tony Cabello
99778b5a6e Hide OSD Altitude and Numeric Vario when no GPS fix 2019-01-11 06:14:57 +01:00
fgiudice98
9d5fb85474 Increased vbat precision 2018-12-25 12:00:45 +01:00
Michael Keller
05ae79af65 Fixed tests. 2018-12-20 14:11:18 +13:00
Bruce Luckcuck
b8085b170e MSC on-board flash: Persist RTC across reboot and use as file timestamp
Adds support to persist the RTC (if set) across the reboot if entering mass storage mode for on-board flash. The value is then used as the timestamp for the files exposed in the virtual FAT32 filesystem. The files will then have reasonable creation dates when copied to the host computer.

If the RTC is not set (or supported), then the default timestamp of 2018-01-01 will be used (unchanged from previous).

Included some improvements to the RTC functions and exposed the `tz_offsetMinutes` in the `timeConfig` PG. Support already existed for timezone offsets but the parameter wasn't exposed to the user and couldn't be set.

Move timezone offset up a layer as a parameter to systemResetToMsc()
Adds support for specifying a custom timezone offset from both the CLI and MSP calls to enter mass storage mode.

Added an option timezone offset minutes to the CLI `msc` command. If no parameter is specified then the default as specified by `timezone_offset_minutes` will be used. So to reboot into mass storage mode and force the file timestamps to be in UTC, use `msc 0`.

Added reboot message `MSP_REBOOT_MSC_UTC` to support rebooting into mass storage mode and forcing the timestamps to use UTC time (0 offset). The Configurator will need to be modified to use this message for operating systems that expect UTC times for FAT file systems (like Linux).
2018-12-17 19:40:51 -05: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
Tony Cabello
bbacb7ca28 Total Distance renamed to Flight Distance 2018-12-08 06:57:36 +00: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
7abe51303f Total distance flown added to OSD and Stats 2018-11-08 15:40:30 +01: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
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
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
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
mikeller
feaa082ac3 Fixes from review. 2018-10-24 02:02:59 +13:00
timman2er
ef17d7fc31 add max esc temp and rpm to osd 2018-09-20 10:15:00 +02:00
mikeller
0bce8549ee Renamed 'fc/fc_' files to remove the double 'fc'. 2018-08-26 14:07:06 +12:00
jflyper
82268b7a4e Add osd warning for fail safe state. 2018-08-22 20:22:40 +09:00
Kiripolszky Károly
c4a32160a7 fix OSD unittest for log status element 2018-08-19 10:22:07 +02:00
AirBreak69
0e52e21524 GPS altitude: cleanup all occurancies to assume source is in cm per lsb resolution
Harmonized (and partly corrected) all occurancies of gpsSol.llh.alt and getEstimatedAltitude() to handle altiude sourced in cm resolution.
This was introduced by GSP_RESCUE/RTH.
Introduced a naming convention that include the unit into the variable/function names:
gpsSol.llh.alt -> gpsSol.llh.alt_cm
getEstimatedAltitude() -> getEstimatedAltitude_cm()
2018-08-19 00:11:30 +12:00
Michael Keller
41ce2c6327
Merge pull request #6391 from leocb/osd-max-g-force-stat
Added Max G-force OSD stat
2018-08-17 00:22:11 +12:00
ctzsnooze
4c917efa50 Smooth anti gravity 2018-07-21 23:49:41 +12:00
leocb
05e42db90b Added Max G-force OSD stat 2018-07-17 11:44:01 -03:00
leocb
7df8075fa3 OSD G-force Fix unit test; use sqrtf 2018-06-28 16:15:16 -03:00
Bruce Luckcuck
843a25903a Display OSD message and countdown if arming is delayed due to beacon
Provides a clear indication that arming is delayed for cases where DSHOT beacon is active.

Clears the OSD and displays "DISABLING BEACON" and "ARMING IN X.Y" with an active countdown in tenths of a second while arming is delayed due to DSHOT beacon. Once delay period is over the normal "ARMING" message appears.

If the DSHOT beacon is not active then this delay screen is not displayed.
2018-06-12 20:04:06 -04:00
mikeller
df06b9b4cb Fixed tests. 2018-06-04 00:23:45 +12:00
mikeller
6eea0d45ca Changes from review. 2018-05-30 22:29:42 +12:00
mikeller
e75eaf85ce Fixed tests. 2018-05-30 00:45:45 +12:00
jflyper
041bfb22c6 Create a pg for rxConfig 2018-05-27 09:13:04 +09:00
Bruce Luckcuck
0916d117b8 Add OSD warning options as cli parameters
Previously only a single bitmapped parameter was available in the cli but this wasn't very useful as the users would have to understand the bit positions to enable/disable warning options. This change exposes each warning item as a separate parameter.
2018-05-11 20:06:34 -04:00
Bruce Luckcuck
905f14d86c Change enabled OSD stats storage to bitmap
Previously the flags controlling the enabled OSD stats were stored as an array of boolean. This change reduces config storage by storing the flags as bits inside a single uint32.
2018-05-07 12:07:25 -04:00
Michael Keller
2f2c95a556
Merge pull request #5686 from pulquero/antigrav_osd
Display anti-gravity activity in OSD.
2018-05-07 21:26:38 +12:00
Mark Hale
b2e43abf2d Display anti-gravity activity in OSD.
Signed-off-by: Mark Hale <mark.hale@physics.org>
2018-05-05 19:56:56 +01:00
Bruce Luckcuck
c10e5b8343 Fix testosd_unittest
The unit test was expecting a metric result during the imperial test.
2018-04-24 16:58:01 -04: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
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
09d396c05c Cleaned up parameter group handling.
Fixed missing include.
2017-12-31 10:51:01 +13:00
mikeller
b489d0ba9d Renamed 'parameter_group' to 'pg'. 2017-12-19 23:36:31 +13:00
Dan Nixon
2bb561aa61 Add RTC date/time to OSD stats
Fixes #4575
2017-11-19 10:55:52 +00:00
Martin Budden
cfc87d1891 Better separation between GPS and NAV 2017-11-18 08:00:31 +00:00