1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +03:00
Commit graph

15634 commits

Author SHA1 Message Date
Bruce Luckcuck
e9411c2294 Add instructions to CMS accelerometer calibration 2020-02-07 08:34:28 -05:00
Michael Keller
c4912847fc
Merge pull request #9452 from etracer65/use_board_info_fix_compile
Fix compile errors when USE_BOARD_INFO is not defined
2020-02-07 09:58:07 +13:00
Michael Keller
11e81a9bc8
Merge pull request #9453 from etracer65/use_blackbox_compiler_warning
Fix compiler warnings if USE_BLACKBOX is not defined
2020-02-07 09:55:35 +13:00
Bruce Luckcuck
653fe308cb Add "auto" mode to yaw spin recovery
Changes yaw spin recovery from a simple on/off to on/off/auto. In auto mode the triggering threshold is automatically calculated based on the user's current max yaw rate.

So `yaw_spin_recovery` has the following options:
`OFF`: Feature is disabled
`ON`: Feature is enabled with a manually configured `yaw_spin_threshold`
`AUTO`: Feature is enabled and the trigger threshold is automatically calculated.

The auto calculation of the trigger threshold is:
```
MAX(yawRate * 0.25, 200)
```
The 25% of the user's rate is to provide a buffer for yaw overshoots during normal flight. Overall the threshold is constrained between 500 - 1950 to match the manual selection.

The default is changed from `ON` to `AUTO` so that users will get protection without needing to configure the threshold manually.

In `AUTO` mode the threshold is calculated dynamically so rate changes in flight (like rateprofile change) will set a new trigger threshold.
2020-02-05 23:55:31 -05:00
Michael Keller
19fa0f7c23
Merge pull request #9449 from etracer65/blackbox_32k_cleanup
Blackbox 32K code cleanup
2020-02-06 17:07:26 +13:00
mikeller
39b62cb6c1 Added command to bind RX to MSP. 2020-02-06 13:36:27 +13:00
Bruce Luckcuck
272955f0dc Rename ACC_CALIB arming disabled message to NO_ACC_CAL 2020-02-05 18:08:39 -05:00
Bruce Luckcuck
ecd9034b07 Fix compiler warnings if USE_BLACKBOX is not defined 2020-02-05 10:59:54 -05:00
Bruce Luckcuck
6fc19c5fe9 Fix compile errors when USE_BOARD_INFO is not defined 2020-02-05 09:49:56 -05:00
Michael Keller
97704dda58
Merge pull request #9444 from etracer65/gyro_native_sample_rate
Gyro native rate sampling, filtering, and scheduler restructuring
2020-02-05 23:21:56 +13:00
Michael Keller
591ab6aff3
Merge pull request #9441 from jflyper/bfdev-fix-dashboard-init-order
Fix dashboard initialization order
2020-02-05 12:39:00 +13:00
Bruce Luckcuck
f29440957d Blackbox 32K code cleanup
Cleaning up some missed 32K specific code.
2020-02-04 18:30:30 -05:00
Bruce Luckcuck
f584780944 Gyro native rate sampling, filtering, and scheduler restructuring 2020-02-04 18:19:35 -05:00
Michael Keller
42f18b2cbc
Merge pull request #9445 from mikeller/fix_sdcard_default
Fixed default for 'sdcard_mode' to 'none'.
2020-02-05 06:07:00 +13:00
mikeller
e4cfe77e05 Fixed default for 'sdcard_mode' to 'none'. 2020-02-04 17:02:33 +13:00
Michael Keller
131965577f
Merge pull request #9438 from jflyper/bfdev-g4-timer
[G4] timer support
2020-02-04 06:23:48 +13:00
Michael Keller
26a7717e53
Merge pull request #9439 from jflyper/bfdev-g4-softserial
[G4] SOFTSERIAL support
2020-02-04 06:18:06 +13:00
Michael Keller
b11565efbe
Merge pull request #9436 from mikeller/added_sdio_to_unified_targets
Added support for SDIO to Unified Targets.
2020-02-03 19:49:41 +13:00
jflyper
c172ab3193 Fix dashboard initialization order 2020-02-03 13:05:08 +09:00
jflyper
fb1be68a8a [G4] timer support 2020-02-03 11:15:09 +09:00
Michael Keller
a573c8972a
Merge pull request #9435 from etracer65/dyn_notch_minmax_setting_order
Rearrange parameter ordering so dynamic notch min/max are together
2020-02-03 13:12:15 +13:00
Michael Keller
1000dc3680
Merge pull request #9433 from etracer65/gps_rescue_fix_altitude_mode
Fix GPS Rescue altitude mode behavior
2020-02-03 13:11:12 +13:00
jflyper
2b4c5eef1d [G4] SOFTSERIAL support 2020-02-03 01:58:37 +09:00
mikeller
27ef887742 Added support for SDIO to Unified Targets. 2020-02-02 17:08:45 +13:00
Michael Keller
30bf9e809f
Merge pull request #9431 from jflyper/bfdev-g4-spi
[G4] SPI support
2020-02-02 13:52:49 +13:00
Bruce Luckcuck
aa05d3ebc7 Rearrange parameter ordering so dynamic notch min/max are together
Previously settings were separated and out of order.
2020-02-01 13:10:47 -05:00
Bruce Luckcuck
741674c759 Fix GPS Rescue altitude mode behavior
Fixed unassigned variable controlling the altitude mode. Unassigned value was defaulting to 0 forcing `MAX_ALT` mode at all times instead of the user setting.
2020-02-01 10:30:23 -05:00
Michael Keller
09e8234117
Merge pull request #9430 from jflyper/bfdev-g4-exti
[G4] EXTI support
2020-02-01 20:29:49 +13:00
Michael Keller
cbc91ce813
Merge pull request #9407 from jflyper/bfdev-g4-uart
[G4] UART support
2020-02-01 20:21:17 +13:00
jflyper
258db6867b [G4] UART support 2020-02-01 09:58:31 +09:00
Michael Keller
971a89e3c6
Merge pull request #9420 from mikeller/exclude_swd_pins_from_pullup
Exclude SWD pins from being initialised as pull up if unused.
2020-01-31 19:59:55 +13:00
jflyper
d316309ff5 [G4] SPI support 2020-01-31 13:26:32 +09:00
jflyper
b3e6c6d148 [G4] EXTI support 2020-01-31 13:08:45 +09:00
Michael Keller
287741b816
Merge pull request #9421 from etracer65/fix_compile_without_vtxtable
Fix compile errors if USE_VTX_TABLE is not defined
2020-01-31 01:06:37 +13:00
Michael Keller
30ba612b39
Merge pull request #9408 from Asizon/skipInfoEntries
Skip DYNAMIC read only entries in CMS
2020-01-29 10:28:00 +13:00
Asizon
6061e4e3ea Move Skip to a function 2020-01-28 15:48:14 +01:00
Michael Keller
03c6c1db4b
Merge pull request #9418 from mikeller/fix_stm32f411_pin_init
Fixed initialisation of unused pins on STM32F411.
2020-01-28 21:18:27 +13:00
mikeller
cd27b63b89 Exclude SWD pins from being initialised as pull up if unused. 2020-01-28 10:52:21 +13:00
Bruce Luckcuck
c2770087c3 Fix compile errors if USE_VTX_TABLE is not defined 2020-01-27 09:07:20 -05:00
mikeller
a8a3585f38 Fixed initialisation of unused pins on STM32F411. 2020-01-27 21:12:09 +13:00
Michael Keller
0c6b965898
Merge pull request #9416 from mikeller/fix_missing_spaces
Fixed missing spaces after 'if'.
2020-01-27 19:26:59 +13:00
Michael Keller
12cc6dc683
Merge pull request #9414 from mikeller/add_revision_to_filenames
Added the git revision to the names of generated files.
2020-01-26 23:19:39 +13:00
Michael Keller
99dd2f5a27
Merge pull request #9327 from ctzsnooze/DN_Simplify
Simplify and improve Dynamic Notch
2020-01-26 13:58:54 +13:00
mikeller
ab025b76a8 Fixed missing spaces after 'if'. 2020-01-26 13:16:01 +13:00
ctzsnooze
7b2e075b3a Simplify and improve Dynamic Notch
Remove prevCenterFreq[axis]
Simpler peak detection:
- cubes, not squares
- only look one bin either side
More accurate frequency determination
Updated annotations and explanations
Whitespace fixes
fftStartBin can't be less than 1
Dynamic PT1 smoothing
biquad filter on centerFreq removed
centerFreq's now floats

Limits and better min max logic

constrain within nyquist limits

If gyro rate was 2khz and dynamic notch range max, this will keep the notch max to 960hz.

Simple fixes

Get lowest min above and below the peak

First go at setting DN range by a maxHz

increment the PG version in gyro.c

MSP correct size

Resolve comments from Mike and Rav.

Fis msp, deprecating range
2020-01-26 13:05:24 +13:00
Michael Keller
6497830a1b
Merge pull request #9411 from gg1bbs/master
Updating documentation to include 'Disable VTX Control' and 'Launch Control'
2020-01-26 12:50:02 +13:00
Michael Keller
bf7b2030e9
Merge pull request #9389 from IllusionFpv/ag-decoupled-from-iterm
Antigravity gain decoupled from Iterm
2020-01-26 12:49:12 +13:00
Michael Keller
3e752af4ac
Merge pull request #9332 from fiam/agh_cf_serial_config
[MSP] Add support for MSP2_COMMON_SERIAL_CONFIG / MSP2_COMMON_SET_SERIAL_CONFIG
2020-01-26 12:44:00 +13:00
mikeller
7a13e99c30 Added the git revision to the names of generated files. 2020-01-26 12:24:13 +13:00
Michael Keller
ff04f0d37e
Merge pull request #9406 from jflyper/bfdev-g4-persistent
[G4] Persistent object support
2020-01-25 20:04:36 +13:00