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

16862 commits

Author SHA1 Message Date
Michael Keller
55fe3bb8f2 Fixed CLI parameter for simplified gyro filters. 2021-01-09 13:47:29 +13:00
jflyper
6747a82bec [H7] Update power supply configuration 2021-01-08 14:05:21 +09:00
Michael Keller
d8d15efb98 Added missing GUI box for MSP override. 2021-01-07 14:31:26 +13:00
LinJieqiang
e9a98e11c4 Add more feature for iFlight_H743_AIO support. 2021-01-06 14:54:21 +08:00
ligenxxxx
88d593604c Update serial_uart_impl.h
The msp_displayport function does not support deprecated flight controllers.
2021-01-06 09:32:02 +08:00
Michael Keller
3df0053d2e
Merge pull request #10441 from mikeller/make_frsky_fuel_reporting_consistent
Made fuel reporting for FrSky telemetry consistent.
2021-01-06 02:31:35 +08:00
Michael Keller
cddb6cb869
Merge pull request #10440 from mikeller/simplify_osd_blinking
Simplified the OSD blink frequency calculation.
2021-01-06 02:31:11 +08:00
Michael Keller
243be1d216
Merge pull request #9119 from IvoFPV/add-tuning-sliders 2021-01-06 02:19:29 +08:00
Bruce Luckcuck
35adb5ba06 Only register CMS displayPort for SRXL and CRSF when appropriate
Previous logic was always registering CRSL and SRXL as CMS displayPort devices regardless of whether the user was actually using that type of radio and telemetry.

The problem this caused is that if the user accidentally (or intentionally) used the CMS invoke stick command while already in the CMS on the MAX7456 the logic interprets this to mean "switch to the next registered displayPort device". So in this case the CMS would appear to exit based on what the user could see. But in reality it's still active and simply switched to the next (nonexistent) device. The user is then stuck and can't arm because the `CMS` arming disabled will be active and they have no way to interact with the CMS. They can technically blindly do the CMS stick command 2 more times to get back to the MAX7456, but how would they know that?

So this change only registers the CRSF and SRXL displayPorts when the user has selected those receiver types and enabled telemetry.

This is actually only a partial solution since it prevents registering the devices when they're impossible to work, but doesn't do anything for the actual CRSF or SRXL user that may be using equipment not capable of displaying the CMS. So it's still possible for them to get stuck in this situation. But I don't see any reasonable way to prevent this.

Perhaps it's time to rethink this "Switch to next CMS device" logic? It's something that nobody really knows about and seems to be more trouble than value. Maybe there are some edge cases where it's useful like using the OLED dashboard along with a MAX7456, but that's a rare use-case. Or possibly we need some explicit control where the user has to enable the particular displayPort device to be eligible for CMS?
2021-01-04 12:20:02 -05:00
Ivan Efimov
9db5b502b9 Added VTX device status to MSP 2021-01-03 20:55:25 -06:00
Michael Keller
aa3d69f490
Merge pull request #10442 from phobos-/vbat-crashflip-fix
Disabled voltage sag compensation in crash flip mode
2021-01-03 14:59:53 +01:00
Michael Keller
3158412159
Merge pull request #10439 from mikeller/makefile_improvement
Minor Makefile improvement.
2021-01-03 14:44:33 +01:00
Michael Keller
5da56bda05 Minor Makefile improvement. 2021-01-03 19:51:02 +08:00
Michael Keller
1818249046
Merge pull request #10438 from mikeller/remove_build_dir
Removed unused BUILD_DIR target from Makefile.
2021-01-03 12:49:02 +01:00
phobos-
c3f90e567f disabled voltage sag compensation in crash flip mode 2021-01-02 12:55:43 +01:00
Michael Keller
d05d422bc0 Made fuel reporting for FrSky telemetry consistent. 2021-01-02 01:58:00 +01:00
Michael Keller
a702ee1a5b Simplified the OSD blink frequency calculation. 2021-01-02 01:04:13 +01:00
Michael Keller
932d6dc153
Merge pull request #10434 from tstibor/unused_cli_variables
Remove unused CLI variables from documentation page
2021-01-01 13:04:53 +01:00
Michael Keller
6eb7222af6 Removed unused BUILD_DIR target from Makefile. 2021-01-01 10:12:20 +01:00
Michael Keller
20940de41d
Merge pull request #10430 from etracer65/improve_rates_range_checks
Improve rate settings range checking
2021-01-01 01:43:39 +01:00
Bruce Luckcuck
3c15716679 Improve rate settings range checking
Improve the logic to be table-based and add validation of the rc_rates and expo values. The previous logic only validated the super-rates and the rc_rates can also be out-of-range when changing rates types. The expo values are also checked but currently all the rates types have the same constraints so there's no possibility currently of them being out of range. But this will allow for possible new rates type that have different constraints.
2020-12-31 18:52:07 -05:00
Michael Keller
2126aa17e6
Merge pull request #10429 from etracer65/fix_raceflight_rate_reset
Fix logic error for RACEFLIGHT and KISS rates range checks
2021-01-01 00:39:24 +01:00
ligenxxxx
fd15177fdb Resize ```UART_TX_BUFFER_SIZE``` 2020-12-31 12:17:32 +08:00
Michael Keller
b5477cd500
Merge pull request #10408 from mikeller/cleanup_debug_code
Cleaned up debug code in Dshot.
2020-12-30 16:14:33 +01:00
Michael Keller
74297459f0
Merge pull request #10407 from mikeller/fix_dshot_command_msp
Fixed MSP command to send Dshot commands.
2020-12-30 16:14:19 +01:00
Thomas Stibor
a974891432 Remove unused CLI variables from documentation page
Since version 4.0.0 CLI variables:

    * acc_cut_hz,
    * accxy_deadband,
    * accz_deadband,
    * acc_unarmedcal

are removed from settings.c and thus can be also removed
from the CLI documentation page.
2020-12-30 14:42:26 +01:00
Bruce Luckcuck
76d50f1d37 Fix logic error for RACEFLIGHT and KISS rates range checks
Fixes logic errors in #9574

For RACEFLIGHT rates the applicable `case` was missing so the logic defaulted to the BETAFLIGHT rates logic which incorrectly limited the maximum rate value to 100. RACEFLIGHT values range to 255.

For KISS rates the limit was set to 100 but the Configurator constrains to 99.
2020-12-27 18:14:16 -05:00
Michael Keller
32373e3e05
Merge pull request #10426 from mikeller/improve_issue_templates
Remove heading for 'Additional Context' from issue templates, improve clarity.
2020-12-27 21:30:43 +01:00
Michael Keller
9fe4141342
Merge pull request #10425 from etracer65/fix_cellcount_div0
Fix multiple div-by-zero related to battery cell count
2020-12-27 01:06:23 +01:00
Michael Keller
50c149821d
Merge pull request #10424 from etracer65/improve_osd_blink
Improve OSD blink timing logic
2020-12-27 01:05:53 +01: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
Michael Keller
4d9f2c330b
Merge pull request #10406 from mikeller/fix_bitbanged_dshot_commands
Fixed problem when sending blocking Dshot commands with bitbanged Dshot enabled.
2020-12-26 02:32:52 +01:00
Michael Keller
5a443f1824
Merge pull request #10419 from Linjieqiang/add_more_flash_support_aio
Add more flash chip support for IFLIGHT_H743_AIO board.
2020-12-26 02:19:07 +01:00
Michael Keller
518918899f Remove heading for 'Additional Context' from issue templates, improve clarity. 2020-12-25 21:20:20 +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
f7d992b2bd Improve OSD blink logic
Changes the blink logic to be OSD task loop based instead of time based.

The previous logic used a 200ms time interval for the blinking which didn't align well with the default 12hz OSD update frequency resulting in the logic periodically missing intervals resulting in an inconsistent blinking.

As the revised logic is now tied to the OSD task iterations the blinking will be consistent. However due to the timing the blink will be slightly faster - 167ms (6hz) vs. the previous 200ms (5hz) intervals. Technically the blinking was 6hz before but stuttered every 5th blink.

Since the OSD task rate can be changed from the default 60hz, the logic will fall back to the time-based implementation for non-default task rates.
2020-12-25 12:41:44 -05:00
ligenxxxx
a5cd9ea7c3 Modified UART_TX_BUFFER_SIZE for USE_MSP_DISPLAYPORT
I did a test and added a lot of osd elements (basically all osd elements I can add, excluding GPS and ESC elements), and even some have overlapped. In this case, there is no problem at all. TxBufferSize is set to 1024. It is sufficient for normal conditions.
2020-12-24 19:15:14 +08:00
ligenxxxx
076732248e Update msp_serial.c 2020-12-24 11:33:30 +08:00
ligenxxxx
00f73a6e0b only delay when define USE_MSP_DISPLAYPORT 2020-12-24 11:20:41 +08:00
LinJieqiang
d6ec351c36 Add more flash chip support for IFLIGHT_H745_AIO board. 2020-12-22 22:03:38 +08:00
Michael Keller
3f116fd103
Merge pull request #10416 from mikeller/enable_azure_pull_request_builds 2020-12-22 10:54:13 +01:00
Michael Keller
6fb0d2a2ca Changed to build all targets. 2020-12-22 10:03:11 +01:00
Michael Keller
28490f5972 Enabled pull request builds in Azure. 2020-12-22 10:03:11 +01:00
Michael Keller
e24c24cbf2
Merge pull request #10409 from mikeller/fix_nucleoh743_rambased_overflow 2020-12-22 10:02:40 +01:00
ligenxxxx
abc9f868b1 Optimized the buffer full solution 2020-12-18 11:06:47 +08:00
Michael Keller
364b9e0f88
Merge pull request #10382 from McGiverGim/auto_close_issues 2020-12-17 00:43:04 +01:00
Miguel Angel Mulero Martinez
f9780e95c1 Add action to close issues 2020-12-16 16:00:28 +01:00
Michael Keller
f39b00ea54
Merge pull request #10405 from mikeller/fix_rssi_dbm_warning_cli
Added missing CLI parameter for RSSI dBm.
2020-12-16 14:09:30 +01:00