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

16709 commits

Author SHA1 Message Date
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
Michael Keller
8ee317f815
Merge pull request #10326 from etracer65/fix_cc2500_common
Fix cc2500_common define block
2020-11-08 12:04:12 +13: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
Michael Keller
9aae36b5e5
Merge pull request #10310 from limonspb/flight_stats_cms_reset
Added persistent stats to CMS
2020-10-30 21:26:11 +13: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
Michael Keller
3aef91a1db
Merge pull request #10306 from TheIsotopes/patch-1
bump SDK to latest Update
2020-10-29 08:26:04 +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
TheIsotopes
80329a61a4
bump SDK to latest Update 2020-10-27 08:27:17 +01: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
60515b172b
Merge pull request #10304 from mikeller/simplify_make_os_detection
Simplified the Makefile OS detection output.
2020-10-27 13:13:25 +13:00
Michael Keller
7763ab6a1e Moved parameter group defaults into main flash for STM32F722. 2020-10-25 18:50:24 +01:00
Michael Keller
114e5ab4c8 Simplified the Makefile OS detection output. 2020-10-25 12:08:32 +01:00
Michael Keller
f60d9dfa60
Merge pull request #10265 from mikeller/use_clang_8_for_tests 2020-10-26 00:02:09 +13: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
Michael Keller
60c008b20b
Merge pull request #10289 from haslinghuis/fix_tests_errors 2020-10-24 21:03:19 +13:00
Michael Keller
25edc5a3b8
Merge pull request #10298 from mikeller/update_hardware_issue_template
Moved hardware issue template to a link.
2020-10-24 21:02:33 +13:00
Mark Haslinghuis
b88f948004 Fixed test build on Fedora and Ubuntu with native clang 2020-10-23 19:52:37 +02:00
Michael Keller
f03fabcd12 Moved hardware issue template to a link. 2020-10-23 00:22:23 +02:00
Michael Keller
b582411bcd
Merge pull request #10295 from McGiverGim/add_links_facebook_chat_issue
Move GitHub configuration issues to link
2020-10-23 11:14:22 +13:00
Miguel Angel Mulero Martinez
19e2aea04a Move GitHub configuration issues to link 2020-10-22 09:25:39 +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
ctzsnooze
62ee1fd6cd Sets antigravity gain to 0 when the user wants none.
In the PR adding P to antigravity, the default value was changed so that zero now meant no antigravity, whereas before 1000 meant none.  Unfortunately, `ITERM_ACCELERATOR_GAIN_OFF` remained at 1000.  This was an oversight.
Note also that the default value of 3500 now results in more antigravity effect than previously; it is equivalent to 4500 in the previous system.
2020-10-20 23:54:50 +11:00
4712
7146d96f24 Update serial-4way-if to v20005
Reservation of an MCU_ID area to simplificate adding of upcoming BLHeli_32 MCU
2020-10-20 14:16:50 +02:00
Michael Keller
20852146cf
Merge pull request #10287 from mikeller/change_f722_optimisation
Changed optimisation on F7X2 targets to '-O2' to save flash space.
2020-10-20 21:05:04 +13:00
Michael Keller
44641641ea
Merge pull request #10286 from jflyper/bfdev-fix-h7-use_usb_id-bug
[H7] Remove USB_USB_ID from target.h
2020-10-20 21:04:37 +13:00