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

16637 commits

Author SHA1 Message Date
Victor Martinez
88f2fdcf7d prevent unused warning when using USE_QUAD_MIXER_ONLY 2020-08-19 00:42:52 +02:00
Victor Martinez
3e81cdf96f undef USE_SDCARD_* when no USE_SDCARD 2020-08-19 00:42:42 +02:00
Victor Martinez
4073db363b undef USE_MAG_* when no USE_MAG 2020-08-19 00:42:42 +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
Michael Keller
77ceda89c4
Merge pull request #10062 from mikeller/fix_cms_lockup
Fixed lockup when entering CMS.
2020-08-11 23:09:09 +12: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
John Polstra
72f6934202 Fix a format/argument mismatch in a call to tfp_sprintf(). The call
contained an extra argument for which there was no corresponding format
specification.
2020-08-06 10:51:34 -07:00
mikeller
dad63b6d14 Improvements from @ledvinap. 2020-08-06 05:59:23 +12:00
mikeller
d8e3aa7e2d Fixed lockup when entering CMS. 2020-08-06 05:59:23 +12:00
Michael Keller
b1af9befe5
Merge pull request #10071 from mikeller/add_board_info_to_cms
Added board information to CMS 'firmware' menu.
2020-08-06 05:57:02 +12:00
Asizon
8231c024de Added vbat_sag_compensation to Blackbox header 2020-08-05 12:08:51 +02:00
Michael Keller
b488d388ba
Merge pull request #10075 from haslinghuis/crsf-cms-fixed
Fixed crsf-cms
2020-08-05 06:54:06 +12:00
haslinghuis
acf87e972f Fixed crsf-cms (removed optimization for now) 2020-08-03 19:43:30 +02:00
mikeller
7116044c6c Added board information to CMS 'firmware' menu. 2020-08-03 02:05:24 +12:00
Michael Keller
f33c944f14
Merge pull request #10064 from dev-fred/master 2020-08-01 19:11:14 +12:00
dev-fred
ed19e91131
// Added in API version 1.44
comment over the change done
2020-07-30 11:43:59 +02:00
dev-fred
2623560185
add comment: // Added in API version 1.44 2020-07-30 11:18:31 +02:00
dev-fred
a09210dcd4
Update msp.c
Add hdop in MSP_RAW_GPS 
https://github.com/betaflight/betaflight/issues/10063
2020-07-29 22:44:27 +02:00
Michael Keller
a752d3d218
Merge pull request #10057 from etracer65/gps_rescue_fixed_wing_disable
Disable GPS RESCUE if mixer is fixed-wing type
2020-07-30 00:33:44 +12:00
Michael Keller
883529883a
Merge pull request #10023 from mikeller/add_debug_build_to_cicd
Added STM32F4DISCOVERY_DEBUG target and added it to pre-push.
2020-07-30 00:26:34 +12:00
limonspb
464919c416 Motor output reordering for CLI and MSP
Fixed some code formatting

+fixReorderingArray() for EEPROM load/save and renamings

fix brace new line

moving MOTOR_OUTPUT_REORDERING to MSP2 betaflight specific

validateAndfixConfig now resets reordering motor array to default in case it is invalid
2020-07-27 20:10:37 -05:00
Bruce Luckcuck
2317b5fe8d Disable GPS RESCUE if mixer is fixed-wing type
GPS Rescue flight control logic only knows how to fly multirotors and engaging GPS Rescue on a fixed-wing craft would result in an immediate loss of control and crash. For example, when GPS Rescue is engaged it attempts to yaw to the home direction heading and this won't work on fixed wing (particularly the flying wing mixer with no rudder). Next it tries to attain the target altitude exclusively with throttle control - not how altitude is controlled with a fix-wing aircraft.

Also the GPS Rescue no-fix arming prevention logic shouldn't be applied.
2020-07-27 18:49:34 -04:00
Michael Keller
1d78f97846
Merge pull request #9915 from AscendNTNU/msp-override 2020-07-27 23:20:10 +12:00
Birk Tjelmeland
aa5066e443 Add MSP override mode
The MSP override mode allows for use of MSP togehter with
another RX feature like SBUS. When enabling the MSP override
mode all channels from the `msp_override_channels` bitmask
will be overwritten by data comming from MSP instead of the
main RX.
2020-07-27 13:01:38 +02:00
Michael Keller
94cd650472
Merge pull request #9981 from mikeller/fix_max7456_delay_problems
Fixed the MAX7456 loop time problems introduced by #9948.
2020-07-26 15:31:16 +12:00
Michael Keller
9ae9b32aad
Merge pull request #9937 from mikeller/refactor_dshot_enabled_checks
Refactored Dshot enabled checks.
2020-07-26 15:30:40 +12:00
Michael Keller
0e28a646fd
Merge pull request #9863 from mikeller/cleanup_crsf_tests
Cleaned up separation of CRSF test code.
2020-07-26 15:30:10 +12:00
Michael Keller
0e4a54fc81
Merge pull request #9638 from pgreenland/vtx_irc_tramp_improvements 2020-07-26 12:57:32 +12:00
mikeller
c128f33a85 Added STM32F4DISCOVERY_DEBUG target and added it to pre-push. 2020-07-22 02:18:25 +12:00