Commit Graph

13412 Commits

Author SHA1 Message Date
Michael Keller 7f58ecc77f
Merge pull request #7294 from TonyBlit/gps_rescue_no_mag
Mag heading ignored while GPS Rescue is running
2019-01-13 23:14:06 +13:00
Michael Keller c2ccf10675
Merge pull request #7373 from ctzsnooze/D_CUT
D_CUT
2019-01-13 23:11:18 +13:00
ctzsnooze 7e3e5649e1 DTERM_CUT
This code cuts D by a specified percentage durning normal flight.

It lets D smoothly rise up to normal during rapid gyro moves like flips and rolls, and increase during prop wash events.

D should now be tuned to values the 'normal' 30-45 range.

If D is 40, a dterm_cut_percentage of 65 will cut D to 14 in normal flight, but the quad will still get full 40 of D to control bounce-back after flips and about 25 of D during strong prop wash.

The dterm_cut_percentage can be adjusted via the OSD, from the D filtering page.
Adding d_cut results in cooler motors, lower amounts of noise in motor traces and faster reactions to quick stick inputs.

Too high a dterm_cut_percentage may bring out P oscillation from lack of D.  Values of 70% are generally OK.

Input is gyro differential (delta).  Frequencies above 40hz (above propwash) are attenuated with a configurable (dterm_cut_range_hz) biquad filter.  Lower values for range can be used if the quad is very noisy or gets low frequency D resonant oscillation.  Up to 50 or 60hz may suit clean quads where prop wash control is the main priority.  Too high a range value results in D being boosted from noise in normal flight.

The boost signal is 'integrated, smoothed and delayed' with a 7hz PT1 'dterm_cut_lowpass_hz' filter.  The default of 7Hz gives about the right amount of smoothing and delay.  Higher numbers cause the boost to come on faster, with less delay. Lower values delay the boost effect and cause it to last longer.

The dterm_cut_gain amount controls the strength of the boost effect by amplifying the input to the boosting effect.  If the quad is flow gently, a higher gain value may be needed to gain full boost.

Logging with set debug_mode = D_CUT allows recording of realtime D values on roll and pitch into debug 2 and 3.  The reatime D value should reach its set maximum during rapid turns, ideally at about the time D itself peaks.  If it fails to reach the maximum, gain should be increased.

The D_Cut feature is not enabled on LUXV2RACE, OMNIBUS, SPRACINGF3NEO because there isn't enough flash space.
2019-01-12 21:09:03 -07:00
Michael Keller 8e54c6711c
Merge pull request #7381 from mikeller/fix_luxv2_race_flash_overflow
Removed features from LUXV2_RACE, OMNIBUS, and SPRACINGF3NEO to fix flash overflow.
2019-01-13 14:02:48 +13:00
Michael Keller 329b9d38d7
Merge pull request #7279 from AlienWiiBF/FF_RACEPIT
Add FuriousFPV RacePit target as generic target
2019-01-13 12:37:43 +13:00
Michael Keller cbd3a19595
Merge pull request #7371 from Asizon/frskyspidoc
Updated Frsky Spi Documentation for LBT
2019-01-13 12:32:24 +13:00
Michael Keller 40c6621d0a
Merge pull request #7374 from stawiski/pr-f7-adc-cleanup
ADC driver refactor: removed "continue" in loops to improve readabili…
2019-01-13 12:32:00 +13:00
Michael Keller 1c3eb9520d
Merge pull request #7375 from stawiski/pr-transponder-ir-io-cleanup
Removed unused "dmaBufferOffset" bloat from transponder_ir_io drivers…
2019-01-13 12:31:39 +13:00
mikeller 441b52f309 Removed some more features from OMNIBUS and SPRACINGF3NEO as well. 2019-01-13 12:23:04 +13:00
Bruce Luckcuck 0ed1fbc609 Fix boot loop if mass storage mode init fails
The logic already performed a reboot if mass storage init failed, but it never reset the boot vector value so it continued to contain the `MSC_MAGIC` value leading to a boot loop.

Also fixed fixed the F7 version of `mscWaitForButton()` as it was using the F4 vector.
2019-01-12 18:23:03 -05:00
mikeller 715107eb00 Removed USE_EXTENDED_CMS_MENUS from LUXV2_RACE to fix flash overflow. 2019-01-13 12:11:47 +13:00
Bruce Luckcuck e9d498e77a Check that flash device is selected for blackbox before msc CLI reboot
Previously the logic would only validate whether one or more of the defined flash device types was ready and not examine the user selected blackbox device. Then on reboot during `mscStart()` the logic there would use the selected blackbox device type to decide which mode to operate in. If a flash device wasn't selected the msc initialization failed (like if serial port or "no logging" were selected).

This change only checks the status of the selected blackbox device to ensure that a reboot will properly start mass storage mode.
2019-01-12 17:12:08 -05:00
joelucid d3aa5855ce
Merge pull request #7378 from joelucid/etracer65/dshot_telem_beacon_arming_fix
Fix race condition between DSHOT beacon and bidirectional telemetry #7372
2019-01-12 14:34:02 +01:00
Scavanger 54d889e4d5
Merge pull request #8 from betaflight/master
Sync
2019-01-12 13:59:19 +01:00
Thorsten Laux 7859e6d540 Add dshot command queue and limit max notch filter frequency 2019-01-12 12:25:30 +01:00
Michael Keller 10ae62efed
Merge pull request #7312 from mikeller/amend_parentheses_rule
Amended rule to stipulate minimal use of parentheses.
2019-01-12 19:22:55 +13:00
Michael Keller 9b43b30b48
Merge pull request #7369 from TonyBlit/gps_set_home_once
Parameter for updating GPS Home point once
2019-01-12 19:21:11 +13:00
Michael Keller 5aa661d3b9
Merge pull request #7340 from robertgosz/GPS_SRXL_telemetry
Spektrum SRXL GPS telemetry frames added
2019-01-12 18:06:11 +13:00
Michael Keller 804c32556d
Merge pull request #7370 from vodka-bears/frsky-rx-spi-a1-tryagain
Add constant option for A1 FrSky SPI (retry)
2019-01-12 18:04:01 +13:00
Michael Keller f07c67fd86
Merge pull request #7361 from mikeller/fix-controls-broken-links
From cleanflight: Fix broken stick configuration documentation links.
2019-01-12 18:02:17 +13:00
Michael Keller f9e12337d5
Merge pull request #7368 from TonyBlit/osd_gps_no_fix
Hide OSD Altitude and Numeric Vario when no GPS fix
2019-01-12 17:56:52 +13:00
Michael Keller af64f93a9a
Merge pull request #7367 from etracer65/cms_save_exit_popup
CMS exit/save popup menu
2019-01-12 17:51:23 +13:00
Michael Keller 219b627016
Merge pull request #7365 from etracer65/rxfail_set_for_all_channels
Allow "set" option on all channels for stage 1 failsafe (rxfail)
2019-01-12 17:47:04 +13:00
Michael Keller 92d201afa3
Merge pull request #7364 from etracer65/fix_cms_max_cell_voltage
Fix vbat max cell voltage CMS menu entry range
2019-01-12 17:46:45 +13:00
Michael Keller 4bd650ef41
Merge pull request #7363 from etracer65/cms_failsafe_menu
Add CMS failsafe setup menu
2019-01-12 17:44:41 +13:00
Mikolaj Stawiski c16a8f4e96 Removed unused "dmaBufferOffset" bloat from transponder_ir_io drivers. Made "waitCounter" RAM variable available only in debug. 2019-01-12 11:51:40 +11:00
Mikolaj Stawiski 401ecb7afd ADC driver refactor: removed "continue" in loops to improve readability and fixed a typo. 2019-01-12 11:49:40 +11:00
Asizon 44c83a297f Updated Frsky Spi Documentation 2019-01-11 16:49:43 +01:00
vodka-bears c88db1a43a Add constant option for A1 FrSky SPI (retry)
When using external XJT it annoyingly beeps when A1 drops below 3.7v (72 out of 255). I removed frsky_spi_use_external_adc and added frsky_spi_a1_source = VBAT, EXTADC, CONST. To prevent XJT from beeping ever set CONST and XJT will assume that the "reciever" is powered with 5v. I messed up previous PR #7305 branch so I decided that it's easier to open a new one.

Closes #7297
2019-01-11 10:22:30 +03:00
Tony Cabello 25a499cc9a Mag heading optionally ignored while GPS Rescue is running
If flyaway condition is met and a mag is in use, mag is disabled and countdown is reset
Minor cleanup
2019-01-11 06:26:01 +01:00
Tony Cabello 99778b5a6e Hide OSD Altitude and Numeric Vario when no GPS fix 2019-01-11 06:14:57 +01:00
Tony Cabello 75a014eb1e Parameter for updating GPS Home point once 2019-01-11 04:38:11 +01:00
Bruce Luckcuck 5b5581fa2a CMS exit/save popup menu
Adds a new exit/save menu that can be displayed at any time using the yaw-right stick command. Yaw-left still functions as "back".

Allows the user to save their settings even while nested deep in multiple menus. Previously the user was required to back up all the way to the top level menu to save or exit.
2019-01-10 18:59:50 -05:00
Michael Keller d8e8d8374d
Merge pull request #7309 from mikeller/update_coding_style_2
Updated coding style documentation.
2019-01-11 11:34:10 +13:00
Bruce Luckcuck cb268c726b Allow "set" option on all channels for stage 1 failsafe (rxfail)
Previously the "set" option was only available for aux channels and roll/pitch/yaw/throttle only allowed "auto" (R/P/Y centered, throttle min) and "hold" (hold all channels at previous values). The problem with this is that many pilots wil set the throttle channel to "hold" to avoid a complete drop (and possible motor _stop if configured). This could lead to undesirable behavior if the throttle happened to be at a high value when the signal drop occurred.

With this change the user can set the control channels to a preset value as appropriate during a stage 1 failsafe. For example it may make sense to set the throttle channel to an approximate "hover" value appropriate for that quad to avoid gaining/losing altitude during the initial stage 1 portion of a failsafe.

No changes are made to stage 2 and the existing behavior of DROP, AUTO-LAND, or GPS-RESCUE (if configured) still apply.
2019-01-10 17:05:40 -05:00
Bruce Luckcuck fe33574120 Fix vbat max cell voltage CMS menu entry range 2019-01-10 16:35:48 -05:00
Bruce Luckcuck 330d93eb5b Add CMS failsafe setup menu
Located under the Features top-level menu. Allows configuring the failsafe procedure (like selecting GPS-RESCUE if applicable).

Bounded with `#ifdef USE_CMS_FAILSAFE_MENU` so it can be disabled for space critical targets.
2019-01-10 15:22:36 -05:00
Michael Keller d76807fd33
Merge pull request #7355 from phobos-/dsmx-ci
Added spektrum SPI driver to OMNIBUSF4 target
2019-01-11 09:14:20 +13:00
Michael Keller 40522dc3f3
Merge pull request #7356 from phobos-/rx-spi-msp-order-fix
Fixed order of rx spi protocols in rx_spi_protocol_e
2019-01-11 09:13:28 +13:00
Robert Gosz 940ff778f0 GPS telemetry frames added 2019-01-10 19:41:05 +01:00
Michael Keller ccea11bfc4
Merge pull request #7348 from Kurtoid/patch-1
Minor edits to Telemetry.md
2019-01-11 03:49:28 +13:00
Michael Keller 6e42e3f68f
Merge pull request #7320 from TonyBlit/gps_rescue_arm
Allow arming without GPS
2019-01-11 03:48:34 +13:00
Dominic Clifton 2f2384fa27 Merge pull request #3074 from cleanflight/fix-controls-broken-links
Fix broken stick configuration documentation links.
2019-01-11 03:33:48 +13:00
Michael Keller 970e8fe46b
Merge pull request #7352 from etracer65/stage1_failsafe_auto_3d_fix
Fix stage 1 failsafe throttle "auto" setting for switched 3D modes
2019-01-11 02:34:38 +13:00
phobos- 9cfc9f7857 Added spektrum SPI driver to OMNIBUSF4 target 2019-01-09 21:26:57 +01:00
Michael Keller a1eac6f0d1
Merge pull request #7350 from joelucid/rpm_filter_fixes
change q to same scale as dynamic and correct rpm pt1 filter gain
2019-01-10 08:45:14 +13:00
phobos- 5e3024ff57 Fixed order of rx spi protocols in rx_spi_protocol_e to retain msp compatibility 2019-01-09 17:54:43 +01:00
Bruce Luckcuck 7ad3367285 Fix stage 1 failsafe throttle "auto" setting for switched 3D modes
The logic did not support the switched 3D modes and would always set the throttle to `mid_rc`. This is appropriate for normal 3D mode, but for switched 3D modes this would lead to 50% throttle (either positive or negative depending on the switched mode settings).
2019-01-09 06:34:28 -05:00
Michael Keller ec083dfa9e
Merge pull request #7339 from phobos-/frsky-x-lbt
Implemented FRSKY X EU LBT
2019-01-09 23:02:43 +13:00
Michael Keller b1db8d1408
Merge pull request #7353 from mikeller/fix_flash_overflow_on_midelicf3
Fixed flash space overflow on MIDELICF3.
2019-01-09 22:16:08 +13:00