1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00
Commit graph

829 commits

Author SHA1 Message Date
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
mikeller
59026a871e Made timer tests respect 'USE_TIMER_MGMT'. 2018-12-18 01:14:07 +13:00
Michael Keller
ee0d86ff20
Merge pull request #7210 from phobos-/spi_dsm
Implemented SPI SPEKTRUM protocol
2018-12-18 00:13:20 +13:00
phobos-
6651baa7d8 Implemented SPI SPEKTRUM protocol 2018-12-16 11:15:35 +01:00
mikeller
1771ea687f Fixed tests. 2018-12-16 11:28:04 +13:00
Michael Keller
6ad2575716
Merge pull request #7190 from jflyper/bfdev-per-device-preinit
[SPI] Introduce per device pin pre-init
2018-12-14 20:32:19 +13:00
jflyper
9ea1428d11 Introduce per device pin pre-init 2018-12-13 11:15:26 +09:00
Michael Keller
b04d6d69af
Merge pull request #7193 from joelucid/ac_fixes
fix abs control refactor, make abs control cutoff configurable
2018-12-13 00:28:13 +13:00
Thorsten Laux
b0af988a75 unit test bugs 2018-12-10 19:28:18 +01:00
Michael Keller
6972f3eb01
Merge pull request #7182 from klutvott123/fport-sport-writeeeprom-fix
Skip smartport/fport telemetry requests after eeprom write
2018-12-11 01:28:16 +13:00
Thorsten Laux
e63cb48adf unit test fix 2018-12-10 10:51:45 +01: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
Hans Christian Olaussen
695911fd3b Update unittests 2018-12-06 22:24:33 +01:00
Tony Cabello
6a6193551c Numeric Vario calculated with GPS altitude 2018-12-05 09:01:53 +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
mikeller
1784910aa8 Fixed arming prevention unittest. 2018-12-04 01:34:06 +13:00
Michael Keller
8e9462e251
Merge pull request #7158 from TonyBlit/gps_rescue_armed_check
Arm prevention if Rescue is activated
2018-12-03 21:52:42 +13:00
Michael Keller
c119843785
Merge pull request #7162 from TonyBlit/gps_osd_blink
Blink GPS indicator on OSD when numsats is lower than minimum configu…
2018-12-03 21:37:31 +13:00
Tony Cabello
84d2bc2c83 Arm prevention if Rescue is activated 2018-12-02 19:17:52 +01:00
jflyper
d4ac21cdc7 Refactor status command to print things in more sensible order 2018-12-01 22:21:58 +09: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
Michael Keller
2a748e73d0
Merge pull request #7074 from pulquero/telm_config2
Support for enabling individual telemetry sensors
2018-11-23 01:43:33 +13:00
Mark Hale
8789246110 Support for disabling individual telemetry sensors.
Signed-off-by: Mark Hale <mark.hale@physics.org>
2018-11-12 22:02:35 +00:00
mikeller
0d5b2c417c Added '=' after defines in test Makefile to avoid conflicts because gcc defaults to '1' for command line defines. 2018-11-10 20:10:55 +13:00
Tony Cabello
7abe51303f Total distance flown added to OSD and Stats 2018-11-08 15:40:30 +01: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
Michael Keller
3492bcff3d
Merge pull request #7028 from mikeller/add_crash_flip_led_warning
Added 'crash flip active' to the list of warnings to be shown on LED_STRIP.
2018-11-04 14:52:40 +13: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
Bruce Luckcuck
bb834bb126 Prevent crash recovery detection immediately after entering self-level modes
If the quad is in an extreme orientation (like upside down) the transition to self-level modes can cause enough motion to trigger crash recovery. Added a 1 second delay during which crash recovery detection is blocked immediately after entering a self-level mode.

This also addresses an issue with GPS Rescue as when it activates it enables self-level. If in the above scenario this triggered a crash recovery detection then GPS Rescue would interpret this as a crash and immediately disarm.
2018-11-02 23:43:41 -04: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
Bruce Luckcuck
b723d2976d Changes from review and add unit tests
Stylistic updates and add tests to the PID unit tests to verify launch control behavior
2018-10-30 18:14:49 -04: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
71c563fdb4
Merge pull request #6977 from mikeller/remove_skip_defines
Converted 'SKIP_' defines to 'USE_'.
2018-10-29 07:37:10 +13: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
ea387a0c55 Fixed tests. 2018-10-25 13:50:23 +13: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
Michael Keller
2f1643924e
Merge pull request #6656 from timman2er/add_stat_esc_max_temp_rpm
added esc max temp and rpm to OSD
2018-10-08 01:03:20 +13:00
Michael Keller
811364c2ec
Merge pull request #6810 from azolyoung/fix_rcsplit_t_control_bug
fix rcdevice can't work
2018-10-06 15:38:20 +13:00
azolyoung
18085eafdd fix coding style 2018-09-22 10:15:01 +08:00
Michael Keller
ae0f99c494
Merge pull request #6806 from Smeat/fport_rssi
Fix rssi logging for fport.
2018-09-22 03:55:11 +12:00
azolyoung
6bc6c36116 fix error of unittest 2018-09-21 17:00:47 +08:00