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

911 commits

Author SHA1 Message Date
Michael Keller
adc20088b5
Merge pull request #10662 from klutvott123/dynamic-notch-update-fix
Allow re-initialising dynamic notch
2021-05-18 00:53:35 +12:00
Michael Keller
dfcd11bd69
Merge pull request #10712 from mikeller/cleanup_matrix_rotation
Cleaned up matrix rotation.
2021-05-18 00:46:04 +12:00
Dominic Clifton
86f5ccdb80 ICM42605 - Fix missing use of USE_SPI_GYRO.
ICM42605 - Fix missing call to mpuDetect.

ICM42605 - Disable un-needed debug code by default.

ICM42605 - Delete unneeded reads of ICM42605_RA_GYRO_CONFIG0 and
ICM42605_RA_ACCEL_CONFIG0.

ICM42605 - rename the khzToSupportedODRMap and make it static.
2021-04-28 01:58:00 +12:00
Hans Christian Olaussen
242d5df827 tabs and spaces 2021-04-26 19:11:47 +02:00
mikeller
55cf26ebbc Cleaned up matrix rotation. 2021-04-26 23:10:00 +12:00
Michael Keller
67535941d8
Merge pull request #10697 from TonyBlit/battery_doc
Small doc enhancements
2021-04-26 13:42:19 +12:00
Tony Cabello Miguel
06127f36fc fix comments 2021-04-16 16:09:54 +02:00
Tony Cabello Miguel
518bc1b165 Small doc enhancements 2021-04-16 07:49:25 +02:00
Hans Christian Olaussen
472b1c3dd0 Allow re-initialising dynamic notch 2021-04-02 22:20:40 +02:00
Michael Keller
2278ffd1d4
Merge pull request #10609 from SteveCEvans/rx_state 2021-03-28 16:41:11 +13:00
Steve Evans
25fcacf4c5 Split rx processing into three states to eliminate cycle time jitter
Allow tasks with state machines to control which state determines task duration

Fix unit tests
2021-03-27 23:28:41 +00:00
KarateBrot
d02af7334c Added tracking of multiple dynamic notches per axis and replaced FFT with SDFT 2021-03-24 17:09:28 +01:00
Steve Evans
80e9e8eddd Use non-blocking access to dps310 gyro 2021-03-10 02:35:50 +00:00
Bruce Luckcuck
b974408c6a Fix vbat_hysteresis docs and potential calculation underflow 2021-02-17 11:56:14 -05:00
Michael Keller
5506a0eb77
Merge pull request #10490 from etracer65/msp_serial_push_fix
Fix mspSerialPush() selected serial port logic
2021-02-14 15:31:31 +13:00
Michael Keller
750d1c4da2
Merge pull request #10507 from IllusionFpv/fix/default-dyn-gyro-lpf-curve-expo
Revert default dyn_lpf_expo_curve value for gyro
2021-02-08 16:38:24 +13:00
Nicola De Pasquale
698974a085 revert default dyn_lpf_expo_curve value for gyro 2021-01-24 15:40:56 +01:00
Bruce Luckcuck
c19fade76a Fix mspSerialPush() selected serial port logic
Logic error would cause the MSP data to be written to every port that had MSP enabled if the selected port was -1 (`SERIAL_PORT_NONE`). Since the (correct) default for `displayport_msp_serial` is -1, this was causing MSP displayPort traffic to be "spammed" to every UART with MSP enabled. Since MSP displayPort is the fallback when no other OSD device is detected (in "AUTO" mode) this could cause large amounts of unnecessary MSP traffic - for example in cases with flight controllers with no MAX7456 and using the DJI air unit connected via MSP. This "might" be related to earlier reports of the DJI OSD no longer working with softserial (even though that's not really a recommended configuration) because of the extra serial traffic.

This was not so much a "bug" but instead a shortsighted design. The only other thing using `mspSerialPush()` is the MSP-based current sensor. In that case the logic does in fact want to "spam" all the MSP ports with the current sensor request. So it was using the `SERIAL_PORT_NONE` identifier to mean "every port". But this conflicts with MSP displayPort logic which really needs a "no ports" identifier. So this PR adds a `SERIAL_PORT_ALL` identifier to explicitly differentiat "all" from "none" and this is used for the current sensor.
2021-01-17 13:31:17 -05:00
Michael Keller
8be1b4bdb4 Fixed incorrect parameter value for barometer sample count. 2021-01-17 00:38:05 +13:00
Michael Keller
35de1c8229
Merge pull request #10473 from etracer65/battery_min_max_config_validation
Validate that the battery min cell voltage is less than the max cell voltage
2021-01-16 10:16:40 +08:00
Bruce Luckcuck
fbf1ef7bbc Validate that the battery min cell voltage is less than the max cell voltage
Resets to defaults if not.

If the min/max were set to the same value then this will lead to div-by-zero errors.

If the min was set to a greater value then this would lead to negative values and underflow in the battery remaining calculations. This would affect the OSD, dashboard, various telemetries, LED strip, and the Configurator.
2021-01-11 11:34:46 -05:00
Bruce Luckcuck
175e6200b4 Fix possible div-by-zero in current meter
Prevents div-by-zero if current meter scale is set to 0. Can't prevent with parameter ranges because scale ranges from -16000 to 16000.
2021-01-10 10:43:35 -05:00
Michael Keller
243be1d216
Merge pull request #9119 from IvoFPV/add-tuning-sliders 2021-01-06 02:19:29 +08:00
Michael Keller
58b4cb916c Added missing simplified gyro tuning defaults. 2020-12-26 14:27:06 +01:00
Michael Keller
7fc3c7cea6 Renamed 'tuning sliders' to 'simplified tuning'. 2020-12-26 14:26:56 +01:00
IvoFPV
cff19dc113 Implement tuning sliders, add to CMS, MSP 2020-12-26 14:26:50 +01:00
Bruce Luckcuck
01fb3940e7 Fix multiple div-by-zero related to battery cell count
Battery cell count will be 0 if the battery is not detected or the voltage meter is not configured. This exposed multiple div-by-zero risks.
2020-12-25 14:17:00 -05:00
Bruce Luckcuck
358fe5ce1c Split acceleration code into init and runtime to save flash space 2020-10-15 15:58:47 -04:00
Nicola De Pasquale
3714903122 enabled gyro dlpf by default 2020-10-03 22:10:36 +02:00
krygacz
58ae3fdfd5 Support MPU925x internal magnetometer over I2C 2020-09-14 23:41:45 +02:00
Michael Keller
2493d2ef2c
Merge pull request #10129 from jflyper/bfdev-dps310-fix-default
Fix default baro handling and address for DPS310
2020-08-29 16:09:42 +12:00
jflyper
eb12af4cac Fix default baro handling and address for DPS310 2020-08-23 16:56:00 +09:00
Sam Lane
4c99ad743d Rename FAST_RAM to FAST_DATA 2020-08-23 08:49:26 +01:00
Nicola De Pasquale
c1ce6f30f8 removed unnecessary static declarations 2020-08-16 11:12:55 +02:00
Nicola De Pasquale
d0fe84528a using same curve of dyn dterm lpf 2020-08-08 15:36:28 +02:00
Nicola De Pasquale
988024ee4e updated dynThrottle curve 2020-08-07 15:28:36 +02:00
Michael Keller
41fa8754bc
Merge pull request #9633 from mikeller/remove_vbat_pid_compensation
Remove vbat pid compensation
2020-07-06 13:41:27 +12:00
Michael Keller
36d372d237
Merge pull request #9957 from jflyper/bfdev-baro-dps310 2020-06-30 01:02:27 +12:00
Michael Keller
c1dc66b452
Merge pull request #9936 from mikeller/cleanup_rangefinder_support
Cleaned up rangefinder code, removed unsupported driver stubs.
2020-06-29 23:16:20 +12:00
jflyper
a686ab45fa Barometer Infineon DPS310 support 2020-06-29 00:09:56 +09:00
jflyper
4d11d6d630 Fix baroCalculateAltitude 2020-06-28 16:40:23 +09:00
Bruce Luckcuck
99a9543968 Add support for LSM6DSO gyro/acc
Also supports the LSM6DSOX variant which has the additional machine learning core (not used by Betaflight).
2020-06-21 16:22:29 -04:00
mikeller
b6689edc26 Removed VBat PID compensation. 2020-06-22 01:12:47 +12:00
mikeller
9d4bab9396 Cleaned up rangefinder code, removed unsupported driver stubs. 2020-06-22 01:03:25 +12:00
Michael Keller
12f02a1f19
Merge pull request #9753 from mikeller/remove_mag_declination
Removed the unused setting 'mag_declination'.
2020-06-22 00:20:33 +12:00
mikeller
4923057eb3 Fixed rangefinder reading. 2020-06-01 15:19:44 +12:00
mikeller
b7ee04127d Removed the unused setting 'mag_declination'. 2020-05-02 23:30:01 +12:00
mikeller
489156602f Fixed unnecessarily long startup time due to gyro detection. 2020-04-07 22:20:04 +12:00
mikeller
afe704bbd9 Fixes from review. 2020-03-26 01:54:42 +13:00
mikeller
b020917c4b Prevent 0 in 'vbat_display_lpf_period' to avoid division by zero. 2020-03-25 00:41:50 +13:00