Commit Graph

10796 Commits

Author SHA1 Message Date
Hydra f0e06fcb58 CF/BF - Fix incorrect ACC sensor name for ICM20608G.
It was missing the 'G' suffix when compared to the gyro names.  Now the
two sensor name strings can be de-duplicated by the linker.
2018-02-22 19:32:53 +01:00
Michael Keller 9d7c8fbd46
Merge pull request #5266 from etracer65/ledstrip_optimization
Optimize ledstip by disabling unassigned overlays
2018-02-22 23:38:29 +13:00
Michael Keller 93111cf440
Merge pull request #5253 from etracer65/crash_flip_osd_warning_fix
Change crash-flip OSD message to track actual state rather than switch
2018-02-22 23:36:43 +13:00
Michael Keller 46ba32b794
Merge pull request #5258 from stellarhopper/fix-clean_all
Makefile: fix clean_all trying to cleean SKIP_TARGETS
2018-02-22 17:20:52 +13:00
Bruce Luckcuck 539cc19c32 Optimize ledstip by disabling unassigned overlays
The current design continuously runs timer loops for all overlays regardless of whether or not any LEDs are actually using the overlay.  Then each overlay function iterates through all configured LED's to apply if needed.

This optimization "looks ahead" and turns off any overlays that are not assigned to any LEDs.  The most optimization is achieved when no overlays are used, and regresses to match the current performance level if every overlay is assigned.
2018-02-21 19:44:37 -05:00
Vishal Verma 2074dbb004
Makefile: fix clean_all trying to cleean SKIP_TARGETS
clean_all or all_clean were trying to clean SKIP_TARGETS too, resulting
in:

    make/targets.mk:15: *** The target specified, ALIENWHOOP, cannot be
        built. Use one of the ALT targets: ALIENWHOOPF4 ALIENWHOOPF7.  Stop.

Remove SKIP_TARGETS from the clean lists.
2018-02-21 11:12:50 -07:00
Bruce Luckcuck 4185756baf Change crash-flip OSD message to track actual state rather than switch
Previously the OSD crash-flip warning would only track the state of the activation switch.  So if the switch was disabled but still armed the message would go away, but the quad was still in active crash-flip mode until it was disarmed.  This change makes the OSD message follow the actual internal state for crash-flip.
2018-02-21 08:19:59 -05:00
Michael Keller dbdeb7b445
Merge pull request #5239 from etracer65/reorder_arming_disabled_flags
Reordered arming disabled flags to give runaway takeoff a higher priority
2018-02-22 01:27:48 +13:00
Michael Keller bdd408354f
Merge pull request #5236 from etracer65/runaway_takeoff_gyro_threshold
Add gyro rate checking to runaway takeoff activation to improve bench testing
2018-02-22 00:48:15 +13:00
Michael Keller 7df3f01b36
Merge pull request #5242 from AndersHoglund/spektrum_cms_tm_perf
Spektrum CMS over TM performance increase.
2018-02-22 00:47:04 +13:00
Michael Keller f75c07959b
Merge pull request #5247 from etracer65/fix_gyro_lpf_reset_gyro_rate
Removed duplicate legacy gyro_lpf validation from msp.c
2018-02-22 00:42:32 +13:00
Michael Keller f19761f74e
Merge pull request #5252 from betaflight/revert-5250-fix-clean_all
Revert "Makefile: fix clean_all trying to clean SKIP_TARGETS"
2018-02-22 00:08:06 +13:00
Michael Keller 27e8c35001
Revert "Makefile: fix clean_all trying to clean SKIP_TARGETS" 2018-02-22 00:07:50 +13:00
Anders Höglund 010c12f837
Merge pull request #5250 from stellarhopper/fix-clean_all
Makefile: fix clean_all trying to clean SKIP_TARGETS
2018-02-21 09:53:40 +01:00
Vishal Verma b4d75a5c35 Makefile: fix clean_all trying to cleean SKIP_TARGETS
clean_all or all_clean were trying to clean SKIP_TARGETS too, resulting
in:

    make/targets.mk:15: *** The target specified, ALIENWHOOP, cannot be
        built. Use one of the ALT targets: ALIENWHOOPF4 ALIENWHOOPF7.  Stop.

Remove SKIP_TARGETS from the clean lists.
2018-02-20 23:52:32 -07:00
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
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
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
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