1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00
Commit graph

12074 commits

Author SHA1 Message Date
ctzsnooze
36d71d07e7 Dynamic Notch Filter Update
Improves performance of the dynamic notch filter, increasing peak accuracy over a wider band of frequencies, and generally using a narrower, higher notch.
Details:
- FFT now operates on gyro data *after* gyro notches and lowpasses
- FFT bandpass Q changed from 0.707 to 0.05, to 'open up' the FFT to a greater range of incoming frequencies
- FFT centre output now ranges from about 130 to 666Hz.
- ignore the lowest couple of FFT bins going into centre frequency calculation
- analyse FFT bins from low to high, keep ignoring bins until a bin is found that exceeds its previous bin by a factor of 2; then start examining bins from the bin before that (stops the FFT from being biased low, or going to the lowest value if there is no notch at all).
- if no bin exceeds previous by more than 2 times, ie no obvious peak, smoothly go to maximum allowed notch frequency to avoid delay (might be better to bypass filter altogether?)
- dominant bin emphasised by cubing bin height before calculating mean
- maximum cutoff frequency is half the highest allowable centre frequency
- default notch width is +/-25% of centre, narrower than before most of the time
- code tidied up
- thanks to rav, Flint, UAV Tech, icr4sh, diehertz and everyone else who helped with this.
2018-07-21 22:53:07 +10:00
mikeller
4439852984 Fixed test. 2018-07-22 00:24:48 +12:00
Michael Keller
039c74c896
Merge pull request #6398 from mikeller/remove_unused_modes
Remove unused modes.
2018-07-21 23:52:36 +12:00
ctzsnooze
94c7109a4c Changes, thanks mikeller and jirif 2018-07-21 23:49:41 +12:00
ctzsnooze
4c917efa50 Smooth anti gravity 2018-07-21 23:49:41 +12:00
Steffen Windoffer
1924700e28 update gcc 2018-07-21 11:46:10 +02:00
Michael Keller
60a59334a5
Merge pull request #6407 from mikeller/fix_betaflightf3_overflow
Fixed flash overflow on BETAFLIGHTF3.
2018-07-21 19:51:19 +12:00
mikeller
bb2b1f58aa Added release freeze announcement for 3.5 to pull request template,
removed F1 end of life message.
2018-07-21 18:46:00 +12:00
mikeller
4354330854 Fixed flash overflow on BETAFLIGHTF3. 2018-07-21 18:16:14 +12:00
s0up
0fd24e23a4 set maximum min dth value as 1km vs 32km, no reason to be so high 2018-07-20 09:03:51 -07:00
s0up
57d3e1e296 fix 8 bit -> 16 bit unsigned int 2018-07-20 08:53:47 -07:00
s0up
0e9108f5ad fix rogue space 2018-07-19 23:31:00 -07:00
s0up
d7909df3ba add min rescue distance configuration parameter 2018-07-19 23:29:48 -07:00
Michael Keller
f2468fb894
Merge pull request #6392 from s0up/rescue-disarm-fix
Fix rescue early disarm when sanity checks are on
2018-07-19 20:19:39 +12:00
Michael Keller
3a3c835959
Merge pull request #6397 from mikeller/disable_smartport_extra_sensors
Disabled extra (ESC) sensors in SmartPort by default.
2018-07-19 13:51:50 +12:00
Michael Keller
385107fc8b
Merge pull request #6395 from mikeller/update_crsf_format
Updated CRSF frame format to use the sync byte instead of the frame address.
2018-07-19 13:18:12 +12:00
mikeller
017bdca593 Remove unused modes. 2018-07-19 00:12:11 +12:00
Michael Keller
7d56929ffa
Merge pull request #6318 from fujin/remove-bme-for-baro-gpshold-gpshome
Remove MSP BOX BME entries for baro, gps home, gps hold
2018-07-19 00:11:05 +12:00
mikeller
35b93f2c18 Fixed tests. 2018-07-19 00:09:55 +12:00
mikeller
1286e400d8 Disabled extra (ESC) sensors in SmartPort by default. 2018-07-18 23:31:16 +12:00
leocb
4b415d54cb code formating 2018-07-18 07:56:24 -03:00
mikeller
653182c2ef Updated CRSF frame format to use the sync byte instead of the frame address. 2018-07-18 21:44:47 +12:00
Michael Keller
6784ed9335
Merge pull request #6394 from bforbort/ag3x_dshot_beacon
Add DShot Beacon Support to AG3X Target
2018-07-18 21:10:37 +12:00
s0up
b69e97fb23 fix the logic to be a little bit more user friendly 2018-07-17 15:14:21 -07:00
s0up
99f223c2fd enable sanity checks by default 2018-07-17 14:21:04 -07:00
Michael Keller
460b72f81f
Merge pull request #6364 from mikeller/add_usb_hid_msp
Added MSP for USB HID configuration.
2018-07-18 08:46:42 +12:00
s0up
4b5972629e fix disarm logic 2018-07-17 11:55:42 -07:00
leocb
05e42db90b Added Max G-force OSD stat 2018-07-17 11:44:01 -03:00
mikeller
862c14af19 Fixed botched rebase. 2018-07-18 02:30:33 +12:00
Michael Keller
ee0113ffff
Merge pull request #6361 from mikeller/adding_profile_msp
Adding MSP for new profile settings introduced in 3.4.
2018-07-18 02:19:25 +12:00
mikeller
80a29b9ad5 Removed unneeded parameters. 2018-07-18 01:14:03 +12:00
mikeller
2735a626e0 Changes from review. 2018-07-18 01:10:47 +12:00
mikeller
b4b88a5972 Adding MSP for new profile settings introduced in 3.4. 2018-07-18 01:10:47 +12:00
mikeller
76a51e989e Added MSP for USB HID configuration. 2018-07-18 01:06:01 +12:00
Michael Keller
46fec897ed
Merge pull request #6378 from robertlacroix/sticky-paralyze
Generalize sticky mode code
2018-07-18 00:48:54 +12:00
Michael Keller
3fc6906fa3
Merge pull request #6363 from mikeller/add_rc_smoothing_msp
Added RC smoothing parameters to MSP.
2018-07-18 00:35:30 +12:00
Robert Lacroix
a81576b2ae Generalize sticky mode code
Instead of hard coding paralyze this makes the code extensible to possible
future sticky modes

_Legal disclaimer: I am making my contributions/submissions to this project solely in my personal capacity and am not conveying any rights to any intellectual property of any third parties._
2018-07-17 12:15:50 +02:00
Blaine
2a1269aeb8 Initial upload 2018-07-17 01:25:37 -07:00
Michael Keller
92ddf3185f
Merge pull request #6098 from mikeller/frsky_fport_dynamic_telemetry_test
Changed FPort telemetry frame rate to support being driven by the RX.
2018-07-17 19:35:54 +12:00
Michael Keller
362d42fcaf
Merge pull request #6365 from mikeller/add_msc_msp
Added MSP for reboot to MSC.
2018-07-17 19:29:25 +12:00
Michael Keller
d816369352
Merge pull request #6377 from mikeller/fix_icm20601_driver
Fixed MPU6500 driver for ICM20601.
2018-07-17 18:43:08 +12:00
Michael Keller
1e9dfe355e
Merge pull request #6381 from robertlacroix/vtx-unittest
Add basic VTX unit test
2018-07-17 18:42:28 +12:00
Michael Keller
f487cea809
Merge pull request #6382 from mikeller/fix_smartport_delay
Removed delay from SmartPort frame processing.
2018-07-17 18:42:12 +12:00
Michael Keller
beeb423173
Merge pull request #6385 from AndersHoglund/build-target-groups
Build target groups populated dynamically.
2018-07-17 18:37:16 +12:00
Michael Keller
5b4ba6510b
Merge pull request #6375 from DieHertz/bfdev-diehertz-unify-gyro-filtering
Unified gyro filtering debug and non-debug
2018-07-17 18:35:22 +12:00
mikeller
aff5653981 Changes for an improved UX. 2018-07-17 18:34:06 +12:00
mikeller
df55fc99ec Added MSP for reboot to MSC. 2018-07-17 18:34:06 +12:00
Michael Keller
e2cf7fc238
Merge pull request #6233 from leocb/add-gforce-osd
Added G-Force to the OSD
2018-07-17 18:28:58 +12:00
Anders Hoglund
0185018973 Build target groups populated dynamically. 2018-07-16 18:10:03 +02:00
mikeller
334117a4f0 Changes from review. 2018-07-17 01:36:36 +12:00