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

16456 commits

Author SHA1 Message Date
Michael Keller
d89a5c8713
Merge pull request #10389 from ImmersionRC/irc-ghst-driver-debug 2020-12-16 01:05:54 +01:00
Michael Keller
d36c62d092
Merge pull request #10403 from haslinghuis/make-tests-with-clang11-linux 2020-12-15 22:19:12 +01:00
Mark Haslinghuis
d596e259a0 Make test compatible with clang 11 on linux 2020-12-15 21:02:46 +01:00
Michael Keller
f91783571a
Merge pull request #10402 from mikeller/remove_deprecated_dshot_commands
Removed deprecated Dshot commands to enable / disable bidirectional Dshot.
2020-12-15 16:54:55 +01:00
anthonycake
81150286c6 Keep reviewers happy 2020-12-15 09:02:01 +01:00
Michael Keller
d43e06d3e3
Merge pull request #10378 from SteveCEvans/h7led 2020-12-15 08:51:15 +01:00
Steve Evans
cb908a6893 Add USE_LEDSTRIP_CACHE_MGMT option to use explicit cache management for LED strip.
Ensure DMA_RAM section is at start of RAM and the the region defining the shareable region is covered.
Enable USE_LEDSTRIP_CACHE_MGMT on NUCLEOH743 target
2020-12-14 19:35:13 +00:00
Michael Keller
98b634adcd Removed deprecated Dshot commands to enable / disable bidirectional Dshot. 2020-12-12 21:35:29 +01:00
Michael Keller
57c9c12781
Merge pull request #10383 from mluessi/ml_h7_dshot_opt 2020-12-09 15:40:16 +01:00
Martin Luessi
b46971f1f0 Fix style 2020-12-09 05:43:51 -08:00
Michael Keller
34e6a83f70
Merge pull request #10370 from borisbstyle/new_mixer 2020-12-08 12:07:41 +01:00
borisbstyle
4a916af6a9 Added DYNAMIC mixer 2020-12-08 12:04:18 +01:00
borisbstyle
75da17a00e New linear mixer (credits to @tylercorleone) 2020-12-08 12:04:07 +01:00
Michael Keller
7154abc48e
Merge pull request #10348 from pgreenland/vtx_irc_tramp_logic_pitmode_cli
Fix VTX tramp protocol for all
2020-12-08 10:56:45 +01:00
Michael Keller
203398299e
Merge pull request #10388 from ImmersionRC/irc-uart-bidir-fix 2020-12-07 11:56:16 +01:00
anthonycake
481d42c3da Remove stray whitespace 2020-12-06 16:07:23 +01:00
Phil Greenland
e1eba3fdda Review updates. Remove new CLI option in anticipation of fix from Mateksys. 2020-12-06 11:32:05 +00:00
anthonycake
a543ed8887 Switch to static storage for error counters
Remove DEBUG_INCR, and switch to static counters.
2020-12-05 17:42:56 +01:00
anthonycake
8627af832c Add debug support to GHST protocol driver
Add ability for pilots to log CRC errors, unknown frames, LQ, and RSSI. 
Added macro to debug.h to simplify incrementing debug values without the need for local statics in client code.
2020-12-05 12:17:38 +01:00
anthonycake
1f0fbf6a65 Fix BIDIR UART issue #10220
Fix the issue described in Issue #10220, typos in serial drivers for F7, F3, G4, H7 platforms. 
Before this change, the serial line is incorrectly pulled down for bidirectional comms, which may cause dropped packets (silently) with any Rx protocol that uses bidirectional comms on the Tx line (GHST, SRXL-2, FPORT)
2020-12-04 18:11:17 +01:00
Martin Luessi
74df0ca92c Optimize pin reconfiguration for H7 2020-12-03 08:59:00 -08:00
Martin Luessi
82648f3252 Add GPIO and Pin functions 2020-12-03 08:58:16 -08:00
Michael Keller
c9dd69b19e
Merge pull request #10372 from limonspb/esc_dshot_reverse
Dshot commands via MSP
2020-11-29 08:26:11 -08:00
limonspb
fecf19b0d7 Dshot commands via MSP 2020-11-29 01:17:33 -06:00
Michael Keller
79c2f79919
Merge pull request #10369 from SteveCEvans/aiodshot
Fix SCB_CleanDCache_by_Addr to be based on portOutputBuffer
2020-11-27 23:34:13 +01:00
Michael Keller
c9ca920b0d
Merge pull request #10294 from ctzsnooze/mixer-fixes-rebase
Dynamic idle and idle related mixer changes
2020-11-27 23:31:58 +01:00
Steve Evans
99ad7bf5e8 Check output, not input buffer 2020-11-26 20:52:18 +00:00
Michael Keller
313a5b193b
Merge pull request #10359 from SteveCEvans/h7mscsrc
Fix DShot cache clean/invalidate
2020-11-24 23:25:37 +01:00
Michael Keller
403a2d0180
Merge pull request #10356 from jflyper/bfdev-nucleoh725zg
[H7] NUCLEOH725ZG target
2020-11-24 21:34:27 +01:00
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
6e60138725
Merge pull request #10360 from mikeller/immersionrc-irc-ghost-rssi-lq
Implement RSSI (dBm and Pct), LQ, in GHST driver
2020-11-24 00:28:00 +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
Michael Keller
3571fd5489
Merge pull request #10357 from jflyper/bfdev-h723_h725-add
[H7] H723/H725 support addition (usbd_conf_stm32h7xx.c)
2020-11-22 09:12:38 +13: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