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

10884 commits

Author SHA1 Message Date
Bruce Luckcuck
84db8ef3fc Removed duplicate legacy gyro_lpf validation from msp.c
Additional validation in msp.c was resetting the gyro and pid denoms incorrectly under the assumption that any non-zero gyro_lpf value means the gyro is in 1KHz refresh rate.  The correct validation is already been performed by fc/config.c so the extra legacy validtions are not needed.
2018-02-20 14:38:28 -05:00
Faduf
36002880b6 Add kalman filter to YupiF4 2018-02-20 20:24:12 +01:00
Anders Hoglund
c8a42924f9 Spektrum CMS over TM performance increase. 2018-02-20 18:47:52 +01:00
Anders Hoglund
29fd90bec9 Spektrum CMS over TM performance increase. 2018-02-20 15:59:02 +01:00
Bruce Luckcuck
4270c658a3 Reordered arming disabled flags to give runaway takeoff a higher priority
Previously the ARMING_DISABLED_RUNAWAY_TAKEOFF reason would be overridden by ARMING_DISABLED_THROTTLE which prevented the indication that the disarming was casued by a runaway event.

Also fixed a problem where the disarm beep pattern would override the arming disabled beep codes when runaway takeoff triggered an auto-disarm.
2018-02-20 06:54:02 -05:00
Andrey Mironov
250d2965c2 Fixed F3 burst DSHOT 2018-02-20 09:12:56 +03:00
Bruce Luckcuck
9ea965c549 Add gyro rate checking to runaway takeoff activation to improve bench testing
Changed the triggering phase so that in addition to the pidSum needing to exceed runaway_takeoff_threshold, the gyro rate on any axis must exceed a threshold value to indicate the quad is actually moving. The threshold for the yaw axis is much higher since the torque of the motors can still yaw the craft without props.
2018-02-19 17:22:04 -05:00
Andrey Mironov
fa3c7e0833 Rewritten F7 dshot to LL (draft) 2018-02-20 00:49:10 +03:00
Michael Keller
7c3bb49759
Merge pull request #5217 from mikeller/fix_kisscc_motor_order
Fixed motor order for KISSCC to match manual (QUADX1234).
2018-02-20 01:58:18 +13:00
Michael Keller
b4667332d7
Merge pull request #5208 from jflyper/bfdev-piniobox-cleanup
PINIOBOX Separation of boxId and permanentId.
2018-02-20 01:53:07 +13:00
Michael Keller
552ca4c33b
Merge pull request #5222 from mikeller/fix_osd_name
Fixed problem with craft name overwriting elements in OSD.
2018-02-19 03:04:52 +13:00
Michael Keller
f07bf40d19
Merge pull request #5210 from DieHertz/f4-overclock-subset
Adjustable overclock for F405 and F411
2018-02-19 02:26:15 +13:00
mikeller
8db70252dd Fixed problem with craft name overwriting elements in OSD. 2018-02-19 01:35:01 +13:00
jflyper
18d5a373c0 Separation of boxId and permanentId. 2018-02-18 21:30:05 +09:00
Michael Keller
08281c151d
Merge pull request #5226 from Faduf/YupiF7_DMA_conflict_correction
YupiF7 - Correction of DMA conflict
2018-02-19 01:28:25 +13:00
Faduf
faebc43361 YupiF7 - Correction of DMA conflict 2018-02-18 13:02:06 +01:00
mikeller
a5c9824eab Fixed motor order for KISSCC to match manual. 2018-02-18 15:00:49 +13:00
Michael Keller
3656963bcd
Merge pull request #5219 from betaflight/revert-5200-gyro_overflow_check_use_filtered_gyro
Revert "Change gyro_overflow_detect to use filtered instead of raw gyro data"
2018-02-18 10:21:09 +13:00
Michael Keller
e5364ee764
Revert "Change gyro_overflow_detect to use filtered instead of raw gyro data" 2018-02-18 09:25:04 +13:00
Michael Keller
3fbff5a700
Merge pull request #5200 from etracer65/gyro_overflow_check_use_filtered_gyro
Change gyro_overflow_detect to use filtered instead of raw gyro data
2018-02-18 03:23:39 +13:00
Michael Keller
3dddb17e35
Merge pull request #5179 from mikeller/unify_3d_switches
Unified `BOX3DDISABLE` and `BOX3DONASWITCH` switches.
2018-02-18 03:21:20 +13:00
Michael Keller
0f790332a3
Merge pull request #5178 from mikeller/increase_eeprom_version
Fixed parameter group violations in `motorDevConfig_t`, incremented EEPROM config version before 3.3.0 release.
2018-02-18 03:19:30 +13:00
Michael Keller
7cd97b8fc0
Merge pull request #5205 from etracer65/runaway_takeoff_reset_after_crashflip
Reactivate Runaway Takeoff Prevention after using crash-flip
2018-02-18 03:17:44 +13:00
Andrey Mironov
ac26c975dd Adjustable OC for F405 and F411 2018-02-17 14:12:16 +03:00
Michael Keller
3741b9ec04
Merge pull request #5216 from fujin/bugfix-use-gyro-fast-kalman
Biquad RC+FIR2: Reverse interface settings DEFINE conditional
2018-02-17 23:25:23 +13:00
AJ Christensen
3c8b9637c8 Biquad RC+FIR2: Reverse interface settings DEFINE conditional
* Previously we allowed the user to override from the Biquad RC+FIR2 to the FKF
  impl. at compile time via `make OPTIONS=USE_GYRO_FAST_KALMAN`.
* This was regressed in PR #5144 / commit: 4dd65a2. Restores previous behavior.
2018-02-17 22:51:25 +13:00
Bruce Luckcuck
1b5e52d87b Reactivate Runaway Takeoff Prevention after using crash-flip
Reset Runaway Takeoff Prevention so that on the next arming after crash-flip is used it will once again be active.  The use-case is that the pilot may have broken props or other damage that could cause a runaway event.  After successful takeoff the feature will deactivate for the remainder of the battery as before.
2018-02-15 15:53:07 -05:00
MJ666
1bcfa5ddb0
Merge pull request #5202 from AlienWiiBF/AFF3_V1_fix
Fix AlienFlight F3 V1 LED issue.
2018-02-15 09:01:15 +01:00
Michael Keller
77559ade2d
Merge pull request #5198 from jflyper/bfdev-motorDevInit-do-IOConfigGPIOAF-instead-of-IOConfigGPIO
motorDevInit  IOConfigGPIOAF instead of IOConfigGPIO
2018-02-15 18:28:25 +13:00
mikeller
7192e9de19 Fixed parameter group violations in motorDevConfig_t, incremented EEPROM config version before 3.3.0 release. 2018-02-15 18:25:28 +13:00
Michael Keller
b0ade55c95
Merge pull request #5172 from etracer65/runaway_takeoff_disable_benchtest
Runaway Takeoff Prevention - temporarily disable during configurator bench testing
2018-02-15 13:25:08 +13:00
Bruce Luckcuck
b49a9ec928 Change gyro_overflow_detect to use filtered instead of raw gyro data
Noise and momentary spikes in gyro data (particularly in 32K mode) were causing false triggering of the gyro overflow detection.

Also adjusted the trigger and reset rates slightly (approx. 1950dps and 1850dps respectively).

Optimized the gyro loop slightly by eliminating 3 floating point multiplies.

Fixed bug for gyros that may not be +-2000dps full scale.
2018-02-14 17:50:09 -05:00
MJ666
badb35782c Fix AlienFlight F3 V1 LED issue. 2018-02-14 23:38:55 +01:00
jflyper
1bc2e756f5 Do full IOConfigGPIOAF instead of IOConfigGPIO 2018-02-15 03:40:11 +09:00
Bruce Luckcuck
17aeaa3ee0 Runaway Takeoff Prevention - temporarily disable during configurator bench testing
Temporarily disables Runaway Takeoff Prevention when the `ARMING_DISABLED_MSP` flag is cleared in the configurator by switching the safety switch on the motors tab.  Allows bench testing the motors and flight controller response without triggering a runaway takeoff auto-disarm.

Requires coordination with the configurator to pass an extra runaway takeoff temporary disable flag with the MSP_ARMING_DISABLE msp command.
2018-02-14 09:09:30 -05:00
Michael Keller
9da7416c30
Merge pull request #5185 from etracer65/arming_disabled_msp_disarm
Disarm when configurator sets ARMING_DISABLED_MSP arming disabled flag
2018-02-15 01:41:19 +13:00
Michael Keller
478d87317a
Merge pull request #5195 from mikeller/fix_spi_rx_ordering
Fixed ordering of SPI RX protocols.
2018-02-15 01:32:28 +13:00
mikeller
1de60106b2 Fixed ordering of SPI RX protocols. 2018-02-15 00:22:36 +13:00
Michael Keller
c053ffc7f6
Merge pull request #5176 from etracer65/runaway_takeoff_disable_crashflip
Disable runaway takeoff when crash-flip mode is active
2018-02-14 23:19:57 +13:00
Michael Keller
c1ad0b7ff1
Merge pull request #5175 from mikeller/add_biquad_fir_for_f3
Added Biquad RC + FIR2 filter to F3 targets.
2018-02-14 23:17:42 +13:00
Michael Keller
0bc2d18599
Merge pull request #5180 from mikeller/disable_dmar_for_clracingf4
Disabled Dshot DMAR for CLRACINGF4.
2018-02-14 23:16:34 +13:00
Michael Keller
e596f9a7d1
Merge pull request #5191 from MotoLab/add_escserial
Enable ESCSERIAL for MOTOLABF4 targets
2018-02-14 15:25:02 +13:00
Moto Moto
91bc23e23f Enable ESCSERIAL for MOTOLABF4 targets 2018-02-13 18:45:35 -06:00
Michael Keller
afff03197c
Merge pull request #5144 from fujin/bqrcf2-lpf-cutoff-hz
Biquad RC+FIR2: Allow user to specify cutoff Hz parameter directly
2018-02-14 13:23:57 +13:00
AJ Christensen
4dd65a2876 Biquad RC+FIR2: Allow user to specify cutoff Hz parameter directly
* Generate 'k' per the code for the PT1
* Adjust function prototypes/functions to accept f_cut/dT where applicable
* Adjust gyro configuration, parameter group, interface settings to suit
2018-02-14 12:09:49 +13:00
Bruce Luckcuck
076ad942e4 Disarm when configurator sets ARMING_DISABLED_MSP arming disabled flag
Addresses an edge case where the user could turn on the safety switch (on motors tab), arm and spin the motors, and then turn off the safety switch (without disarming first).  In this scenario the motors would keep spinning even though the ARMING_DISABLED_MSP arming disabled flag would be set.

This change checks the arming state and disarms when the configurator sets the ARMING_DISABLED_MSP flag.
2018-02-13 09:51:50 -05:00
Michael Keller
5593b43af7
Merge pull request #5181 from AndersHoglund/spektrum_ix12_cms_adaption
Spektrum iX12 adaption of CMS start screen.
2018-02-14 01:37:40 +13:00
Anders Hoglund
f9998a8fce Spektrum iX12 adaption of CMS start screen. 2018-02-13 10:39:44 +01:00
mikeller
28adf08f96 Disabled Dshot DMAR for CLRACINGF4. 2018-02-13 20:10:27 +13:00
mikeller
232fc4e8de Unified BOX3DDISABLE and BOX3DONASWITCH switches. 2018-02-13 20:02:02 +13:00