Commit Graph

10865 Commits

Author SHA1 Message Date
Dominic Clifton cde9a9517b SPRacingF7DUAL - Dual SIMULTANEOUS gyro support. (#5264)
* CF/BF - Set STM32F7 SPI FAST clock to 13.5Mhz - Gyros not stable at
27mhz.

* CF/BF - Initial SPRacingF7DUAL commit.

Support two simultaneous gyro support (code by Dominic Clifton and Martin Budden)
There are new debug modes so you can see the difference between each gyro.

Notes:
* spi bus instance caching broke spi mpu detection because the detection
tries I2C first which overwrites the selected bus instance when using
dual gyro.
* ALL other dual-gyro boards have one sensor per bus.  SPRacingF7DUAL is has two per bus and thus commit has a lot of changes to fix SPI/BUS/GYRO initialisation issues.

* CF/BF - Add SPRacingF4EVODG target.

This target adds a second gyro to the board using the SPI pads on the back of the board.

* CF/BF - Temporarily disable Gyro EXTI pin to allow NEO target to build.
2018-03-04 11:29:31 +13:00
Michael Keller 9bcc6aca8e
Revert "BEEPER Conversion to use USE_ scheme" (#5368) 2018-03-04 09:40:17 +13:00
jflyper bf11921dc0
Merge pull request #5285 from jflyper/bfdev-convert-beeper-to-USE_-scheme
BEEPER Conversion to use USE_ scheme
2018-03-03 23:22:56 +09:00
Dominic Clifton c7f7846d39 Use GYRO_1/2 defines instead of GYRO_0/1 to make things less confusing. (#5274) 2018-03-04 02:00:28 +13:00
Petr Ledvina c11d016bc7 optimize math (#5287)
* optimize math

Results in considerable flash saving

* log_approx, exp_approx, pow_approx

Taken from https://github.com/jhjourdan/SIMD-math-prims/blob/master/simd_math_prims.h

* Fix pow in rangefinder

* Use approximate function in baro calculation

Maximum error is < 20cm

* fixup! Fix pow in rangefinder
2018-03-04 01:26:33 +13:00
Michael Keller b64802d931
Merge pull request #5356 from mikeller/update_readme
Updated README and pull request template after 3.3 release.
2018-03-04 01:08:51 +13:00
Michael Keller 9e90f9a635
Merge pull request #5279 from betaflight/cf-changes-4
CF/BF - Enable RTC6705 power control.
2018-03-04 01:08:08 +13:00
Michael Keller e8cc2300be
Merge branch 'master' into update_readme 2018-03-04 00:29:41 +13:00
jflyper dedad2f920
Merge pull request #5237 from DieHertz/dshot-f7-low-level-rewrite
F7 DSHOT LL rewrite
2018-03-03 18:26:48 +09:00
J Blackman 2dcd50df0a Updated notice on 3.3 support for STM32F1 (#5360) 2018-03-03 12:25:57 +03:00
jflyper f645b6bbf5
Merge pull request #5352 from betaflight/fix-spi-init-on-spracingf3osd
CF/BF - Fix SPI init on SPRacingF3OSD.
2018-03-03 18:08:28 +09:00
Michael Keller 5143b8687d
Merge pull request #5359 from betaflight/fix-f1-build-issues
Fix F1 build issues
2018-03-03 14:29:31 +13:00
Hydra 64d6c86b28 Fix BEEBRAIN compilation.
Broken since ee65eba88d
2018-03-03 01:34:45 +01:00
Hydra 2c12a8fe52 CF/BF - Fix 'unused variable disableRunawayTakeoff' warning when
building CJMCU.
2018-03-03 01:34:01 +01:00
Michael Keller cec1b1a937 Updated README and pull request template after 3.3 release. 2018-03-03 11:11:52 +13:00
Hydra 38935a1964 CF/BF - Fix SPI init on SPRacingF3OSD. 2018-03-02 20:49:40 +01:00
jflyper bd20c822bd
Merge pull request #5315 from etracer65/fix_naze_compile
Fix compilation error for F1 targets
2018-03-02 22:34:17 +09:00
jflyper bca6beb9e6
Merge pull request #5349 from mikeller/increment_versions_after_3_3_0
Increment firmware, MSP, EEPROM versions after 3.3.0.
2018-03-02 22:33:32 +09:00
jflyper 7d6c973cf7
Merge pull request #5276 from betaflight/cf-changes-2
Remove duplicate ADC code.
2018-03-02 22:32:23 +09:00
jflyper ea0db878bf Convert to USE_ scheme 2018-03-02 22:29:40 +09:00
Hydra 4901b947e3 CF/BF - Enable RTC6705 power control.
Currently there is duplicate code between the two RTC6705 drivers, we
can refactor it via another commit to reduce this new, and existing
duplication.
2018-03-02 14:23:03 +01:00
Michael Keller 972e0b28a9 Increment firmware, MSP, EEPROM versions after 3.3.0. 2018-03-02 22:00:02 +13:00
Michael Keller 177472b4fc
Merge pull request #5343 from fujin/5342-remove-conditional-pidUpdateCountdown-behavior
FC Core: Remove conditional pidUpdateCountDown
2018-03-02 16:31:57 +13:00
Andrey Mironov 685dd05479 FC Core: Remove conditional pidUpdateCountDown 2018-03-02 10:06:43 +13:00
Michael Keller dc58ddebd6
Merge pull request #5307 from rotcehdnih/FPVMODELF7
Add FPVMODELF7 Target to replace BetaflightF7 Target
2018-03-02 04:12:40 +13:00
Michael Keller a20bcbadd4
Merge pull request #5313 from AndersHoglund/quickfix_power_index
VTX common, Revert power index change made in PR 4879.
2018-03-02 04:09:40 +13:00
rotcehdnih 89f8a377c9 ADD FPVM_BETAFLIGHTF7 Target 2018-03-01 19:49:35 +11:00
Michael Keller 372f527476
Merge pull request #5339 from mikeller/fix_osd_stat_datetime_cli
Added missing `osd_stat_rtc_date_time` to CLI.
2018-03-01 02:22:56 +13:00
Michael Keller 1453a348b7
Merge pull request #5337 from etracer65/runaway_takeoff_cleanup
Runaway Takeoff remove unneeded parameters and enhance deactivate logic
2018-03-01 02:22:22 +13:00
Michael Keller 997df8615c
Merge pull request #5336 from jflyper/bfdev-moscow-night
Core temperature can be negative
2018-03-01 02:21:41 +13:00
Michael Keller 76cd819e90
Merge pull request #5334 from AlienWiiBF/PIKOBLX
FF_PIKOBLX enable DMAR by default and LED stripe DMA remap to aviod collision.
2018-03-01 02:21:01 +13:00
Michael Keller 9893c8c40c
Merge pull request #5327 from etracer65/fix_ppm_bootgrace_warning
Change rx data processing to ensure updateArmingStatus() is called periodically
2018-03-01 02:20:15 +13:00
Michael Keller 68caf5b535
Merge pull request #5294 from nyway/master
Add camera control pin define of the DALRCF405 target
2018-03-01 02:14:52 +13:00
mikeller d110ba6caf Added missing `osd_stat_rtc_date_time` to CLI. 2018-03-01 01:28:19 +13:00
Bruce Luckcuck 449f5f2f5c Runaway Takeoff remove unneeded parameters and enhance deactivate logic
Removed parameters runaway_takeoff_threshold (hardcode to 60) and runaway_takeoff_activate_delay (hardcode to 75).  The previous default values worked well and required no tuning.

Enhance the deactivate logic to remove the R/P/Y stick activity condition once throttle reaches 2X runaway_takeoff_deactivate_throttle_percent.  Additionally reduce the runaway_takeoff_deactivate_delay by 50% when throttle exceeds 75%.
2018-02-27 19:22:33 -05:00
jflyper 122a967c24 Core temperature can be negative 2018-02-28 08:06:53 +09:00
MJ666 e6f93f2f91 FF_PIKOBLX enable DMAR by default and LED stripe DMA remap to aviod
collision.
2018-02-27 20:09:19 +01:00
Bruce Luckcuck 42e8f63e2a Change rx data processing to ensure updateArmingStatus() is called periodically
There was an issue in that if no data from PPM or PWM rx inputs would result in processRx() exiting prematurely and updateArmingStatus() not being called. This affected processing of boot grace timeouts, cpu load arming disabled checking, etc.  This change forces updates to occur no less frequently than 50Hz even if no data is available.
2018-02-26 19:33:40 -05:00
nyway 963c423acd add camera contro pin define
Add camera contro pin define PA5.
Can use for pwm or dac in fureture

Fixed DALRCF405 DMA assignments.

Fixed DALRCF405 DMA assignments.
2018-02-26 14:54:18 +08:00
Bruce Luckcuck ecc0125672 Fix compilation error for F1 targets 2018-02-25 15:59:11 -05:00
Anders Hoglund 46ce32e719 VTX common, Revert power index change made in PR 4879r. 2018-02-25 20:27:08 +01:00
Michael Keller b0ff928afd
Merge pull request #5296 from azolyoung/disable_runcam_camera_control_in_runaway_takeoff_status
disable runcam camera control in runaway takeoff status
2018-02-26 01:40:53 +13:00
azol 2d84608daa disable runcam camera control in runaway takeoff status 2018-02-25 13:26:36 +08:00
Michael Keller a8d188ce1c
Merge pull request #5299 from etracer65/runaway_takeoff_disable_stick_commands
Disable stick command processing while ARMING_DISABLED_RUNAWAY_TAKEOFF is set
2018-02-25 10:22:39 +13:00
Bruce Luckcuck 2610344266 Disable stick command processing while ARMING_DISABLED_RUNAWAY_TAKEOFF is set
Addresses the rare possibility that if runway takeoff triggers and disarms while the pilot has the sticks in some valid stick command configuration. Prevents the stick command from processing until the craft is disarmed and the ARMING_DISABLED_RUNAWAY_TAKEOFF condition is cleared.

For example, if the pilot was mid throttle and went full yaw right and runway takeoff triggered, then camera control would have be entered.
2018-02-24 09:29:19 -05:00
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