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

13914 commits

Author SHA1 Message Date
jflyper
0c5540228f Simple fixes to library files
- stm32h7xx_hal_rcc.c: Prevent signed-unsigned comparison warning

- [USBLIB] Take care of unused parameters

- [LIB] Stop signed-unsigned comparison warning (rcc_ex)

- Modify HAL SPI driver for const-ness to match call from current bus_spi driver

- [LIB] Handle unused in stm32h7xx_hal_flash.c

- UNUSED care for stm32h7xx_hal_rtc_ex.c

- UNUSED care for stm32h7xx_hal_pwr.c

- UNUSED care for stm32h7xx_hal_pcd.c

- UNUSED care for stm32h7xx_hal_flash.c

- UNUSED care for stm32h7xx_hal_adc_ex.c
2019-04-28 05:55:01 +09:00
jflyper
7a0d3e73f5 Use union to access access size sensitive registers
As described in RM0433 section 49.4.13 "Data packing", STM32H7's SPI data register supports data packing and it is sensitive to actual access width.

The original code used pointer casting to obtain a code to access the register in a desired size.
However, these operation results in strict aliasing warnings (deferencing punned pointer) and are not desirable.

Here, we declare a union that allow access to a 32-bit register in 8, 16 or 32-bit width and cast pointer to the original RXDR and TXDR data registers and then access the portion of the register through an appropriate union member.

XXX FIXME Only handled 16-bit access case, as 32-bit (original declaration) and 8-bit (allowed) cases do not generate warnings, but these should be handled similarly for correctness and consistency of the code.
2019-04-28 05:55:01 +09:00
jflyper
8670c05068 SPI HAL library bug (referencing RX side handle from TX only DMA) 2019-04-28 05:55:01 +09:00
Dominic Clifton
844683279a STM32H750 - Apply workaround to the SDMMC Errata 2.11.4
Issue: "Consecutive multiple block transfers can induce incorrect data length"
Workaround: "8 SDMMC clock cycles must elapse before DTEN can be set."
2019-04-28 05:55:01 +09:00
Dominic Clifton
adcf556ea5 STM32H750 - Fix for H750 Errata 2.11.5. 2019-04-28 05:55:00 +09:00
Dominic Clifton
a545abc511 Fix compilation error in H7 HAL library when enabling QSPI. 2019-04-28 05:55:00 +09:00
jflyper
99ea236bc2 Take care of "FLASH_SIZE" constant for stm32h750xx.h in lib 2019-04-28 05:54:36 +09:00
jflyper
0bb34cdd09 usbd_def: disable insane defs of MIN and MAX 2019-04-25 12:01:42 +09:00
jflyper
e124693d48 [LIB] stm32h7xx_hal_def.h : Include <stddef.h> instead of <stdio.h>
Inclusion of <stdio.h> produces poisoned function alert for sprintf and
variants.
F7 use <stddef.h> instead of <stdio.h>
2019-04-25 12:01:42 +09:00
jflyper
22dd78f247 [CMSIS] stm32h743xx.h: FLASH_SIZE def collide with Betaflight 2019-04-25 12:01:42 +09:00
jflyper
1db881f595
Merge pull request #8058 from jflyper/bfdev-h7-import-library
[H7 LIB] Import STM32Cube_FW_H7_V1.3.0
2019-04-24 20:41:47 +09:00
Michael Keller
ee0ac209c3
Merge pull request #8029 from Doven7/patch-3
Add target HGLRCF411 to 4.0.
2019-04-24 10:34:06 +12:00
MJ666
94ddf5aceb
Merge pull request #8044 from Docteh/move_the_configs
move configs to proper spot
2019-04-21 13:49:57 +02:00
jflyper
5f15f58aa6 Import STM32Cube_FW_H7_V1.3.0 2019-04-21 18:39:03 +09:00
root
60ca3dcb46 move configs to proper spot 2019-04-19 06:13:09 +00:00
Michael Keller
eba5856654
Merge pull request #8035 from krzysztofmatula/km-sym-amp
OSD: use nice AMP symbol in post flight stats instead of ordinary "A"
2019-04-19 14:04:42 +12:00
Michael Keller
4dfe12c266
Merge pull request #8033 from hydra/bf-really-fix-gyro-detection-in-multi-gyro-setups
Really fix gyro detection code code for multi gyro setups.
2019-04-19 14:00:02 +12:00
Doven
052d2d004f
Rename HGLRCF411.config to unified_targets/configs/HGLRCF411.config 2019-04-19 09:57:28 +08:00
Michael Keller
403168f7f4
Merge pull request #8027 from Doven7/patch-2
Add target HGLRCF405 to 4.0.
2019-04-19 13:51:15 +12:00
Michael Keller
380889912f
Merge pull request #8025 from etracer65/osd_stats_maximize_lines
Maximize OSD stats display lines based on video mode
2019-04-19 13:50:04 +12:00
Michael Keller
655b82d379
Merge pull request #8016 from krzysztofmatula/km-timer-safety-checks
OSD timers safety checks
2019-04-19 13:43:38 +12:00
Michael Keller
45daf97f2b
Merge pull request #8010 from TonyBlit/fix_fs_flymode
Replaced !FS! fly mode with *FS* due to missing '!' in OSD font
2019-04-19 13:40:07 +12:00
Michael Keller
edcacb9f0d
Merge pull request #7994 from krzysztofmatula/km-on-arm-timer
OSD: combined ON/ARM timer
2019-04-19 13:38:56 +12:00
Krzysztof Matula
00d9b0bb50 OSD: use nice AMP symbol in post flight stats instead of ordinary "A" 2019-04-17 22:38:56 +02:00
Dominic Clifton
67bd97b193 Really fix gyro detection code code for multi gyro setups.
Broken in e44f75b4a7.

Problem caused by not checking both of the bits after masking.

Prior to this commit the code would incorrectly attempt to use GYRO1
when only GYRO2 was detected resulting in a segfault.
2019-04-17 15:31:08 +02:00
Michael Keller
55a5d70cc8
Merge pull request #7841 from etracer65/dshot_bidir_quality_stats
Add DSHOT telemetry motor level packet stats
2019-04-17 06:38:45 +12:00
Michael Keller
f7fa2ff27b
Merge pull request #8020 from mikeller/fix_feature_cli_help
Fixed CLI help for 'feature'.
2019-04-17 05:57:40 +12:00
Michael Keller
1c4d733ded
Merge pull request #7859 from laz2wiringpi/gps_menu
Gps rescue menus for OSD
2019-04-17 05:50:38 +12:00
Michael Keller
db5c14da02
Merge pull request #8017 from ianrmurphy/rssi-lq-warnings
Added RSSI and Link Quality warnings
2019-04-17 05:49:27 +12:00
Bruce Luckcuck
644d5713df Add DSHOT telemetry motor level packet stats
Captures packet quality statistics per motor to provide a platform for troubleshooting and in-flight alarms or warnings.

Continuously monitors and captures packet stats over the past second to be used to determine DSHOT telemetry link quality.

Update the CLI to move the DSHOT telemetry data/stats out of the `status` command and into a dedicated `dshot_telemetry_info` command. Reformatted the motor data to include the invalid packet percentages. Will aid in debugging by identifying ESC's that may be misconfigured (not supplying data), or those with problems generating high invalid packet percentages.

Data can later be used to generate OSD and beeper-based warnings if invalid packet percentages exceed thresholds.

Included a blackbox logging debug mode (`set debug_mode = DSHOT_RPM_ERRORS`) to record the per-motor invalid packet percentages in hundredths of a percent (so 123 is 1.23%).
2019-04-16 08:47:50 -04:00
Doven
fe26821c31
HGLRCF411.config 2019-04-16 17:14:38 +08:00
Doven
83718e9309
HGLRCF405.config 2019-04-16 11:32:43 +08:00
Bruce Luckcuck
00c3a5d1b4 Maximize OSD stats display lines based on video mode
Will dynamically determine the number of active OSD stats lines that are being displayed (accounting for user selections and #define logic) and maximize the number of stats that can be displayed based on the current video format (13 for NTSC, 16 for PAL).

If the number of stats is equal to or greater than the available display lines, the heading will be suppressed and used instead for an extra stats line.

The entire stats page will be centered vertically based on the screen size determined by the video format.
2019-04-15 20:02:07 -04:00
ianrmurphy
0ab0fb75ff Corrected whitespace. 2019-04-15 23:32:20 +01:00
Krzysztof Matula
5a737fd778 OSD timers safety - code review changes 2 2019-04-15 23:28:32 +02:00
Krzysztof Matula
b8b5b133dc OSD timers safety - code review changes 2019-04-15 23:25:58 +02:00
Krzysztof Matula
078e7fc0a5 improved fix 2019-04-15 19:05:30 +02:00
Krzysztof Matula
e256639909 OSD timers safety checks 2019-04-15 18:57:49 +02:00
Krzysztof Matula
a56ac05303 Revert "Prevent crashing when OSD timers are configured incorrectly."
This reverts commit db2f3641c92a7db1aec93581592861860f292b23.
2019-04-15 18:57:36 +02:00
laz2wiringpi
22485e3e6e GPS Rescue cms menu 2019-04-15 10:33:38 -04:00
mikeller
9dbe140d28 Fixed CLI help for 'feature'. 2019-04-16 00:25:15 +12:00
Michael Keller
01e0c95810
Merge pull request #7952 from jirif/vbat_digits
Show only 3 significant digits in vbat OSD element
2019-04-16 00:17:23 +12:00
Michael Keller
edb7ca36d8
Merge pull request #7749 from blckmn/string_set
Adding string settings
2019-04-15 23:55:30 +12:00
ianrmurphy
8dc1befab1 Corrected parameter ordering, no MSP. 2019-04-15 12:33:47 +01:00
Michael Keller
ddd504161a
Merge pull request #7963 from Doven7/patch-1
Add target HGLRCF745 to 4.0. Also add Unified Target configuration.
2019-04-15 23:25:19 +12:00
blckmn
4cb1f6509c Adding ability to specify a string as an option in the SET / GET setup 2019-04-15 14:52:10 +10:00
Doven7
07ab10b58a
HGLRCF745.config 2019-04-15 10:34:00 +08:00
ianrmurphy
11dd4e7598 Added warnings for RSSI and Link Quality, added Link Quality alarm. 2019-04-15 00:24:20 +01:00
Krzysztof Matula
0e5b9cdd5c Prevent crashing when OSD timers are configured incorrectly. 2019-04-15 00:26:52 +02:00
Tony Cabello
e276976b28 Replaced !FS! fly mode with *FS* due to missing exclamation mark in OSD font 2019-04-14 18:17:22 +02:00