Commit Graph

13145 Commits

Author SHA1 Message Date
jflyper 80c1cfa6db Call vtxInit after device parameters are initialized 2019-01-18 01:20:35 +09:00
Michael Keller e0fc9300ed
Merge pull request #7181 from hydra/fix-msp-flash-read
Fix MSP flash read
2019-01-17 01:53:36 +13:00
mikeller 77f0e106f6 Removed unnecessary cast. 2019-01-17 00:02:13 +13:00
Michael Keller b0e06d2e26
Merge pull request #7395 from TonyBlit/gps_rescue_disabled_warning
GPS Rescue disabled warning
2019-01-16 23:53:29 +13:00
Michael Keller eec46d4f83
Merge pull request #7402 from mikeller/fix_spracingf3neo_flash_overflow
Fixed flash overflow on SPRACINGF3NEO.
2019-01-16 11:45:12 +13:00
Michael Keller 469d5c5477 Fixed flash overflow on SPRACINGF3NEO. 2019-01-16 08:55:23 +13:00
Michael Keller 305f2c213a
Merge pull request #7285 from jflyper/bfdev-vtx-table-refactor
[VTX] Convert direct reference to string and freq table to vtxCommon services
2019-01-16 07:16:11 +13:00
Tony Cabello ec71965dd8 GPS Rescue disabled warning 2019-01-15 17:34:04 +01:00
Michael Keller 718b29d674
Merge pull request #7331 from joelucid/scheduler_fix
Schedule time based tasks such that average frequency approaches 1/de…
2019-01-16 00:31:06 +13:00
mikeller a95980ef09 Undo move of USE_SMART_FEEDFORWARD, as it's been done in #7391 already. 2019-01-15 22:13:02 +13:00
Thorsten Laux 96e33e6c18 manage space of f3 targets 2019-01-15 22:10:34 +13:00
Thorsten Laux d441955391 more renaming to accomodate review feedback 2019-01-15 22:10:34 +13:00
Thorsten Laux 6e46f05e7d remove smart_feedforward at 128mb to make room for scheduler_fix 2019-01-15 22:10:34 +13:00
Thorsten Laux d90ef12248 address review feedback 2019-01-15 22:10:34 +13:00
Thorsten Laux 006749a66c reverse unit test change 2019-01-15 22:10:34 +13:00
Thorsten Laux d9cd6f2cda fix FAST_RAM_ZERO_INIT 2019-01-15 22:10:34 +13:00
Thorsten Laux 33741dce75 Add option for scheduling policy targeting constant average task rates 2019-01-15 22:10:34 +13:00
Michael Keller 2bf2ded102
Merge pull request #7383 from jflyper/bfdev-f4-vector-table-relocation
[F4] Relocate ISR vector table to RAM
2019-01-15 21:53:28 +13:00
Michael Keller d4f164b3cc
Merge pull request #7390 from etracer65/msc_use_persistence_layer
Change MSC boot mode to use persistence layer and unify with bootloader
2019-01-15 21:36:14 +13:00
Michael Keller e1d7948b0a
Merge pull request #7389 from bnn1044/pyrof4
Enable Pin A14 for pinio use
2019-01-15 21:35:02 +13:00
Michael Keller 521db54735
Merge pull request #7387 from klutvott123/Increase-voltage/current-cutoff-frequencies
Increase voltage/current cutoff frequencies
2019-01-15 21:32:23 +13:00
Michael Keller 234186f493
Merge pull request #7392 from mikeller/remove_features_from_betaflightf3
Removed features from BETAFLIGHTF3 to fix flash overflow. Also removed some doubled up 'undef' statements.
2019-01-15 01:54:23 +13:00
Michael Keller 07320f6633
Merge pull request #7391 from mikeller/move_smart_feedforward
Removed Smart Feedforward from F3.
2019-01-15 01:54:08 +13:00
Michael Keller 06f1661d8f
Merge pull request #7380 from etracer65/cli_msc_device_check
Check that flash device is selected for blackbox before msc CLI reboot
2019-01-15 00:14:59 +13:00
mikeller c3400fc524 Removed features from BETAFLIGHTF3 to fix flash overflow. Also removed some doubled up 'undef' statements. 2019-01-14 22:57:41 +13:00
mikeller a42d2ae500 Removed Smart Feedforward from F3. 2019-01-14 22:27:06 +13:00
jflyper d8f55f35ef Convert direct reference to string and freq table to vtxCommonXXX services 2019-01-14 11:31:45 +09:00
Bruce Luckcuck 065ce24d4d Change MSC boot mode to use persistence layer and unify with bootloader
Replaced the existing `PERSISTENT_OBJECT_BOOTLOADER_REQUEST` that was bootloader specific, with `PERSISTENT_OBJECT_BOOTMODE_REQUEST` that can be shared by any required boot mode based on it's contents. Currently supports bootloader and MSC, but is extensible for additional future needs. The previous hardcoded memory address usage for MSC boot was removed.
2019-01-13 19:45:22 -05:00
Michael Keller 5c5520ecf4
Merge pull request #7382 from etracer65/prevent_msc_bootloop
Fix boot loop if mass storage mode init fails
2019-01-14 13:36:46 +13:00
Cheng Lin b337ab45f8 Enable Pin A14 for pinio use
Signed-off-by: Cheng Lin <bnn1044@gmail.com>
2019-01-13 18:52:41 -05:00
Michael Keller 492d1f323e
Merge pull request #6809 from jflyper/bfdev-spi-transaction
Allow mixed speed and mode on a SPI bus
2019-01-14 09:23:50 +13:00
jflyper 343e9b3a67 Allow mixed speed and mode on a SPI bus by CR1 caching 2019-01-14 03:34:27 +09:00
Hans Christian Olaussen 6770bbafca Increase voltage/current cutoff frequencies
Increase IBAT_LPF_FREQ  and VBAT_LPF_FREQ
2019-01-13 17:41:48 +01:00
jflyper 52625a4d56 Relocate ISR vector table to RAM for F4 2019-01-14 00:05:06 +09:00
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
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