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

16555 commits

Author SHA1 Message Date
Michael Keller
f77b6a59c3
Merge pull request #10481 from mikeller/fix_baro_sample_count_setting
Fixed incorrect parameter value for barometer sample count.
2021-02-08 16:09:08 +13:00
Michael Keller
f079234925
Merge pull request #10480 from mikeller/add_stale_action
Changed stale request handling to use a GitHub action.
2021-02-08 16:08:52 +13:00
Michael Keller
3978819afa
Merge pull request #10532 from ilya-epifanov/fix-spi-frsky-x
fix SPI FRSKY_X/FRSKY_X_LBT after adding ACCST 2.1 support
2021-02-08 15:54:04 +13:00
Ilya Epifanov
448b49685a fix SPI FRSKY_X/FRSKY_X_LBT after adding ACCST 2.1 support 2021-02-07 02:27:40 +01:00
Michael Keller
816819d3d9
Merge pull request #10505 from dellch/feature/cleanup-coding-style-braces-section 2021-01-24 16:52:12 +13:00
Chris
7641bdcc91
adds additional headings to Curly braces section
Adds proposed sub headings to Formatting Style > Curly Braces section
2021-01-22 16:01:58 -08:00
Chris
5e5748c99a
removes unintentional heading 2021-01-22 15:58:17 -08:00
Chris
79bfa181dd
Clarifies and clean-up Formatting style > Curly braces
- adds `code` formatting to some keywords
- adds some more clarifications to existing style rules.
2021-01-22 15:51:35 -08:00
Michael Keller
34614231d3
Merge pull request #10479 from mikeller/fix_validation_order
Reordered configuration validation to put custom target validation to the end.
2021-01-17 10:59:58 +08:00
Michael Keller
f5b7d8bec8
Merge pull request #10478 from mikeller/update_readme_ci_status
Updated the CI build status in README.md.
2021-01-17 10:59:45 +08:00
Michael Keller
8be1b4bdb4 Fixed incorrect parameter value for barometer sample count. 2021-01-17 00:38:05 +13:00
Michael Keller
d809bc7b00 Changed stale request handling to use a GitHub action. 2021-01-16 22:47:38 +13:00
Michael Keller
6e282cf246 Reordered configuration validation to put custom target validation to the end. 2021-01-16 16:21:07 +13:00
Michael Keller
de5a09198b Updated the CI build status in README.md. 2021-01-16 15:47:30 +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
Michael Keller
3ea8c657c0
Merge pull request #10448 from etracer65/fix_cms_displayport_register
Only register CMS displayPort for SRXL and CRSF when appropriate
2021-01-16 10:14:09 +08:00
Michael Keller
81b0e26723
Merge pull request #10468 from mikeller/add_ak8975_mag_to_unified_targets
Added AK8975 magnetometer driver to Unified Targets.
2021-01-12 20:10:02 +08:00
Michael Keller
261637838e
Merge pull request #10471 from etracer65/current_meter_div0_fix
Fix possible div-by-zero in current meter
2021-01-12 20:08:53 +08:00
Michael Keller
b762ac9994
Merge pull request #10472 from etracer65/baro_sample_range_fix
Fix baro sample size minimum range
2021-01-12 19:55:17 +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
Michael Keller
b222474b95
Merge pull request #10443 from etracer65/cms_background_transparency_control 2021-01-11 08:13:21 +08:00
Bruce Luckcuck
e7b9828c3b Add option to display OSD menus over a solid gray background
Improves menu readability by changing the background from a transparent display of the camera image to a static opaque gray background.

The behavior is controlled with the `osd_menu_background` parameter which defaults to `TRANSPARENT` to preserve the previous behavior. Other opaque options are available:
```
osd_menu_background = TRANSPARENT
Allowed values: TRANSPARENT, BLACK, GRAY, LIGHT_GRAY
```

The background setting is available in the CMS OSD menu and the user can cycle through the various options with the display updating in real-time.

Currently only the onboard MAX7456-based OSD is supported, but the implementation adds `displayPort` support so it can easily be extended to other OSD devices if those manufacturers want to add support. Also can be extended to other background types (like colors, varying transparency, etc.) for future device support.

Makes use of the built-in MAX7456 feature to display all transparent pixels as "gray". The MAX7456 display area seems to be a few scan lines smaller than the actual camera video image so it's normal for some of the camera image to "leak" at the top/bottom of the display. The OSD display area can be adjusted up/down using the `vcd_v_offset` setting if desired.
2021-01-10 18:19:59 -05:00
Michael Keller
38c792c1c5
Merge pull request #10470 from mikeller/added_unit_tests_to_azure
Added unit test / sanity check runs to the Azure script.
2021-01-11 06:51:13 +08:00
Michael Keller
fb3889c88d Added unit test / sanity check runs to the Azure script. 2021-01-11 11:24:10 +13:00
Michael Keller
8a95ad314b
Merge pull request #10469 from mikeller/fix_tests
Fixed unit tests.
2021-01-11 06:23:04 +08:00
Michael Keller
789f4b9989 Added AK8975 magnetometer driver to Unified Targets. 2021-01-11 08:06:19 +13:00
Michael Keller
00b62185a5
Merge pull request #10467 from etracer65/alt_hold_cleanup
Altitude hold removal cleanup
2021-01-11 02:46:36 +08:00
Michael Keller
e74a892645
Merge pull request #10464 from etracer65/fix_ak8975_compile_errors
Fix compile errors for ak8975 magnetometer driver
2021-01-11 02:43:12 +08:00
Bruce Luckcuck
c008d9c406 Fix baro sample size minimum range
The logic that uses the sample table size is:
```
```
So a setting of 1 would result in div-by-zero later in the code. A setting of 0 would result in division by -1 causing altitude measurements to be inverted. This could lead to a safety issue with GPS Rescue and a flyaway as it attemts to climb to altitude.

The default value is 21 and fortunately this was a setting that users were unlikely to have changed.
2021-01-10 11:09:18 -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
12e3b6e242
Merge pull request #10462 from ctzsnooze/exclude-yaw-P-from-AG-boost
Exclude yaw from AntiGravity generated P boost
2021-01-10 18:34:49 +08:00
Michael Keller
1f1ee1b820
Merge pull request #10461 from mikeller/fix_simplified_gyro_filters
Fixed CLI parameter for simplified gyro filters.
2021-01-10 18:17:46 +08:00
Michael Keller
18eca90c51
Merge pull request #10458 from jflyper/bfdev-h7-update-power-supply-confi
[H7] Update power supply configuration
2021-01-10 18:17:24 +08:00
Michael Keller
fe3f0aee3e Fixed unit tests. 2021-01-10 22:29:23 +13:00
Michael Keller
b189f8f1f7
Merge pull request #10410 from ligenxxxx/master 2021-01-10 08:25:54 +08:00
Michael Keller
cad720abda
Merge pull request #10413 from limonspb/smartaudio_version
Added vtx device status to MSP
2021-01-10 08:23:30 +08:00
Michael Keller
ebc162ba9d
Merge pull request #10459 from tstibor/sd_init_return 2021-01-10 06:21:04 +08:00
Thomas Stibor
0bb44c4cb0 Refactor SD_Init() to return proper SD_Error_t code.
Function SD_Init() is called as follows:

./main/msc/usbd_storage_sdio.c:         if (SD_Init() != 0) {
./main/drivers/sdcard_sdio_baremetal.c: if (SD_Init() != 0) {
./main/drivers/sdcard_sdio_baremetal.c: if (SD_Init() != 0) {

and checks whether return value is != 0, that is != SD_OK.
Previous implementation is working, however, cannot handle proper
SD_Error_t handling. In addition the code was refactored and simplified.
2021-01-09 22:09:59 +01:00
Bruce Luckcuck
1ca01692a7 Altitude hold removal cleanup
Just cleaning up some unused leftover altitude hold code
2021-01-09 12:24:15 -05:00
Bruce Luckcuck
ef76a2a042 Fix compile errors for ak8975 magnetometer driver 2021-01-09 12:07:04 -05:00
ctzsnooze
5b40fcc326 exclude yaw from AG driven P boost 2021-01-09 21:19:10 +11:00
Michael Keller
b19434c9cb
Merge pull request #10451 from Linjieqiang/iflight_H743_AIO
Add more feature for iFlight_H743_AIO support.
2021-01-09 09:54:11 +08:00
Michael Keller
b88509c643
Merge pull request #10454 from mikeller/fix_msp_override_mode
Added missing GUI box for MSP override.
2021-01-09 09:52:14 +08:00
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