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

241 commits

Author SHA1 Message Date
Michael Keller
2101326a1d
Merge pull request #9619 from mikeller/add_motor_protocol_disabled
Added 'disabled' motor protocol and made it the default.
2020-04-11 12:41:18 +12:00
mikeller
d1ac12eccd Added 'disabled' motor protocol and made it the default. 2020-04-01 20:33:29 +13:00
Michael Keller
d494d215a9
Merge pull request #9643 from hydra/bf-fix-video-configuration-for-frskyosd
Fix unable to change video system for FrSkyPixelOSD.
2020-03-28 13:51:19 +13:00
Dominic Clifton
4084c9b3d5 Fix unable to change video system for FrSkyPixelOSD. 2020-03-26 17:34:37 +01:00
Michael Keller
395a412b59
Merge pull request #9561 from ctzsnooze/vbat-motor-limit
Battery sag compensation by varying motor output
2020-03-26 13:58:16 +13:00
mikeller
b020917c4b Prevent 0 in 'vbat_display_lpf_period' to avoid division by zero. 2020-03-25 00:41:50 +13:00
Michael Keller
a4f9e42104
Merge pull request #9617 from TonyBlit/sbas_none
SBAS_NONE, gps_sbas_integrity
2020-03-24 08:43:39 +13:00
Tony Cabello
5932b01e6b SBAS_NONE, gps_sbas_integrity 2020-03-22 18:54:03 +01:00
ctzsnooze
d63ba914c6 motor output scale
First draft

Change method to percentage compensation

fast sag filter with fast battery updates

Renaming, moving factors to init where possible

Names changed, display update frequency reverted to 50hz as it was

50Hz ESC Voltage sampling, battery sag lowpass for PID compensation.

increment PG_PID_PROFILE, element added to end of batteryConfig_t

all HZ_TO_INTERVALs set back to 200 to match battery task frequency of 200hz.

Add a flag to control vbat comp

Flag vbat_sag_comp_enabled allows battery compensation to be enabled or
disabled from the CLI. When disabled the battery voltage task is run at
50Hz and the battery compensation code is not run. When enabled the
voltage task is run at 200Hz and the compensation code runs. Constants
for the fast and slow rates are added to tasks.h. The default value for
vbat_sag_compensation is changed to 100 as we no longer need to use it
to disable the feature.

Fixed variable task frequency setting.

Added config validation to disable sag compensation unless ADC is used as the voltage data source.

Added conditionals, fixed naming.

Fixed build.
2020-03-22 17:15:08 +13:00
Michael Keller
792090e37f
Merge branch 'master' into redpine_rebase2 2020-03-18 23:46:02 +13:00
brycedjohnson
97c8952921 Redpine fast and slow protocols for cc2500 2020-03-17 19:17:21 -06:00
David Boone
93635f62aa Efficiency OSD element in mAh/km or mAh/mi 2020-03-17 15:51:46 -07:00
Miguel Angel Mulero Martinez
40cb515c00 Fix OSD dbm element size 2020-03-16 10:26:07 +01:00
mikeller
e9cb979cd8 Revert #9215: Vendor specific displayport initialisation. 2020-03-15 13:42:56 +13:00
mikeller
f3ec114a2a Added custom (switch) box naming. 2020-03-12 07:04:24 +13:00
Michael Keller
55a0c0129a
Merge pull request #9560 from etracer65/add_msp_rc_smoothing_auto_factor_validation
Add validation to MSP for the rc_smoothing_auto_factor setting
2020-03-09 13:23:38 +13:00
Michael Keller
90228a5e30
Merge pull request #9550 from mikeller/add_crsf_rx_snr_display
Added option to display RX SNR dB for CRSF instead of RSSI dBm.
2020-03-09 13:23:07 +13:00
Bruce Luckcuck
447cbac988 Add support for Bosch BMI270 gyro/accelerometer sensor 2020-03-08 18:56:50 -04:00
Bruce Luckcuck
15ec707a0b Add validation to MSP for the rc_smoothing_auto_factor setting
This is a workaround for a validation bug in configurator 10.6 where the user can enter an invalid value, immediately click "Save" and that value will be stored before the value is range-checked. Added validation to the MSP message processing to constrain the range to prevent a dangerous result.
2020-03-07 18:48:23 -05:00
mikeller
d0cf12a52b Added option to display RX SNR dB for CRSF instead of RSSI dBm. 2020-03-07 17:29:21 +13:00
Nicola De Pasquale
fbcdeb5be6 quick rates 2020-03-04 13:45:56 +01:00
ctzsnooze
b61d641bfc Set actual rates in deg/s, independently of each other
Each parameter is independent.
Set actual centre sensitivity and actual max rates.
For:
Centre sensitivity of 200 = rcRate of 1.0; enter as 2.0 in Config, 200 CLI
Max Rate of 800, enter sRate as 0.8 in Config, 80 in CLI
Expo enter as usual, 0.5 approximates no expo, 0 is flatter, 1 is about the same as 0.5 expo usually, but won't change centre sensitivity.
2020-02-22 11:31:15 +11:00
Michael Keller
6876b89c8e
Merge pull request #9487 from Asizon/ffInterpolateToCms
Added FF Interpolate options to CMS
2020-02-19 00:01:31 +13:00
jflyper
ff16686893 White space tidy 2020-02-17 23:54:57 +13:00
Michael Keller
d25c852098
Merge pull request #9464 from jflyper/bfdev-g4-mco
[G4] MCO support
2020-02-17 08:12:05 +13:00
Michael Keller
c984107291
Merge pull request #9482 from ctzsnooze/Revert-iTerm-Relax
Restore proper behaviour of iterm_relax_cutoff in setpoint mode
2020-02-17 08:11:26 +13:00
Michael Keller
b96649ef76
Merge pull request #9481 from phobos-/nfe-racemode
NFE Race Mode
2020-02-17 08:08:59 +13:00
Asizon
d51b150585 FF Interpolate to CMS 2020-02-16 14:57:05 +01:00
phobos-
8ce268d5f1 Implemented NFE Race Mode 2020-02-16 13:46:08 +01:00
jflyper
1db460f164 [G4] MCO support 2020-02-16 15:21:49 +09:00
ctzsnooze
2bbe525853 Fix iterm_relax at low cutoff values
Doesn't adjust threshold upwards when cutoff is reduced below default.
This reverts to original setpoint code behaviour.

Probably better to go back entirely to the original code.

Add changed max on iterm_relax_cutoff to CMS

Restore ITERM_RELAX_SETPOINT_THRESHOLD to float to fix Travis error
2020-02-16 10:17:06 +13:00
Michael Keller
3176368bc8
Merge pull request #9454 from rvdveen/low-capacity-warning
Add 'low capacity' warning shown when exceeding configured cap_alarm value
2020-02-15 13:05:43 +13:00
Roy van der Veen
89fad8dc7f Add 'low capacity' warning shown when exceeding configured cap_alarm value 2020-02-14 09:52:29 +01:00
Bruce Luckcuck
653fe308cb Add "auto" mode to yaw spin recovery
Changes yaw spin recovery from a simple on/off to on/off/auto. In auto mode the triggering threshold is automatically calculated based on the user's current max yaw rate.

So `yaw_spin_recovery` has the following options:
`OFF`: Feature is disabled
`ON`: Feature is enabled with a manually configured `yaw_spin_threshold`
`AUTO`: Feature is enabled and the trigger threshold is automatically calculated.

The auto calculation of the trigger threshold is:
```
MAX(yawRate * 0.25, 200)
```
The 25% of the user's rate is to provide a buffer for yaw overshoots during normal flight. Overall the threshold is constrained between 500 - 1950 to match the manual selection.

The default is changed from `ON` to `AUTO` so that users will get protection without needing to configure the threshold manually.

In `AUTO` mode the threshold is calculated dynamically so rate changes in flight (like rateprofile change) will set a new trigger threshold.
2020-02-05 23:55:31 -05:00
Bruce Luckcuck
f584780944 Gyro native rate sampling, filtering, and scheduler restructuring 2020-02-04 18:19:35 -05:00
Bruce Luckcuck
aa05d3ebc7 Rearrange parameter ordering so dynamic notch min/max are together
Previously settings were separated and out of order.
2020-02-01 13:10:47 -05:00
ctzsnooze
7b2e075b3a Simplify and improve Dynamic Notch
Remove prevCenterFreq[axis]
Simpler peak detection:
- cubes, not squares
- only look one bin either side
More accurate frequency determination
Updated annotations and explanations
Whitespace fixes
fftStartBin can't be less than 1
Dynamic PT1 smoothing
biquad filter on centerFreq removed
centerFreq's now floats

Limits and better min max logic

constrain within nyquist limits

If gyro rate was 2khz and dynamic notch range max, this will keep the notch max to 960hz.

Simple fixes

Get lowest min above and below the peak

First go at setting DN range by a maxHz

increment the PG version in gyro.c

MSP correct size

Resolve comments from Mike and Rav.

Fis msp, deprecating range
2020-01-26 13:05:24 +13:00
jflyper
104990c507 Add device local blinking support 2020-01-21 11:14:22 +09:00
Tony Cabello
924058c371 renamed AUTO to DYNAMIC 2020-01-19 15:50:24 +01:00
Tony Cabello
c19dc26055 Ublox mode selectable with an option 2020-01-19 12:23:54 +01:00
Michael Keller
39800e0b13
Merge pull request #9365 from IllusionFpv/dterm_lpf_configurable_curve
Dterm dynamic lowpass filter configurable curve
2020-01-17 02:23:57 +13:00
Michael Keller
54c8477b4d
Merge pull request #9359 from mikeller/add_osd_to_status
Added OSD status to CLI 'status' output.
2020-01-16 12:54:11 +13:00
Michael Keller
25d2904a89
Merge pull request #9293 from Tdogb/crashflip_power
Crashflip motor power control
2020-01-16 12:12:08 +13:00
Michael Keller
099e0a6064 Added OSD status to CLI 'status' output. 2020-01-15 23:32:38 +13:00
Nicola De Pasquale
3ae5830eb0 added dterm lpf configurable curve 2020-01-14 20:24:56 +01:00
Matylitski Yury
e82dd4a616 fixed CLI segfault when no USE_OSD is set 2020-01-12 22:02:44 +03:00
Dominic Clifton
3b3ead25f0 ICM42605 - Initial sensor support. 2019-12-26 20:09:47 +01:00
Tdogb
3243aafdb9 crashflip expo 2019-12-17 12:57:47 -05:00
Tdogb
73a280cc85 initial commit of crashflip motor power percentage control 2019-12-16 17:24:55 -05:00
Bruce Luckcuck
afeb88850f Move OSD elements into their own parameter group
Separates the OSD elements position/visible/profile flags from the `osdConfig` PG and moves them to a new `osdElementConfig` PG. Allows new elements to be added without having to constantly update the PG version for `osdConfig`.
2019-12-09 19:13:08 -05:00