Commit Graph

10817 Commits

Author SHA1 Message Date
Michael Keller aec34a2b26
Merge pull request #5246 from Faduf/Kalman_2_YUPIF4
Add kalman filter to YupiF4
2018-02-24 22:32:20 +13:00
Michael Keller 087fa9453a
Merge pull request #5284 from etracer65/fix_gyro_overflow_check_filtered_data
Change gyro_overflow_detect to use filtered instead of raw gyro data - 2nd try
2018-02-24 18:54:04 +13:00
Michael Keller 9e28cbd341
Merge pull request #5290 from AndersHoglund/fix_failsafe_vtx_power
VTX low power on disarm correction
2018-02-24 18:53:14 +13:00
Michael Keller 9b8bb15e2d
Merge pull request #5288 from krankenreif/kakutef4_osd_fix
Added MAX7456_SPI_CLOCK define and MAX7456_RESTORE_CLK to KAKUTEF4 target
2018-02-24 18:52:31 +13:00
Michael Keller e28cf9dbca
Merge pull request #5291 from etracer65/fix_3d_on_switch
Fix 3D on a switch throttle inversion/scale
2018-02-24 18:34:54 +13:00
Bruce Luckcuck ea3184c265 Fix 3D on a switch throttle inversion/scale
There was a logic inversion when 3d_switched_mode = ON causeing the motor directions to be inverted.  Also the trottle scaling for reverse thrust was being applied twice from both the 3d_switched_mode = ON and 3d_switched_mode = OFF sections.
2018-02-23 12:18:37 -05:00
Anders Hoglund deb3851b89 VTX low power on disarm correction, made it conditional on failsafe. Keep VTX power up when in failsafe. 2018-02-23 13:50:15 +01:00
krankenreif e008afdb01 Added MAX7456_SPI_CLOCK define and MAX7456_RESTORE_CLK 2018-02-23 12:37:20 +01:00
Michael Keller a8f28b8973
Merge pull request #5269 from mikeller/fixed_fport_efficiency
Fixed efficiency of FPort protocol.
2018-02-23 21:32:28 +13:00
Michael Keller 4b88fc17ce
Merge pull request #5278 from betaflight/cf-changes-3
CF/BF - Fix incorrect ACC sensor name for ICM20608G.
2018-02-23 20:58:06 +13:00
Michael Keller 58fd1726ce
Merge pull request #5280 from betaflight/cf-changes-5
CF/BF - STMF72x - Ensure SRAM2 is unused and not part of 'RAM' linker section.
2018-02-23 20:50:41 +13:00
Michael Keller f156ffa30e
Merge pull request #5281 from betaflight/cf-changes-6
SPRACINGF4EVO - Use ADC3 instead of ADC1
2018-02-23 20:46:10 +13:00
Michael Keller db409d6d56
Merge pull request #5282 from betaflight/cf-changes-7
Fix 'fade' may be uninitialised warning in Spektrum RSSI handling.
2018-02-23 20:09:17 +13:00
Michael Keller 994c468a69
Merge pull request #5268 from mikeller/fix_osd_warnings
Fixed OSD warnings overlap to the right.
2018-02-23 20:06:02 +13:00
mikeller c89f87018b Fixed OSD warnings overlap to the right. 2018-02-23 19:36:22 +13:00
Bruce Luckcuck e9686c0ef8 Change gyro_overflow_detect to use filtered instead of raw gyro data - 2nd try
Noise and momentary spikes in gyro data (particularly in 32K mode) were causing false triggering of the gyro overflow detection. Changing to using filtered instead of raw gyro data eliminates the false triggering.

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

Fixed bug for gyros that may not be +-2000dps full scale. The trigger threshold will be 97.5% full-scale and reset at 92.5% (corresponds to 1950 and 1850 for 2000dps gyros).
2018-02-22 18:56:15 -05:00
Dominic Clifton 4e6965d869 Fix 'fade' may be uninitialised warning in Spektrum RSSI handling. 2018-02-22 20:10:10 +01:00
Dominic Clifton c7917469e9 SPRACINGF4EVO - Use ADC3 instead of ADC1 2018-02-22 19:40:13 +01:00
Hydra 350813563c CF/BF - STMF72x - Ensure SRAM2 is unused and not part of 'RAM' linker section. 2018-02-22 19:33:57 +01:00
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
mikeller bd4c970328 Fixed efficiency of FPort protocol. 2018-02-23 01:58:50 +13: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
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
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