Commit Graph

11092 Commits

Author SHA1 Message Date
Michael Keller ec583cf9e9
Merge pull request #5755 from mikeller/make_frsky_spi_telemetry_configurable
Made FrSky SPI telemetry and external telemetry values configurable.
2018-04-25 00:16:37 +12:00
Michael Keller 2865f249f3
Merge pull request #5749 from jflyper/bfdev-fireworks
Omnibus F4 Fireworks support
2018-04-25 00:10:42 +12:00
Michael Keller 3ef12389da
Merge pull request #5743 from codecae/crsf_displayport
CMS Telemetry over CRSF w/ Lua Script (X9D, so far)
2018-04-25 00:09:58 +12:00
Konstantin Sharlaimov b892de88b1
Merge pull request #5753 from s0up/gps_rescue
Use GPS course (when available) for correcting attitude.values.yaw
2018-04-24 16:51:55 +10:00
Curtis Bangert 9d4d3ad45c CMS Telemetry over CRSF w/ Lua Script (X9D, so far) 2018-04-23 22:34:30 -04:00
Michael Keller d492c57bdc
Merge pull request #5752 from jflyper/bfdev-target-config-helper
Serial port function mask initializer as a config helper
2018-04-24 14:33:59 +12:00
s0up feba4c329d set courseoverground to unused on simulator build 2018-04-23 17:21:32 -07:00
jflyper cbb028402a Move target dependent defs from target.h into config.c 2018-04-24 07:25:48 +09:00
s0up ff247c3817 fix missing blocks 2018-04-23 15:02:26 -07:00
Michael Keller a2c6264d55
Merge pull request #5747 from mikeller/fix_quad_servos
Fixed inconsistent handling of servos for USE_QUAD_MIXER_ONLY.
2018-04-24 09:57:15 +12:00
s0up 4e3a21d2b3 imu changes to allow for GPS rescue mode & fix home error 2018-04-23 14:56:05 -07:00
Michael Keller 373e1d678e Fixes from review. 2018-04-24 08:00:44 +12:00
jflyper f8bd2abb21 Omnibus F4 Fireworks support 2018-04-24 00:54:31 +09:00
jflyper cd5256bc0a Workaround pattern for empty function array. 2018-04-23 23:10:26 +09:00
jflyper 0e4684e828 Serial port function mask initializer as a config helper 2018-04-23 21:44:40 +09:00
mikeller d88bec63a8 Made FrSky SPI telemetry and external telemetry values configurable. 2018-04-24 00:14:50 +12:00
Michael Keller 528295672c Fixed inconsistent handling of servose for USE_QUAD_MIXER_ONLY. 2018-04-23 15:07:02 +12:00
borisbstyle bede912128
Merge pull request #5734 from betaflight/pid_unittest
PID controller unittest // bugfix yaw accel state
2018-04-22 16:14:18 +02:00
borisbstyle 8fab0fee11 PID controller unittest 2018-04-22 16:10:17 +02:00
J Blackman c1fa9a610b
Merge pull request #5742 from blckmn/licence_update
Licence update
2018-04-22 19:23:52 +10:00
blckmn b6422db597 All applicable files now updated. 2018-04-22 12:13:33 +10:00
Bruce Luckcuck 087837ffea Change gyro overflow handling to be based on runtime detected gyro (#5730)
Previously the gyro_overflow_detect and fallback slew filter were based on target definitions to determine whether the flight controller had an affected gyro to enable protection. The problem is that some targets are available with multiple gyro options and if one of those options was an affected gyro then all flight controllers for that target would have the oveflow code enabled even if they had a non-affected gyro.  Also targets that include multiple gyros on-board and are selectable at runtime were not differentiated and forced overflow handling on even if the selected gyro was not affected.

For non-affected gyros the overflow handling code is not required and reduces recovery performance so it's not desirable to have it enabled when unnecessary.

In the case of dual-gyro targets if gyro_to_use = BOTH then if either is an affected gyro then overflow handling will be enabled.
2018-04-22 12:16:00 +12:00
blckmn d6f2cb9b41 Manual updates 2018-04-22 10:10:57 +10:00
blckmn ba2752d6d5 standardising other authors. 2018-04-22 09:47:32 +10:00
blckmn 2be282e2d7 Some stragglers 2018-04-22 09:42:09 +10:00
blckmn 916de26ad8 Files with bad CRLF 2018-04-22 09:31:43 +10:00
blckmn 0aaa04910f Inserting where missing. 2018-04-22 09:23:31 +10:00
blckmn 46fe22b4bd Direct license replacement 2018-04-22 09:22:46 +10:00
Andrey Mironov 83a9af8571
Set LMA to AXIM-FLASH to avoid issues with DFU loader (#5740) 2018-04-22 01:38:09 +03:00
Andrey Mironov f18448e8dc
Added FAST_RAM_INITIALIZED (#5733)
* Added FAST_RAM_INITIALIZED for those who really want it

* Added the white crow of KISSFCV2F7

* Made initialized data LMAs robust

* Fixed indirection when initializing fast memory
2018-04-21 16:04:07 +03:00
Michael Keller 8e152f3259 Added explanation as to why fixed dT is used in PID calculation. (#5737) 2018-04-21 11:21:35 +03:00
Michael Keller 6e44173f86
Fixed missed naming changes. (#5738) 2018-04-21 18:35:59 +12:00
Andrey Mironov ff4c2bc145 Post-cleanup of F7 optimizations (#5729)
* Moved ART Prefetch enabling from library to main code

* Fixed tabs to spaces

* Added F7 LL EX header to simplify work with DMA and TIM

* Refactored F7 DSHOT using LL EX

* Got rid of overlooked duplicate lines
2018-04-21 18:14:35 +12:00
pulquero a51bea1ebc Fixes to ranges of esc warning thresholds. (#5726)
Signed-off-by: Mark Hale <mark.hale@physics.org>
2018-04-21 18:12:11 +12:00
Miroslav Drbal [ApoC] 4968352446 Fixing the #5705 (D-Term spikes) (#5728)
* * Fixing the #5705 (D-Term spikes)
  - For D-Term calculation I reverted back to use dT instead of jittery deltaT
  - Moved calculation of deltaT to handleItermRotation because it is the only place now where it is used

* * Changed the constant expression per DieHertz request

* * Changed the type of argument to match the type from caller

* * Redone also the handleItermRotation to dT per @ledvinap request
2018-04-21 12:09:13 +12:00
jflyper 0306accf6e FLASH Add W25M homogeneous stack driver and W25M512 support (#5722)
* Winbond W25M homogeneous mode driver

* W25M512 support on OMNIBUSF4 variants
2018-04-20 16:37:48 +12:00
jflyper e97496713a
Merge pull request #5721 from jflyper/bfdev-omnibusf4sd-onboard-flash
OMNIBUSF4SD Add onboard flash support
2018-04-20 07:52:17 +09:00
Andrey Mironov bee2bacb66
Fixed ownership of MPU_CS resource in case of multiple gyros (#5715) 2018-04-20 00:13:28 +03:00
Andrey Mironov bf984f39b1 F7 optimizations (#5674)
* Revert "Revert "Rewritten F7 dshot to LL (draft)" (#5430)"

This reverts commit aa42a69d2f.

* Reworked F7 linker scripts to maximize performance of both F74x and F72x

* Some comments and changes from original F7 HAL DSHOT

* Prohibit inlining of some functions to place them in ITCM-RAM

* Fixed usartTargetConfigure implicit declaration

* Moved back to SRAM1 as main RAM

* Added SRAM2 attribute

* Fixed LL DSHOT FOR SPRF7DUAL and probably other adv TIM users

* Fixed SPRF7DUAL rev. A motor order

* Enabled CCM for data on F40x

* Fixed F7 startup assembly symbols

* Fixed KISSFCV2F7 linker script

* Added a quick way of building F7 targets only

* Got rid of the useless F7 target script

* Added NOINLINE and got rid of useless __APPLE__ define

* Added some important functions to ITCM

* Added NOINLINE macro for tests

* Copy to ITCM before passing execution into it

* Minimized cache footprint of motor output code

* Evicted low-impact functions from ITCM

* Switched MATEKF722 and SPRACINGF7DUAL to burst DSHOT

* Switched CLRACINGF7 to burst DSHOT

* Moved UART RX&TX buffers to DTCM-RAM to avoid cache incoherency

* Marked taskMainPidLoop for ITCM-RAM, disallowed inlining per-function

* Revert "Added a quick way of building F7 targets only"

This reverts commit 22945189980deaf493be54a5056a080e7edad629.
2018-04-20 08:37:32 +12:00
Charles K Stevenson 39fec69fb0 Target update: AlienWhoop V2.1 blackbox via dataflash (#5723) 2018-04-20 08:02:43 +12:00
Michael Keller fb3b41ca0e
Fixed condition in BEEBRAIN target.mk. (#5717) 2018-04-20 07:57:43 +12:00
jflyper f9f05ecad5 FLASH Full (re)configurability (#5720) 2018-04-20 07:55:17 +12:00
Michael Keller 6b632bf65e
Added timer for PA3 (PPM in) for OMNIBUSF7. (#5716) 2018-04-20 07:52:36 +12:00
jflyper 08997fa62e OMNIBUSF4SD Add onboard flash support 2018-04-19 22:35:29 +09:00
Andrey Mironov 0f6d4a2def Fixed a typo in HMC5883L driver for F7 (#5714) 2018-04-19 22:16:12 +12:00
Alberto García Hierro e192f82fcc Don't make the report_cell_voltage setting depend on IBUS (#5711)
report_cell_voltage was only compiled in when IBUS was enabled, but
it's used for several telemetry protocols. Now it only depends on
USE_TELEMETRY.
2018-04-19 21:06:39 +12:00
Michael Keller 0fd6d5d74e
Fixed priority of RSSI validation: ADC / RX channel / frame errors. (#5703) 2018-04-19 21:06:21 +12:00
jflyper 864dba98c1 Prepare flash code for multiple device type support (#5683)
* Prepare flash drivers for multiple device type support

* Add static assertions on device page and flashfs alloc sizes.
2018-04-19 21:05:42 +12:00
chibaron 4a5e79a534 add target BeeStorm (#5662)
* add target BeeStorm

* Revert "add target BeeStorm"

This reverts commit 834a186da78c2e22faeccb11831de59b7187a355.

* derived model of BEEBRAIN_V2F
2018-04-19 01:39:25 +12:00
Michael Keller b2c247d34a
Added USB VCP detect and debugging. (#5689) 2018-04-18 01:22:46 +12:00