1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00
Commit graph

350 commits

Author SHA1 Message Date
mikeller
38e1ce04df Reorganised interfaces, putting them where they are used. 2019-01-27 13:38:22 +13:00
Michael Keller
a4ce8b5600
Merge pull request #7447 from mikeller/make_battery_filtering_configurable
Make battery voltage / current filter cutoffs configurable.
2019-01-24 01:45:56 +13:00
Michael Keller
3c6d0a1008
Merge pull request #7444 from etracer65/fix_osd_32bit_warnings
Fix OSD warnings settings to use UINT32 type
2019-01-24 01:45:14 +13:00
Bruce Luckcuck
33202b33b0 Fix gyro_filter_debug_axis settings definition
Setting was incorrectly placed in the PROVILE_VALUE but should be in the MASTER_VALUE section.
2019-01-22 09:44:55 -05:00
mikeller
3e1e467079 Make battery voltage / current filter cutoffs configurable. 2019-01-22 22:45:59 +13:00
Bruce Luckcuck
1c6f801030 Fix OSD warnings settings to use UINT32 type
Missed in #7423
2019-01-21 09:07:42 -05:00
AJ Christensen
5bcf35c7af Extend gyro filter implementation debugging for pitch and yaw axis.
* Introduce CLI parameter gyro_filter_debug_axis which defaults to 'ROLL',
  the previous behavior. When set to either PITCH, or YAW, the debug logging
  implementation in the gyro filtering will use that axis instead.
2019-01-21 22:22:37 +13:00
Bruce Luckcuck
6034143a59 Fix LEDSTRIP defines to prevent compilation errors 2019-01-19 14:59:22 -05:00
Michael Keller
dfb438cc5b
Merge pull request #7303 from pkruger/4278-LED-profiles-switchable-via-OSD
Add LED strip profile feature
2019-01-19 23:18:41 +13:00
Pieter Kruger
4ec536a317 Add LED profile feature - 4278 2019-01-19 20:23:03 +10:00
Michael Keller
b4663aa5a5
Merge pull request #7419 from etracer65/stale_baro_parms
Remove stale baro parameter baro_cf_alt
2019-01-18 23:47:08 +13:00
Michael Keller
2e2609fbb6
Merge pull request #7417 from phobos-/flysky-refactor
Added flysky spi rx specific cli commands
2019-01-18 23:11:41 +13:00
Bruce Luckcuck
0ac761da22 Shorten parameter names per suggestions 2019-01-17 20:31:23 -05:00
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
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
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