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

430 commits

Author SHA1 Message Date
Bruce Luckcuck
a76d22bf60 Add CLI validation of parameters and print a corrupted value message
Validates the index for lookup values to prevent referencing random memory.  Also validates the range of numeric parameters.

diff output will clearly show any corrupted parameters.
2018-09-05 07:36:42 -04:00
Michael Keller
d9ac128b0d
Merge pull request #6686 from ctzsnooze/master-fix-dividebyzero-iterm
to prevent divide by zero possibility in pid.c
2018-09-03 23:06:32 +12:00
ctzsnooze
ec3ed476fa to prevent divide by zero possibility in pid.c 2018-09-03 12:43:18 +10:00
Michael Keller
a8b92ea920
Merge pull request #6662 from awolf78/master
GPS over MSP related fixes
2018-09-03 10:12:24 +12:00
Alex Wolf
7115ab4047 GPS over MSP related fixes 2018-08-31 22:31:56 -04:00
Bruce Luckcuck
f1488220f3 Rename level mode parameters to match their function
4.0 seems like a good time to rename these confusing legacy parameters to something that matches their function.

p_level -> angle_level_strength
i_level -> horizon_level_strength
d_level -> horizon_transition
2018-08-31 16:04:26 -04:00
timman2er
bc596e1f8b fixup Mikeller and levinap 2018-08-29 02:38:41 +02:00
timman2er
7b196b2ed7 ledvinap review (without editing battery.c if statements) 2018-08-27 18:30:03 +02:00
timman2er
3fea35079f add way to manually override battery cell count 2018-08-27 17:01:58 +02:00
timman2er
fc49f738c9 flip arrow turtle mode 2018-08-27 11:16:03 +02:00
mikeller
0bce8549ee Renamed 'fc/fc_' files to remove the double 'fc'. 2018-08-26 14:07:06 +12:00
Michael Keller
fc60cc27e9
Merge pull request #6623 from mikeller/remove_osd_slave
Removed OSD_SLAVE defines.
2018-08-25 23:37:30 +12:00
Michael Keller
83fa3f31c6
Merge pull request #6531 from awolf78/GPS_FROM_MSP
GPS support via MSP
2018-08-24 08:38:17 +12:00
Michael Keller
c3ebd2d46e
Merge pull request #4682 from fiam/agh_msp_set_rtc
Change MSP_SET_RTC to accept seconds and milliseconds
2018-08-23 23:06:54 +12:00
mikeller
6a77c5f576 Removed OSD_SLAVE defines. 2018-08-23 23:03:22 +12:00
Michael Keller
a02e1dd384
Merge pull request #6610 from jflyper/bfdev-osd-warn-fail-safe
Add osd warning for fail safe state.
2018-08-23 22:36:48 +12:00
Michael Keller
c12981f732
Merge pull request #6617 from etracer65/gyro_lpf_updates
Disable DLPF EXPERIMENTAL mode for MPU60x0; remove experimental support from F3
2018-08-23 22:25:48 +12:00
Bruce Luckcuck
0e8e5b3c16 Disable DLPF EXPERIMENTAL mode for MPU60x0; remove experimental support from F3
Officially Invensense lists the experimentl mode as "unsupported" on the MPU60x0 series. Previously it was added to allow testing.  It's been determined that it's not a viable gyro filtering operational mode.

Also change "experimental" DLPF support available for F4 or higher. Few F3 boards have gyros that can use this mode anyway.  Saves 200 bytes.
2018-08-22 09:50:10 -04:00
Michael Keller
4b965a572a
Merge pull request #6254 from mikeller/remove_feature_call
Removed calls to (latching) 'feature()'.
2018-08-23 00:00:16 +12:00
jflyper
82268b7a4e Add osd warning for fail safe state. 2018-08-22 20:22:40 +09:00
Michael Keller
53151817e1
Merge pull request #6430 from mikeller/remove_duplicate_build_bug_on
Removed 'BUILD_BUG_ON'.
2018-08-22 18:49:45 +12:00
mikeller
6de1c32d9d Added shadow copies for CLI and MSP. 2018-08-21 00:36:47 +12:00
mikeller
c99629bbf1 Removed calls to (latching) 'feature()'. 2018-08-21 00:35:55 +12:00
mikeller
b4db764b46 VTX improvements from iNav. 2018-08-20 23:26:57 +12:00
Michael Keller
43e6ea31da
Merge pull request #6517 from ctzsnooze/DynFiltV5
Dynamic Filter Update
2018-08-20 23:23:50 +12:00
ctzsnooze
759007214b remove PT1
warning:
In file included from ./src/main/sensors/gyro.c:1022:0:
./src/main/sensors/gyro_filter_impl.h: In function 'filterGyro':
./src/main/sensors/gyro_filter_impl.h:18:15: warning: variable 'gyroDataForAnalysis' set but not used
2018-08-20 12:15:05 +10:00
mikeller
70ac9423c7 Unified BUILD_BUG_ON and STATIC_ASSERT into STATIC_ASSERT. 2018-08-20 10:50:06 +12:00
ctzsnooze
14c90bf10b user configurable sample rate, true peak detection
1. User can set sampling rate to suit expected range of frequencies:
- HIGH suits 4" or smaller and 6S 5"
- MEDIUM suits classic 5" 4S
- LOW is for 6" or greater
Limits automatically scaled:
HIGH : 133/166 to 1000Hz, MEDIUM : 89/111 to 666Hz, LOW : 67/83 to 500Hz
2. Bandpass entirely eliminated, not needed.
3. True peak detection method, favouring first peak to exceed 80% of maximum bin height; ignore or threshold values not required.
2018-08-20 00:33:11 +10:00
Andrey Mironov
3f001295f7 Simplified FFT location 2018-08-20 00:33:11 +10:00
ctzsnooze
1e960c95eb Dynamic Filter Update
Improves on earlier 3.5RC1 dynamic filter with:
- better FFT tracking performance overall, even with a narrower default notch width
- can reach 850Hz for high kV 2.5-3" and 6S quads
- works better with 32k gyros
- can be applied pre- (location 1) and post- (location 2) static filters. Pre-static filter location works best, but post-static may work well in 32k modes or with PT1 option
- option to use a PT1 filter rather than the classical notch filter, perhaps useful for quads with a lot of noise above their peak.
- ability to totally bypass the pre-FFT bandpass filter, by setting Q=0, maximising the range of responsiveness
- "ignore" value, absolute FFT bin amplitude below which the bin will be excluded from consideration. May be tweaked to optimise peak detection; primarily for advanced tuners. If too high, only the very peaks will be included, if too low, noise may clutter peak detection.
- "threshold" value for peak detection, which, when divided by 10, is the multiple by which one bin must exceed the previous one for peak detection to commence. If too low, FFT detection becomes more random, if too high, no peaks are detected.
2018-08-20 00:33:10 +10:00
Kiripolszky Károly
c0e2ca3546 initial implementation of log status OSD element 2018-08-19 10:21:19 +02:00
mikeller
63b6298c78 Fixed GPS rescue MSP. 2018-08-19 00:13:00 +12:00
AirBreak69
0e52e21524 GPS altitude: cleanup all occurancies to assume source is in cm per lsb resolution
Harmonized (and partly corrected) all occurancies of gpsSol.llh.alt and getEstimatedAltitude() to handle altiude sourced in cm resolution.
This was introduced by GSP_RESCUE/RTH.
Introduced a naming convention that include the unit into the variable/function names:
gpsSol.llh.alt -> gpsSol.llh.alt_cm
getEstimatedAltitude() -> getEstimatedAltitude_cm()
2018-08-19 00:11:30 +12:00
mikeller
a4a701829c Fixed GPS rescue MSP. 2018-08-18 14:09:41 +12:00
Michael Keller
5a2501f3e5
Merge pull request #5955 from David-VG/master
MSP for GPS Rescue
2018-08-18 12:56:12 +12:00
Michael Keller
5f5601e31d
Merge pull request #6575 from mikeller/increment_msp_to_1_41
Incremented MSP version to 1.41 for 4.0.
2018-08-18 09:42:17 +12:00
Michael Keller
701bcd24da
Merge pull request #6522 from awolf78/LUA_VTX_support
VTX LUA support for external VTX devices
2018-08-17 00:35:39 +12:00
Michael Keller
7f870d0252
Merge pull request #6509 from awolf78/master
Added MSP_MULTIPLE_MSP
2018-08-17 00:32:32 +12:00
Michael Keller
18cc9ef15a
Merge pull request #6404 from s0up/rescue_config_change
[GPS Rescue] - Allow minimum distance to home to be configurable.
2018-08-17 00:22:52 +12:00
Michael Keller
41ce2c6327
Merge pull request #6391 from leocb/osd-max-g-force-stat
Added Max G-force OSD stat
2018-08-17 00:22:11 +12:00
Michael Keller
69dc62aff4
Merge pull request #6133 from jevring/mah-used-in-heading-field-mavlink
Enable using the 'heading' field in MAVlink to display mAh used
2018-08-16 23:45:10 +12:00
mikeller
d7bed772d5 Incremented MSP version to 1.41 for 4.0. 2018-08-16 23:32:04 +12:00
Alex Wolf
031ea3ea94 Merge branch 'master' of https://github.com/betaflight/betaflight 2018-08-13 18:27:44 -04:00
Michael Keller
91798f89b4
Merge pull request #6529 from mikeller/remove_osd_slave
Removed SPRACINGF3OSD support.
2018-08-14 06:48:14 +12:00
mikeller
8d03431699 Fixed errorneous 'resource' lines in 'diff' when 'USE_PWM' is disabled. 2018-08-12 00:14:34 +12:00
Alex Wolf
92d3b7ca6f GPS support via MSP 2018-08-08 09:49:36 -04:00
Michael Keller
283e55e45d Removed SPRACINGF3OSD support. 2018-08-08 08:32:20 +12:00
Alex Wolf
7b6555f001 Add MSP_MULTIPLE_MSP 2018-08-07 10:47:32 -04:00
Markus Jevring
131d46c850 Enable using the 'heading' field in MAVlink to display mAh used 2018-08-06 20:26:41 +02:00
Alex Wolf
096457fcd4 VTX LUA support for external VTX devices 2018-08-05 21:40:49 -04:00