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

13277 commits

Author SHA1 Message Date
Michael Keller
de5e0188e8
Merge pull request #10355 from jflyper/bfdev-nucleoh723zg
[H7] NUCLEOH723ZG target
2020-11-24 21:33:28 +01:00
Michael Keller
1bbdf2385c
Merge pull request #10352 from SteveCEvans/aiomsc
Handle H7 RESET_MSC_REQUEST reset case
2020-11-24 21:28:09 +01:00
Steve Evans
080717a407 Fix DShot cache clean/invalidate 2020-11-24 19:27:25 +00:00
Michael Keller
221c5782c1
Merge pull request #10363 from mikeller/fix_compiler_warning
Fixed compiler warnings in FrSky OSD code.
2020-11-24 00:28:46 +01:00
Michael Keller
31936280e2 Fixed compiler warnings in FrSky OSD code. 2020-11-22 19:15:25 +01:00
anthonycake
8c6fcf2995 Implement RSSI (dBm and Pct), LQ, in GHST driver
Issue #10336

Fix Typo in Ghost driver

Update src/main/osd/osd.c

Co-authored-by: haslinghuis <mark@numloq.nl>

Update src/main/rx/ghst.c

Co-authored-by: haslinghuis <mark@numloq.nl>

Update src/main/rx/rx.c

Co-authored-by: haslinghuis <mark@numloq.nl>

Future-proof GHST driver, while adding RSSI and LQ support

Ensure that future packet types which contain 4 channels of data, plus auxiliary data, are correctly handled by BF releases that predate them.

Implement changes suggested by reviewers

Cosmetics
2020-11-22 18:47:20 +01:00
Michael Keller
76765cd0e8
Merge pull request #10333 from mikeller/enable_spi_transactions
Enabled SPI Transaction support for F4 and F7.
2020-11-22 22:40:56 +13:00
jflyper
57320271be [H7] NUCLEOH723ZG target 2020-11-22 11:07:18 +09:00
jflyper
90c1d6c947 [H7] NUCLEOH725ZG target
This is a test target for Nucleo-H7A3ZI-Q board transplanted with
STM32H725ZG.
2020-11-22 11:06:32 +09:00
jflyper
8c5bc418da [H7] H723/H725 support addition (usbd_conf_stm32h7xx.c) 2020-11-20 02:29:13 +09:00
Michael Keller
df7d53afc2
Merge pull request #10324 from jflyper/bfdev-nucleoh7a3
[H7] Nucleo-H7A3ZI target
2020-11-20 04:31:04 +13:00
Steve Evans
c63447e7e7 Handle H7 RESET_MSC_REQUEST reset case 2020-11-17 20:59:03 +00:00
Michael Keller
31184af37c
Merge pull request #10319 from mikeller/remove_sram2_define
Remove unused SRAM2 define.
2020-11-17 07:24:12 +13:00
Michael Keller
e7edfa99e8
Merge pull request #10337 from MATEKSYS/master
[Target] Add target MATEKH743
2020-11-16 06:29:41 +13:00
Phil Greenland
73f72ea9a3 Fix IRC tramp for both protocol varients.
Prevent IRC tramp from briefly entering pitmode at startup.
Backout of PR #10166, ensuring pitmode can be correctly set from OSD and MSP.
Add CLI option to allow non-conforming tramp implementations to work with betaflight.
2020-11-15 11:37:44 +00:00
Michael Keller
42dd70da35
Merge pull request #10325 from jflyper/bfdev-h7-h723_h725 2020-11-12 05:34:03 +13:00
jflyper
1feb306674 [H7] H723/H725 support 2020-11-11 23:45:15 +09:00
mateksys
e0ccc8be24 [Target] Add target MATEKH743 2020-11-09 16:13:14 +08:00
ctzsnooze
8050ecd1e7 Mixer update: dynamic idle and throttle logging improvements
- all CLI parameters related to dynamic idle alone re-named with the `dyn_idle_` prefix
- when linear throttle scaling is active, the user's set idle value is now correct whether dynamic idle is on or off. Previously, the idle value fell when dynamic idle was activated at the same time as linear throttle scaling.
- enabling dynamic idle no longer causes a deadband at full throttle
- the setpoint throttle value sent to Blackbox does not include the dynamic idle offset
- the throttle value sent to the antigravity and dynamic lowpass code includes throttle scaling, but no other modifiers, to avoid false elevation of the apparent throttle position from dynamic idle and unnecessary transient changes in their filter cutoffs
- Dynamic Idle now uses a modified PI controller during active rpm control phase
- the D factor provides early detection of rapid falls in rpm, e.g. in hard chops. It is filtered heavily. Inadequate `dyn_idle_d_gain` may lead to a transient drop in rpm immediately after cutting throttle. Default is 50.
- the P factor provides fast control over rpm during the active control phase. Too much `dyn_idle_p_gain` may cause oscillation in that phase. Note enough and a slow drop in rpm will be inadequately corrected. Default is 50. Needs to be higher with heavier larger props.
- An integral element does most of the work.  It prevents enduring offsets from the set rpm. The I gain is high when increasing responding to low rpm, and slow to release.  The slow release makes a huge difference and avoids I oscillation. Not enough `dyn_idle_i_gain` and there may be wobble in rpm during the control phase, or the idle value may rise too slowly; too much may cause wobble. Default is 50. Needs to be higher with heavier larger props.
- The DYN_IDLE debug shows idle P, I and D in debugs 0, 1 and 2. minRps stays in debug 3.
- Interactions between throttle and thrust linear, dynamic idle, throttle scaling and throttle boost have been checked and work as they should.
2020-11-09 09:09:17 +11:00
Michael Keller
2662642628 Enabled SPI Transaction support for F4 and F7. 2020-11-08 12:07:35 +01:00
Bruce Luckcuck
daf07beb81 Fix cc2500_common define block
Define block had its #endif in the wrong place causing most of the code to be excluded if `USE_RX_CC2500_SPI_PA_LNA` wasn't defined.

Also fixes compilation errors for CRAZYBEEF4FR legacy target.

Unified targets weren't affected as they define `USE_RX_CC2500_SPI_PA_LNA` so the error wasn't visible.
2020-11-05 16:37:45 -05:00
jflyper
701b08674b [H7] Nucleo-H7A3ZI target 2020-11-04 22:54:08 +09:00
Michael Keller
4bf3e99e9c
Merge pull request #10318 from jflyper/bfdev-h7-h7a3
[H7] H7A3 support
2020-11-05 02:11:20 +13:00
Michael Keller
7979960cee
Merge pull request #10317 from mikeller/improve_digital_idle_naming
Improved the naming of the digital idle offset getter.
2020-11-04 02:40:26 +13:00
Michael Keller
0cf43e5f24 Remove unused SRAM2 define. 2020-10-31 23:31:02 +01:00
Michael Keller
49679ce0ef
Merge pull request #10247 from SteveCEvans/h7mscsrc 2020-11-01 11:27:52 +13:00
jflyper
697d0f7ed3 [H7] H7A3 support 2020-11-01 00:32:39 +09:00
Steve Evans
31b06cd7d2 Add USB MSC support for H7 2020-10-30 19:30:38 +00:00
Michael Keller
c6d70214f5
Merge pull request #10316 from IllusionFpv/quickrates-rc-expo
Quick rates expo on rc command
2020-10-31 07:40:55 +13:00
Michael Keller
6eac27b2a4
Merge pull request #10315 from atomgomba/include-gyro-to-use-in-log
Include gyro_to_use in blackbox header
2020-10-31 07:40:21 +13:00
Michael Keller
3d7ac0dc6b Improved the naming of the digital idle offset getter. 2020-10-30 16:12:04 +01:00
limonspb
54d1c3051a Added persistent stats to CMS 2020-10-29 22:04:54 -05:00
Nicola De Pasquale
979dabf637 added option for expo on rc command 2020-10-29 18:07:32 +01:00
Michael Keller
222710e6a4
Merge pull request #10309 from etracer65/gps_rescue_disable_headfree
Disable HEADFREE flight mode when GPS Rescue is active
2020-10-30 05:56:42 +13:00
Michael Keller
4bf968080d
Merge pull request #10307 from mikeller/add_dynamic_idle_offset_to_blackbox_header
Added the dynamic idle throttle offset to the blackbox header to fix the motor output display.
2020-10-30 05:56:25 +13:00
Kiripolszky Károly
b88d99cbb9 Include gyro_to_use in blackbox header 2020-10-29 16:53:26 +01:00
Michael Keller
d30f5104d0
Merge pull request #10305 from mikeller/move_pg_defaults_into_overflow
Moved parameter group defaults into main flash for STM32F722.
2020-10-30 00:26:03 +13:00
Bruce Luckcuck
9c575d9353 Disable HEADFREE flight mode when GPS Rescue is active
The GPS Rescue flight control model doesn't work in HEADFREE mode.
2020-10-27 23:18:40 -04:00
Michael Keller
6c1cb60784 Added the dynamic idle throttle offset to the blackbox header to fix the motor output display. 2020-10-27 02:01:26 +01:00
Michael Keller
ae62f46958
Merge pull request #10303 from SteveCEvans/flash_speed 2020-10-27 13:52:15 +13:00
Steve Evans
41a0ca43d1 Run SPI FLASH at full speed 2020-10-27 00:17:34 +00:00
Michael Keller
7763ab6a1e Moved parameter group defaults into main flash for STM32F722. 2020-10-25 18:50:24 +01:00
mikeller
be85489d9a Use clang-10 as default for tests. 2020-10-25 11:19:36 +01:00
Michael Keller
9259ea6d23
Merge pull request #10300 from limonspb/osd_total_flights
Total flights stats for OSD (firmware part)
2020-10-25 20:47:12 +13:00
limonspb
806595a7d4 Total flights stats for OSD 2020-10-25 01:32:51 -05:00
Mark Haslinghuis
b88f948004 Fixed test build on Fedora and Ubuntu with native clang 2020-10-23 19:52:37 +02:00
Michael Keller
5a87191d5e
Merge pull request #10290 from 4712/serial-4way-if_v20005
Update serial-4way-if to v20005
2020-10-22 05:03:12 +13:00
Michael Keller
47d97e4238
Merge pull request #10288 from mikeller/fix_tests_on_macos_catalina
Fixed test build on MacOS Catalina with native clang.
2020-10-22 04:59:52 +13:00
Michael Keller
ff241b7df4
Merge pull request #10291 from ctzsnooze/Sset-AntiGravity-off-to-zero
Sets antigravity gain to 0 when the user wants none.
2020-10-22 03:23:01 +13:00
Michael Keller
43f1704474
Merge pull request #10282 from mikeller/fix_ghst_telemetry_task
Fixed overly high RX task invocation caused by GHST telemetry.
2020-10-21 07:00:42 +13:00