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

13763 commits

Author SHA1 Message Date
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
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
f0191ab039 Fixed test build on MacOS Catalina with native clang. 2020-10-20 00:33:27 -07:00
jflyper
e9952f2747 Remove USB_USB_ID from target.h
Defining USB_USB_ID causes PA10 (UART1_RX_PIN) to be configured as USB ID pin.
2020-10-18 23:29:02 +09:00
Michael Keller
d89152b063 Fixed overly high RX task invocation caused by GHST telemetry. 2020-10-18 21:10:47 +13:00
Michael Keller
ecb804bf5e
Merge pull request #10279 from etracer65/acceleration_split_init
Split acceleration code into init and runtime to save flash space
2020-10-18 19:40:39 +13:00
Michael Keller
785969031d
Merge pull request #10269 from haslinghuis/fix-dfu-pack
Fix dfuse and python check
2020-10-18 19:26:27 +13:00
Michael Keller
539d0e1e8e
Merge pull request #10262 from mikeller/refactor_mixer_init
Refactored mixer / servo init.
2020-10-17 20:46:52 +13:00
Michael Keller
9e85c6216a
Merge pull request #10275 from etracer65/fix_bmp085_unittest
Fix and re-enable BMP085 unit test
2020-10-17 20:46:40 +13:00
Bruce Luckcuck
358fe5ce1c Split acceleration code into init and runtime to save flash space 2020-10-15 15:58:47 -04:00
Michael Keller
880e9e45ef Make the MPU6050 (I2C) driver only build on Unified Targets with 1MB flash. 2020-10-16 03:56:18 +13:00
Michael Keller
e315fb74da
Merge pull request #10273 from etracer65/cms_table_display_improvements
Improve CMS support of long lookup table names
2020-10-16 03:29:56 +13:00
mikeller
1a6514cd9b Refactored mixer / servo init. 2020-10-15 07:45:46 +13:00
Bruce Luckcuck
b9ed6b4034 Fix and re-enable BMP085 unit test
Since BMP085 is now included in some unified targets it makes sense that the unit test is active.
2020-10-14 10:39:49 -04:00