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

13557 commits

Author SHA1 Message Date
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
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
Michael Keller
899cae197c
Merge pull request #9998 from mikeller/fix_stack_check
Fixed stack size monitoring.
2020-07-22 02:12:58 +12:00
Michael Keller
3315b416b6
Merge pull request #10000 from mikeller/added_bus_device_registration
Added registration for bus devices.
2020-07-22 02:12:18 +12:00
Michael Keller
4e922f9ea4
Merge pull request #10011 from mikeller/add_configurable_stats_flight_time
Added configurable minimum arming time for a flight to be counted in flight statistics.
2020-07-22 02:11:59 +12:00
Phil Greenland
367cc3a513 Fix issue entering pitmode.
Make as many variables as possible private.
Re-work settings application into state machine.
Remove legacy interfaces.
Update OSD interface following implementation rework.
Review updates.
2020-07-20 21:57:03 +01:00
Michael Keller
6a92bf39b4
Merge pull request #9982 from mikeller/fix_bmp280_detection
Fixed detection of BMP280 / BME280.
2020-07-20 08:34:17 +12:00
Michael Keller
4e2cef05d5
Merge pull request #10022 from mikeller/fix_debug_builds
Fixed DEBUG builds.
2020-07-19 19:39:12 +12:00
Mimoja
43a7f93723
Fix build for statistics-disabled DSHOT telemetry
The USE_DSHOT_TELEMETRY_STATS define was is gating a closing bracket '}',
so that the scopes are breaking in case telemetry stats are not enabled.

This commit fixes this behaviour by moving the closing bracket out of the
ifdef.


Signed-off-by: Mimoja <git@mimoja.de>
2020-07-19 00:18:28 +02:00
mikeller
b42d1db0e8 Fixed DEBUG builds. 2020-07-17 01:57:08 +12:00
mikeller
ab3511c420 Added configurable minimum arming time for a flight to be counted in flight statistics. 2020-07-12 15:35:55 +12:00
Michael Keller
f8f01c9fa3
Merge pull request #10006 from etracer65/crash_flip_first_arming 2020-07-12 14:12:31 +12:00
Michael Keller
8916630ad6
Merge pull request #10005 from etracer65/crashflip_ignore_gps_arming_disabled
Ignore GPS arming disabled when arming in crash flip mode
2020-07-12 14:10:18 +12:00
Michael Keller
99f9a34462
Merge pull request #9999 from mikeller/fix_rpm_filter
Fixed missing RPM filter update.
2020-07-11 23:46:49 +12:00
Bruce Luckcuck
bf232e57d9 Prevent crash flip from setting WAS_EVER_ARMED arming flag
Previously if the first "arming" was in crash-flip mode then the various features that rely on "first arming" logic would be defeated. While arming in crash-flip mode is technically "arming", it shouldn't disable features that rely on the first "real" arming. For example, vtx low-power disarm, GPS fix arming disabled, `BATT < FULL` warning, etc.
2020-07-10 09:20:47 -04:00
Bruce Luckcuck
a545e80894 Ignore GPS arming disabled when arming in crash flip mode
While craft is upside down the GPS receiver may not be able to maintain a fix. As a result the `ARMING_DISABLED_GPS` reason could prevent arming in crash-flip mode preventing the user from flipping back over.
2020-07-10 09:01:22 -04:00
Michael Keller
7bb2c26c43
Merge pull request #9990 from ctzsnooze/refactor-Thrust-Linear-update 2020-07-09 15:34:36 +12:00
mikeller
386be8d742 Added registration for bus devices. 2020-07-08 21:34:31 +12:00
mikeller
99c3cc9b0b Fixed missing RPM filter update. 2020-07-08 21:23:18 +12:00
mikeller
81abf873da Fixed stack size monitoring. 2020-07-08 20:08:39 +12:00
ctzsnooze
1fbf0ba816 Further refactoring
Thanks, Mike!
2020-07-07 22:59:58 +10:00
Michael Keller
5d591e3162
Merge pull request #9985 from mikeller/fix_osd_feature_disabling
Fixed disabling of OSD feature when OSD is disabled.
2020-07-08 00:57:26 +12:00
ctzsnooze
9a65b766a2 refactor Thrust Linear to initialise throttleCompensateAmount in pid_init.c
Maybe this could avoid recaculating throttleCompensateAmount every PID loop?
2020-07-07 15:11:17 +10:00
mikeller
1a30329c93 Fixed disabling of OSD feature when OSD is disabled. 2020-07-07 00:29:18 +12:00
mikeller
15d1df3c77 Removed DTerm RPM filter. 2020-07-06 19:33:06 +12: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
8f2422f72e
Merge pull request #9726 from fgiudice98/blackbox-fields-selection 2020-07-06 12:58:42 +12:00
mikeller
ac7f6b8329 Fixed detection of BMP280 / BME280. 2020-07-06 02:20:09 +12:00
mikeller
cfc89c98a8 Fixed the MAX7456 loop time problems introduced by #9948. 2020-07-05 22:00:13 +12:00
fgiudice98
a42ba9779a Changed variable name 2020-07-05 11:23:43 +02:00
Michael Keller
1fbd113204
Merge pull request #9690 from mikeller/cleanup_settings
Refactored assertion in 'settings.c'.
2020-07-05 21:09:17 +12:00
Michael Keller
3822d6eb75
Merge pull request #9688 from mikeller/show_configuration_status
Show configuration status in CLI.
2020-07-05 21:09:01 +12:00
Michael Keller
1466acd5f3
Merge pull request #9697 from AlienWiiBF/ACCST_V2 2020-07-05 15:38:56 +12:00
Michael Keller
3ef0a529ca
Merge pull request #9832 from SteveCEvans/debug_dlpf
Add DEBUG_D_LPF
2020-07-05 14:53:26 +12:00
Michael Keller
8ee0bff93c
Merge pull request #9967 from etracer65/osd_refresh_background_msp
Refresh OSD background after MSP change to craft name
2020-07-05 14:46:08 +12:00
SteveCEvans
d8c0159378 Add DEBUG_D_LPF 2020-07-05 14:37:48 +12:00
Michael Keller
a6241e4dd0
Merge pull request #9949 from McGiverGim/osd_crosshair_not_background
OSD: Move crosshair to active elements and not background
2020-07-05 14:30:58 +12:00
Michael Keller
a8e7890d88
Merge pull request #9740 from ctzsnooze/Thrust-Linear-Update 2020-07-05 14:27:43 +12:00
Michael Keller
8a1e80bf18
Merge pull request #9624 from jflyper/bfdev-adc-remove-MAX_ADC_SUPPORTED
[ADC] Remove MAX_ADC_SUPPORTED and related assertion
2020-07-05 14:16:21 +12:00
mikeller
fb605aed01 Fixed throttle calculation. 2020-07-05 14:15:11 +12:00
ctzsnooze
7cd83464d6 Power 2 thrust compensation with 50% throttle compensation
^2 gain curve after discussions with Markus
Variable throttle compensation, more with higher TL for whoops
Calculator https://www.desmos.com/calculator/1rhq0pqoug
2020-07-05 14:01:42 +12:00
Michael Keller
596c21686c
Merge pull request #9656 from gereic/master 2020-07-05 13:31:13 +12:00
mikeller
46f2a3e30e Matched conditionals to 'src/main/drivers/adc.h'. 2020-07-05 13:25:56 +12:00
Michael Keller
e96e63e252
Merge pull request #9963 from mikeller/remove_unused_header
Removed unused 'io/motors.h' header file.
2020-06-30 23:19:56 +12:00