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

16213 commits

Author SHA1 Message Date
Michael Keller
1c3346bae1
Merge pull request #10106 from mikeller/fix_motor_output_limit_low
Fixed motorOutputLimitLow in blackbox and OSD.
2020-09-02 01:22:28 +12:00
Michael Keller
808fbb792f
Merge pull request #10103 from skywinder/patch-2 2020-09-01 00:28:15 +12:00
mikeller
7836bc220c Fixed motorOutputLimitLow in blackbox and OSD. 2020-08-31 22:00:23 +12:00
Michael Keller
2bec8fa33d
Merge pull request #10146 from haslinghuis/fix_#10122
Fix debug names not unique with only 12 chars
2020-08-29 16:12:46 +12: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
Michael Keller
c05cbd3792
Merge pull request #10095 from dkustec/disable_stick_commands_when_HID_is_in_use 2020-08-29 16:07:20 +12:00
haslinghuis
b5e3164d4a Fix debug names not unique with only 12 chars 2020-08-27 01:19:22 +02:00
Michael Keller
8e361c574b
Merge pull request #10138 from jflyper/bfdev-g4-camera-control
[G4] Camera control support
2020-08-27 09:11:28 +12:00
Michael Keller
a7b82a109d
Merge pull request #10137 from jflyper/bfdev-g4-update-i2c-pindef
[G4] I2C Add I2C pins overloaded with SWD pins
2020-08-27 09:10:37 +12:00
Michael Keller
d0cd96dc5b
Merge pull request #10135 from mikeller/fix_documentation_check_in_ci
Fixed the check if only documentation was changed in Travis.
2020-08-26 20:21:15 +12:00
Michael Keller
85c2b7c7fd
Merge pull request #10134 from mikeller/fix_broken_tests
Fixed broken tests after #10080.
2020-08-26 19:09:38 +12:00
jflyper
81846f1486 [G4] Camera control support 2020-08-25 02:25:56 +09:00
jflyper
be3b321d7a [G4] Add I2C pins overloaded with SWD pins 2020-08-25 02:21:54 +09:00
Petr Korolev
99f7ca2926
Update PID tuning.md
fixes according to review
2020-08-24 22:29:31 +07:00
dkustec
60cc80825a Disable stick commands when HID is active and USB is connected
Moved to shared code and cms.c refactoring

Added missing line endings and comments

Passing tests - defines added

Added missing definition

Added check for USE_USB_CDC_HID in cmsUpdate

Code refactoring and condition change

Remove unnecessary include

Disable stick commands when HID is active and USB is connected

cdcDeviceIsMayBeActive refactored

Disable stick commands when HID is active and USB is connected
2020-08-24 15:38:33 +02:00
mikeller
82a2f92264 Fixed the check if only documentation was changed in Travis. 2020-08-25 01:22:23 +12:00
mikeller
d79dcbb388 Fixed broken tests after #10080. 2020-08-25 01:17:16 +12:00
Michael Keller
b1a3699753
Merge pull request #10128 from SJ-Innovation/SJI_rename_FAST_RAM_macro
Rename macros used in FAST_RAM/DATA
2020-08-25 00:46:12 +12:00
Michael Keller
87adab2fac
Merge pull request #10080 from haslinghuis/british_osd_units 2020-08-25 00:27:59 +12:00
haslinghuis
9ae3adaa51 Measurement units for OSD elements and FRSKY hub telemetry. 2020-08-23 16:23:57 +02: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
Michael Keller
da9bb85843
Merge pull request #10118 from SJChannel/serialRxBytesWaiting-fix
Fix bug that causes uartTotalRxBytesWaiting() to return incorrect value when DMA is used
2020-08-23 15:57:12 +12:00
Michael Keller
b31230701a
Merge pull request #10094 from haslinghuis/upd-doc-serial 2020-08-23 15:48:38 +12:00
Michael Keller
9791bce8c8
Merge pull request #10114 from knoopx/cms-thrust-linearization
add thrust linearization to CSM
2020-08-21 13:09:50 +12:00
Michael Keller
8807c544c7
Merge pull request #10112 from knoopx/cms-config-min-warn-batt
feat: add additional min/warn battery cell voltages to CMS
2020-08-21 10:33:45 +12:00
John Polstra
d184e581d8 Fix a bug that caused uartTotalRxBytesWaiting() to return a grossly incorrect
value when DMA was used.  For example, if one byte was waiting, the function
returned one less than the size of the buffer.

The reason the bug didn't cause serious problems is that almost all
calls to this function check only whether the returned value is zero or not.
(The only exceptions I found were in "src/main/telemetry/hott.c".  Perhaps
that code was tested on a target that did not use DMA.)  The case of zero
bytes waiting was the only case in which the correct result was returned.
2020-08-19 11:30:29 -07:00
haslinghuis
bde56cf876 Document updated after comments from mikeller! 2020-08-19 18:53:54 +02:00
Victor Martinez
e375ac1c21 add thrust linearization to CSM 2020-08-19 01:58:48 +02:00
Victor Martinez
b7b90bd681 feat: add additional min/warn battery cell voltages to CMS 2020-08-19 00:34:09 +02:00
Michael Keller
08a87b72fc
Merge pull request #10105 from mikeller/cleanup_dynamic_idle_old_min_rps
Cleaned up handling of 'oldMinRps' in dynamic idle code.
2020-08-19 02:01:46 +12:00
Michael Keller
eccbd81c8f
Merge pull request #10101 from mikeller/fix_board_info_conditional
Added missing 'USE_BOARD_INFO' conditionals in cms.c.
2020-08-18 00:40:55 +12:00
Michael Keller
3d10b114ea
Merge pull request #10099 from mikeller/update_unified_target_instructions
Updated the instructions for the creation of Unified Target Configurations.
2020-08-18 00:40:20 +12:00
Michael Keller
511ebd4bc2
Merge pull request #10098 from etracer65/improve_gyro_detect
Speed up gyro device detection; fix MPU6000 initialization
2020-08-17 22:24:36 +12:00
mikeller
a5a1c8dd59 Cleaned up handling of 'oldMinRps' in dynamic idle code. 2020-08-17 22:15:06 +12:00
Petr Korolev
f97f61f005
Update PID tuning.md
small gram fixes
2020-08-17 11:10:15 +07:00
Michael Keller
32e389466c
Merge pull request #10086 from IllusionFpv/updated-dyn-throttle-curve 2020-08-16 21:56:43 +12:00
Nicola De Pasquale
c1ce6f30f8 removed unnecessary static declarations 2020-08-16 11:12:55 +02:00
mikeller
04d3f7bb74 Added missing 'USE_BOARD_INFO' conditionals in cms.c. 2020-08-16 21:11:53 +12:00
Michael Keller
66b7cc7c6a
Merge pull request #10097 from etracer65/rssi_channel_constrain_range
Fix underflow in channel based RSSI calculations for out of range values
2020-08-16 13:03:18 +12:00
Michael Keller
d3ad63a50b
Merge pull request #10079 from Asizon/add_vbatSag_to_bbheader
Added vbat_sag_compensation to Blackbox header
2020-08-16 12:05:18 +12:00
mikeller
a668dc9170 Updated the instructions for the creation of Unified Target Configurations. 2020-08-16 11:48:07 +12:00
Bruce Luckcuck
140471adc6 Speed up gyro device detection; fix MPU6000 initialization
The detection logic in the MPU6000 and ICM20689 drivers had unnecessary "retry" logic that would try to read the `WHOAMI` register 5 times for MPU6000 and 20(!) times for ICM20689 - with a 150ms delay for each iteration. So the problem is that all the enabled drivers need to be probed in order so on a board that had a LSM6DSO for example (or any sensor further down the list) it would introduce about 4 seconds of initialization delay (dual gyro board would take 8 seconds!). Revised logic completes in about 0.4 seconds in the worst case.

After removing the unnecessary retry/repeat logic for the MPU6000 an initialization problem became visible. The driver was not following the datasheet guidelines and clearing the signal path after resetting the device. This lead to detection issues on warm reboots that were accidentally masked by the excessive delays with the retry logic.

The improvement in boot speed depends on the device's position in the list. So any device with a MPU6000 won't see any difference. All other devices will boot about 1 second faster (like ICM20602, ICM20689). Devices after the ICM20689 (like BMI160/270, LSM6DSO) will boot about 4 seconds faster.
2020-08-15 18:24:10 -04:00
Michael Keller
7b255c866e
Merge pull request #9946 from limonspb/motor_mapping
Motor output reordering feature for CLI and MSP (Firmware part)
2020-08-16 09:47:51 +12:00
Bruce Luckcuck
cd4d756790 Fix underflow in channel based RSSI calculations for out of range values
If the RSSI channel PWM values were outside the expected 1000-2000 range, the `scaleRange()` function does not work properly. In particular if the value was below the minimum the result would be negative. Then this would cause an underflow when applied as a `uint16` to `setRssiDirect()`. This fix constrains the input range from 1000 to 2000.
2020-08-14 18:59:47 -04:00
Michael Keller
968e72fae8
Merge pull request #10082 from SJChannel/tfp_sprintf-format-mismatch
Fix a format/argument mismatch in a call to tfp_sprintf()
2020-08-13 21:09:50 +12:00
Michael Keller
ea48e80b8e
Merge pull request #10092 from etracer65/cli_range_check_error_formatting
Fix CLI range check error message formatting
2020-08-13 20:46:38 +12:00
Michael Keller
8d2b58c834
Merge pull request #10091 from mikeller/fix_frsky_x_spi_bug
Fixed bug in FrSky X SPI code affecting RX range.
2020-08-13 20:42:00 +12:00
Bruce Luckcuck
ed35b1d773 Fix CLI range check error message formatting 2020-08-11 18:27:11 -04:00
mikeller
77eb4f2172 Fixed bug in FrSky X SPI code affecting RX range. 2020-08-12 00:32:17 +12:00