1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +03:00
Commit graph

10585 commits

Author SHA1 Message Date
Bruce Luckcuck
9e53d97e4d Remove stale baro parameter baro_cf_alt 2019-01-16 18:26:13 -05:00
phobos-
305e423c90 Added flysky spi rx specific cli commands 2019-01-16 21:11:50 +01:00
mikeller
2e000506c8 Renamed to 'FEATURE_CUT_LEVEL', added 'FORCE_FEATURE_CUT_LEVEL' command line option. 2019-01-17 09:03:35 +13:00
ctzsnooze
65750f09dc Classic D values if no D_Cut
At compile time, if D_CUT is not defined for a given target, the user will get lower default D values.
2019-01-16 09:00:38 -07:00
Bruce Luckcuck
2cb1f8f12e Expose individual telemetry sensor disable flags as parameters (F4+)
Exposes each telemetry sensor disable flag as a separate OFF/ON parameter. Makes the settings more accessible without the user having to calculate the binary bitmask directly.

Only added for F4+ due to flash usage. F3 will continue to present the `telemetry_disabled_sensors` 32bit bitmask setting.

Would almost like to reverse the logic to make them enabling flags. Having a "disabled = ON" is a little counterintuitive.
2019-01-16 08:09:59 -05: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
07f299962d Fixed conditionals in OSD code. 2019-01-17 01:44:16 +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
776549785d For discussion: Take a methodical approach to dealing with flash overflows. 2019-01-16 15:56:10 +13:00
Kenneth Mitchell
f6e456cd06
Allow dyn lpf to initialize if static lpf config is 0.
Change min > max per review.

Fix missing ifdef.
2019-01-15 16:48:21 -05: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
Bruce Luckcuck
e0d81c4c2b Validate and reset invalid blackbox device selections
Since we really can't conditionally build the list of options, it's possible to select an invalid blackbox device type using CLI `set blackbox_device =`. This change validates that the selected device is included in the code and if not resets to "no logging".
2019-01-15 11:17:39 -05:00
Bruce Luckcuck
4da9b75c8f Fix compilation errors if USE_BLACKBOX is not defined 2019-01-15 10:08:15 -05: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
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
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