Commit Graph

10817 Commits

Author SHA1 Message Date
Michael Keller e4b96eb97a
Merge pull request #5073 from wind0r/remove_disarm_kill_switch_disable
remove setting which disallow disarming on throttle above low
2018-02-02 00:50:50 +13:00
Michael Keller fced5f009b
Merge pull request #5072 from elepete/master
Changed AK8963 axis inversion
2018-02-02 00:50:28 +13:00
Bruce Luckcuck bed1c03f70 Airmode 3D activation fix requested changes
Formatting changes and correction to update the PG version.
2018-02-01 06:50:11 -05:00
Michael Keller a2ba0af426
Merge pull request #5066 from jirif/pid_optimize
Optimize pid loop
2018-02-02 00:49:38 +13:00
Michael Keller 750d3de7a1
Merge pull request #5091 from mikeller/update_pull_request_template
Update pull request template for feature freeze.
2018-02-02 00:31:56 +13:00
Martin Budden 62ad67f45b Change attitude task freqency when in angle or horizon mode 2018-02-01 11:31:41 +00:00
Martin Budden 4509e8d237
Merge pull request #5096 from martinbudden/bfa_imu_mag
Avoid compass calculation in IMU when USE_MAG not defined
2018-02-01 11:18:31 +00:00
Martin Budden 3883e6a686
Merge pull request #5083 from martinbudden/bfa_common_target_tidy
Tidy of common target #defines
2018-02-01 11:15:50 +00:00
Martin Budden e2683cd2dc Corrected VTX vtables to not use static device handle 2018-02-01 11:15:07 +00:00
Martin Budden f000d7bf10
Merge pull request #5095 from martinbudden/bfa_fc_tasks
Tidy of fc_tasks
2018-02-01 10:50:40 +00:00
Martin Budden d7ccd2488c Avoid compass calculation in IMU when USE_MAG not defined 2018-02-01 10:48:05 +00:00
Martin Budden 6678302103 Tidy of fc_tasks 2018-02-01 09:06:32 +00:00
Martin Budden 28e104e7da Tidy of common target #defines 2018-02-01 08:13:16 +00:00
Martin Budden 67d33b0a52
Merge pull request #5082 from martinbudden/bfa_target_undefs
Removed unnecessary target #undefs
2018-02-01 08:08:27 +00:00
Bruce Luckcuck 003979a2eb Change airmode activation to be throttle percent based to fix 3D mode
The previous logic used an absolute throttle value of 1350us which won't work in 3D mode and resulted in airmode being activated on arming.  Renamed the parameter to airmode_start_throttle_percent and set the default to 32 (equivalent to what the previous setting of 1350 when min_check is taken into account).

To preserve MSP functionality the value is transformed to/from microsecond values (32 becomes 1320) when interfaced.
2018-01-31 22:40:56 -05:00
Michael Keller 1cd267e025 Update pull request template for feature freeze. 2018-02-01 15:29:57 +13:00
Bas Delfos 40b6bda25e Added remaining bytes check 2018-01-31 23:29:26 +01:00
Bas Delfos ff68f0da0d Added DSHOT beacon config to MSP_(SET_)BEEPER 2018-01-31 23:12:08 +01:00
Michael Keller f45c503738
Merge pull request #5077 from mikeller/enable_external_osd_for_all_targets
Enabled external OSD for all targets.
2018-02-01 09:35:26 +13:00
Martin Budden 46615c8db8
Merge pull request #5081 from AndersHoglund/spektrum_vtx_telemetry
Spektrum VTX status via telemtry added. Some code shrinkage also.
2018-01-31 20:09:20 +00:00
Anders Hoglund 180751fe06 Spektrum VTX status via telemtry added. Some code shrinkage also. 2018-01-31 15:46:17 +01:00
Martin Budden 67fd67a15f Removed unnecessary target #undefs 2018-01-31 14:31:07 +00:00
Martin Budden b4d399eb3a
Merge pull request #4935 from etracer65/runaway_takeoff_prevention
Initial implementation of Runaway Takeoff Prevention (anti-taz)
2018-01-31 13:54:04 +00:00
Bruce Luckcuck a32b05c284 Initial implementation of Runaway Takeoff Prevention (anti-taz)
Detects runaway pidSum values on takeoff and auto-disarms to prevent the "Tasmanian Devil" caused by incorrect props, wrong motor order/direction, incorrect flight controller orientation, etc.  After a successful takeoff and normal flight is detected the feature is disabled for the remainder of the battery.
2018-01-31 07:36:16 -05:00
Martin Budden 5cd6627fb2 Tidy RX failsafe code 2018-01-31 12:26:01 +00:00
Martin Budden 52c629751c
Merge pull request #5071 from AndersHoglund/spektrum_rx_protocol_corrections
Spektrum protocol corrections, VTX ctrl and srxl tm in correct phases.
2018-01-31 11:49:58 +00:00
Michael Keller 6553122079
Merge pull request #4313 from martinbudden/bf_six_rate_profiles
Increased number of rate profiles to 6
2018-02-01 00:24:13 +13:00
Michael Keller eca67c24f2
Merge pull request #5079 from martinbudden/bfa_rssi_source_type
Fixed rssi source type
2018-02-01 00:19:57 +13:00
Michael Keller 6b4dfcaff7
Merge pull request #5078 from martinbudden/bfa_vtx_update
Remove unnecessary currentTime checking in vtxUpdate
2018-02-01 00:10:07 +13:00
jflyper 825bc7aaba Add comment about duplicate initialization of timers and DMAs 2018-01-31 19:53:24 +09:00
Anders Hoglund 7e54f8cdc9 Spektrum protocol corrections, VTX ctrl and srxl tm in correct phases. 2018-01-31 11:21:15 +01:00
Martin Budden 7acebf8b34 Increased number of rate profiles to 6 2018-01-31 09:21:53 +00:00
Martin Budden 4e0a40ceb9 Fixed rssi source type 2018-01-31 09:00:37 +00:00
Martin Budden a655d7ae85 Remove unnecessary currentTime checking in vtxUpdate 2018-01-31 08:19:19 +00:00
mikeller 0572e8de00 Enabled external OSD for all targets. 2018-01-31 19:17:39 +13:00
Michael Keller ab1812455f
Merge pull request #5008 from martinbudden/bfa_use_osd
Move define of USE_OSD into common_fc_pre.h
2018-01-31 19:16:04 +13:00
Michael Keller b22e84a2e1
Merge pull request #4998 from martinbudden/bfa_vtx_rtc6705_tidy
Remove VTX frequency table and band name duplication from RTC6705
2018-01-31 19:14:12 +13:00
Michael Keller 3774ee2bae
Merge pull request #5075 from etracer65/omnibus_remove_rtc_time
Remove RTC_TIME from OMNIBUS to free up flash space
2018-01-31 15:21:14 +13:00
Bruce Luckcuck b8e3b9b7a6 Remove RTC_TIME from OMNIBUS to free up flash space
Added #undef USE_RTC_TIME to target/OMNIBUS/target.h
Frees up 1384 bytes.
2018-01-30 20:49:56 -05:00
Michael Keller 8db45109fe
Merge pull request #5065 from mikeller/rearrange_beerotorf4_dma
Rearranged BEEROTORF4 DMA to make quad mixer work with LED_STRIP.
2018-01-31 13:21:29 +13:00
Steffen Windoffer 45a6588eaf remove setting which disallow disarming on throttle above low 2018-01-30 23:48:54 +01:00
elepete 0b863e1263 Changed AK8963 axis inversion
modified:   src/main/drivers/compass/compass_ak8963.c
       - *-1 for mag values
       modified:   src/main/target/SPRACINGF3EVO/target.h
       - default mag sensor orientation fixed
2018-01-30 22:35:21 +01:00
Michael Keller 69297d0dc2
Merge pull request #5070 from betaflight/revert-5061-fc_core_size_optimization
Revert "Size Optimization: Move time-critical code from fc_core.c to fc_tasks.c"
2018-01-31 09:48:55 +13:00
Michael Keller 14b3d574f7
Revert "Size Optimization: Move time-critical code from fc_core.c to fc_tasks.c" 2018-01-31 08:41:46 +13:00
Martin Budden 6271ddb60d
Merge pull request #5068 from etracer65/pidsum_calc_optimize
Optimize pidSum calculation by storing the value rather than recalculating in multiple places
2018-01-30 19:32:26 +00:00
Bruce Luckcuck fba0b2cea3 Optimze pidSum calculation by storing the value rather than recalculating in multiple places.
Saves 72 bytes. Will save at least that additionally when incorporated into Runaway Takeoff Prevention (which also calculates the pidSum in two places).

Additionally adds a slight performance improvement by not repeating the floating point additions to calculate the pidSum in multiple places.  Effectively replaces 2 calculations with 1 (4 with 1 with Runaway Takeoff Prevention).
2018-01-30 09:58:41 -05:00
Michael Keller 6efe34d4da
Merge pull request #5062 from betaflight/de_msp_oob_handling
Handle MSP out of band data with guard interval
2018-01-31 01:26:27 +13:00
jirif b612df0c53 Optimize pid loop 2018-01-30 11:23:03 +01:00
mikeller 174e53089e Rearranged BEEROTORF4 DMA to make quad mixer work with LED_STRIP. 2018-01-30 22:50:32 +13:00
Konstantin Sharlaimov (DigitalEntity) fda453ca74 Fix failing SPRACINGF3OSD build 2018-01-30 12:46:19 +10:00