1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00
Commit graph

335 commits

Author SHA1 Message Date
Bruce Luckcuck
9e53d97e4d Remove stale baro parameter baro_cf_alt 2019-01-16 18:26:13 -05: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
Tony Cabello
ec71965dd8 GPS Rescue disabled warning 2019-01-15 17:34:04 +01:00
Thorsten Laux
d441955391 more renaming to accomodate review feedback 2019-01-15 22:10:34 +13:00
Thorsten Laux
d90ef12248 address review feedback 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
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
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
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
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
75a014eb1e Parameter for updating GPS Home point once 2019-01-11 04:38:11 +01:00
Bruce Luckcuck
fe33574120 Fix vbat max cell voltage CMS menu entry range 2019-01-10 16:35:48 -05: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
Michael Keller
6e42e3f68f
Merge pull request #7320 from TonyBlit/gps_rescue_arm
Allow arming without GPS
2019-01-11 03:48:34 +13: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
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
Thorsten Laux
9b05a99c94 change q to same scale as dynamic and correct rpm pt1 filter gain 2019-01-09 09:24:02 +01:00
Michael Keller
a136f0b7e0
Merge pull request #7304 from joelucid/linear_pids
Thrust Linearization
2019-01-09 09:08:06 +13:00
Tony Cabello
007e14f348 GPS Rescue: allow arming without GPS fix (refactor) 2019-01-07 14:27:33 +01:00
Thorsten Laux
8d4ed72e13 rpm telemetry based notch filter 2019-01-07 13:36:01 +01:00
phobos-
dfe1e8d3aa Implemented FRSKY X EU LBT 2019-01-07 13:15:49 +01:00
Thorsten Laux
ad253c146b add Thrust Linearization feature 2019-01-03 15:09:17 +01:00
Thorsten Laux
816da6cbf5 Dshot erpm telemetry on the signal line 2019-01-03 14:42:52 +01:00
Michael Keller
770e883d87
Merge pull request #7292 from kmitchel/fft_osd
Add max FFT to OSD Summary
2018-12-29 22:22:36 +13:00
Kenneth Mitchell
ab4ff72cc2
Add max FFT to OSD Summary 2018-12-27 14:50:09 -06:00
fgiudice98
9d5fb85474 Increased vbat precision 2018-12-25 12:00:45 +01:00
Michael Keller
24344405fb
Merge pull request #7260 from AlienWiiBF/I2C_GENERIC_CONFIG
Make I2C pullups and overclocking configurable for generic targets
2018-12-25 01:39:02 +13:00
Pieter Kruger
fdb9948f53 Add GPS rescue unreliable now warning in OSD 2018-12-23 14:34:35 +10:00
MJ666
41390fd722 Make I2C pullups and overclocking configurable for generic targets
Update generic targets config files for I2C pullups
2018-12-22 12:43:12 +01:00
Bruce Luckcuck
b8085b170e MSC on-board flash: Persist RTC across reboot and use as file timestamp
Adds support to persist the RTC (if set) across the reboot if entering mass storage mode for on-board flash. The value is then used as the timestamp for the files exposed in the virtual FAT32 filesystem. The files will then have reasonable creation dates when copied to the host computer.

If the RTC is not set (or supported), then the default timestamp of 2018-01-01 will be used (unchanged from previous).

Included some improvements to the RTC functions and exposed the `tz_offsetMinutes` in the `timeConfig` PG. Support already existed for timezone offsets but the parameter wasn't exposed to the user and couldn't be set.

Move timezone offset up a layer as a parameter to systemResetToMsc()
Adds support for specifying a custom timezone offset from both the CLI and MSP calls to enter mass storage mode.

Added an option timezone offset minutes to the CLI `msc` command. If no parameter is specified then the default as specified by `timezone_offset_minutes` will be used. So to reboot into mass storage mode and force the file timestamps to be in UTC, use `msc 0`.

Added reboot message `MSP_REBOOT_MSC_UTC` to support rebooting into mass storage mode and forcing the timestamps to use UTC time (0 offset). The Configurator will need to be modified to use this message for operating systems that expect UTC times for FAT file systems (like Linux).
2018-12-17 19:40:51 -05:00
phobos-
6651baa7d8 Implemented SPI SPEKTRUM protocol 2018-12-16 11:15:35 +01:00
Michael Keller
60118da63f
Merge pull request #6432 from joelucid/integrated_yaw
For discussion: Integrated yaw control
2018-12-15 18:40:00 +13:00
Michael Keller
6ad2575716
Merge pull request #7190 from jflyper/bfdev-per-device-preinit
[SPI] Introduce per device pin pre-init
2018-12-14 20:32:19 +13:00
jflyper
9ea1428d11 Introduce per device pin pre-init 2018-12-13 11:15:26 +09:00
Michael Keller
b04d6d69af
Merge pull request #7193 from joelucid/ac_fixes
fix abs control refactor, make abs control cutoff configurable
2018-12-13 00:28:13 +13:00
Thorsten Laux
906a697668 make iyaw conditional, bump pidProfile version number 2018-12-11 08:28:53 +01:00
Thorsten Laux
8bcc4dab64 fix indentation and pidProfile version number 2018-12-11 08:18:51 +01:00
Michael Keller
4987151bb5
Merge pull request #7187 from etracer65/launch_throttle_trigger_max
Launch Control: increase throttle trigger percent max to 90
2018-12-11 01:20:46 +13:00
Thorsten Laux
17a995e03e fix abs control refactor, make abs control cutoff configurable 2018-12-10 09:05:20 +01:00
Thorsten Laux
52e2ad2301 eliminate extra newlines 2018-12-09 20:38:15 +01:00
Thorsten Laux
d4512672fe Move to pid.c, add relax to offset drag based component, make configurable 2018-12-09 14:21:44 +01:00
Pieter Kruger
ef459cb161 Add OSD Stick Overlay feature - fix issue 3988 2018-12-09 21:42:45 +10:00
Bruce Luckcuck
ab0e1260be Launch Control: increase throttle trigger percent max to 90
Per user request. Apparently the previous max of 50% wasn't providing agressive enough launches for some users.
2018-12-08 11:25:28 -05:00
Michael Keller
586eef94e5
Merge pull request #7183 from TonyBlit/gps_flight_distance
Total Distance renamed to Flight Distance
2018-12-08 22:41:42 +13:00
Tony Cabello
bbacb7ca28 Total Distance renamed to Flight Distance 2018-12-08 06:57:36 +00:00
Michael Keller
c400186e70
Merge pull request #7078 from kmitchel/cascaded_dynamic_notch
Cascaded dynamic notches.
2018-12-05 12:49:11 +13:00
Michael Keller
b6408b3a32
Merge pull request #6714 from pkruger/4155-feature-for-osd-elements-on-a-switch
4155 feature for osd elements on a switch
2018-12-04 02:25:57 +13:00