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

670 commits

Author SHA1 Message Date
Hans Christian Olaussen
b8bfc7ce12 Change Pt1 cutoff from uint16_t to float 2019-02-12 22:34:16 +01:00
Bruce Luckcuck
87b077b59b Fix compiliation for F1 targets
Fix a missing MCU check for ADC devices and reduce the number of profiles/rateprofiles to 2 and 3 respectively to get the config under 2K.
2019-02-09 12:15:31 -05:00
Michael Keller
2c739346c6
Merge pull request #7547 from mikeller/fix_led_extreme_cpu_load
Fixed initialisation problem with LED_STRIP.
2019-02-08 19:55:55 +13:00
mikeller
9f8cafbf8b Fixed initialisation problem with LED_STRIP. 2019-02-08 12:29:57 +13:00
mikeller
b5908f5bab Applied 'USE_ACC' consistently. 2019-02-08 09:51:48 +13:00
Michael Keller
59ea4becb3
Merge pull request #7516 from mikeller/add_automatic_pid_profile_switching
Added battery cell count based automatic PID profile switching.
2019-02-08 09:28:07 +13:00
Michael Keller
9d621aa2c1
Merge pull request #7537 from mikeller/add_ws2811_single_colour_mode
Added single colour mode to WS2811 driver for RAM savings.
2019-02-07 23:54:35 +13:00
mikeller
37d0d402c8 Added single colour mode to WS2811 driver for RAM savings. 2019-02-06 12:04:34 +13:00
Bruce Luckcuck
42af168854 Optimize rc modes activation conditions processing
Analyze the rc modes activation conditions and only process configured entries. Previously the entire possible list was processed even though typically only a handful are configured.

Reduces the RX task processing time by about 25% (~44us to ~33us) with an average setup of 3 modes configured (F405, SBUS). Processing time savings will diminish as the user configures more modes. But typically far fewer than the maximum of 20 will be configured.
2019-02-05 16:05:16 -05:00
mikeller
e121e1e92b Separated LED_STRIP parameter groups, separated out LED_STRIP status mode code. 2019-02-05 08:39:42 +13:00
Michael Keller
0752b62206
Merge pull request #7521 from mikeller/make_tests_fast_again
Separate out target specific tests into the 'test-all' goal.
2019-02-04 17:24:23 +13:00
mikeller
299d96fdc7 Added battery cell count based automatic PID profile switching. 2019-02-04 13:15:43 +13:00
mikeller
344bddf882 Make 'test-representative' work as expected. 2019-02-03 17:38:55 +13:00
mikeller
b329f0d70b Separate out target specific tests into the 'test-all' goal. 2019-02-03 15:54:26 +13:00
mikeller
4d8bf61d94 Improved CRSF flight mode reporting. 2019-02-02 21:15:32 +13:00
Michael Keller
0b7fbdf3bd
Merge pull request #7486 from mikeller/add_exemplary_tests
Added 'test-representative' make target to run a representative subset of the unit tests.
2019-01-29 16:28:13 +13:00
Michael Keller
bbedb60fe2
Merge pull request #7476 from mikeller/add_stick_overlay_symbols
Changed OSD stick overlay to use custom symbols.
2019-01-28 20:17:10 +13:00
mikeller
95eb87b678 Changed OSD stick overlay to use custom symbols. 2019-01-28 00:53:02 +13:00
mikeller
8c2a896025 Added 'test-representative' make target to run a representative subset of the unit tests. 2019-01-28 00:08:01 +13:00
mikeller
38e1ce04df Reorganised interfaces, putting them where they are used. 2019-01-27 13:38:22 +13:00
Tony Cabello
a0604dd1a5 Reordered Max Altitude and Total Distance in stats screen 2019-01-22 17:08:55 +01:00
Michael Keller
f097df6fbd
Merge pull request #7438 from mikeller/fix_ledstrip_unit_tests
Fixed unit tests using 'ledstrip.c'.
2019-01-22 18:10:56 +13:00
Michael Keller
aaad98ecc3
Merge pull request #7435 from etracer65/use_fabsf_for_floats
Use fabsf() instead of ABS() for floats
2019-01-21 11:34:47 +13:00
mikeller
18496fe745 Fixed unit tests using 'ledstrip.c'. 2019-01-21 01:01:05 +13:00
Bruce Luckcuck
3d671c7134 Use fabsf() instead of ABS() for floats
The ABS() macro doesn't handle -0 floats correctly. Also fabsf() is more efficient.
2019-01-19 14:15:54 -05:00
Bruce Luckcuck
d867aeced3 Move anti-windup iterm reset from rx loop to pid loop
Having the iterm resetting happening in the rx loop causes a sawtooth PID/motor effect while idling since the PID loop is running at a much higher rate and iterm is allowed to grow during this, and then only reset at a much lower rate in the rx loop. This can potentially lead to some oscillation and/or resonance while idling before takeoff as the sawtooth signal can make it through to the motor outputs.
2019-01-19 11:18:24 -05:00
Pieter Kruger
4ec536a317 Add LED profile feature - 4278 2019-01-19 20:23:03 +10:00
Michael Keller
492d1f323e
Merge pull request #6809 from jflyper/bfdev-spi-transaction
Allow mixed speed and mode on a SPI bus
2019-01-14 09:23:50 +13:00
jflyper
343e9b3a67 Allow mixed speed and mode on a SPI bus by CR1 caching 2019-01-14 03:34:27 +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
Michael Keller
f9e12337d5
Merge pull request #7368 from TonyBlit/osd_gps_no_fix
Hide OSD Altitude and Numeric Vario when no GPS fix
2019-01-12 17:56:52 +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
Bruce Luckcuck
5b5581fa2a CMS exit/save popup menu
Adds a new exit/save menu that can be displayed at any time using the yaw-right stick command. Yaw-left still functions as "back".

Allows the user to save their settings even while nested deep in multiple menus. Previously the user was required to back up all the way to the top level menu to save or exit.
2019-01-10 18:59:50 -05:00
Michael Keller
6e42e3f68f
Merge pull request #7320 from TonyBlit/gps_rescue_arm
Allow arming without GPS
2019-01-11 03:48:34 +13:00
Bruce Luckcuck
7ad3367285 Fix stage 1 failsafe throttle "auto" setting for switched 3D modes
The logic did not support the switched 3D modes and would always set the throttle to `mid_rc`. This is appropriate for normal 3D mode, but for switched 3D modes this would lead to 50% throttle (either positive or negative depending on the switched mode settings).
2019-01-09 06:34:28 -05:00
Tony Cabello
007e14f348 GPS Rescue: allow arming without GPS fix (refactor) 2019-01-07 14:27:33 +01:00
fgiudice98
f084840f06 Fixed tests 2018-12-27 15:03:36 +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
Michael Keller
c9788f1831
Merge pull request #7231 from mikeller/optimise_timer_tests
Made timer tests respect 'USE_TIMER_MGMT'.
2018-12-19 15:52:04 +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
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