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

13278 commits

Author SHA1 Message Date
tbs-fpv
131c77079e
cosmetic change
Co-authored-by: haslinghuis <mark@numloq.nl>
2021-05-11 10:04:02 +08:00
tbs-fpv
80e1b7fb06 cosmetics 2021-05-10 15:02:40 +08:00
tbs-fpv
1cd96fa9ab cosmetics 2021-05-10 13:56:07 +08:00
tbs-fpv
5ec30726a9 support baud rate negotiation if telemetry is disabled 2021-05-10 13:32:16 +08:00
Dominic Clifton
5eec605290 Force reset the SDMMC peripheral to prevent SD card initialization
failure.

* Observed on EXST targets.

Reference:

https://community.st.com/s/question/0D53W00000MBn2mSAD/stm32h743-sdmmc-write-problem
2021-05-08 22:07:32 +02:00
Dominic Clifton
e0f2b89828 Indicate failure when CONFIG_IN_SDCARD is used and no SD card is
inserted.
2021-05-08 14:20:29 +02:00
ctzsnooze
636d563abe major rc changes ctzsnooze 2021 2021-05-07 14:40:43 +10:00
Tony Cabello Miguel
56cb320be0 OSD Test for Sats indicator fixed 2021-05-05 15:26:41 +02:00
Tony Cabello Miguel
561b15be70 WIP: Unit test for OSD Sats element 2021-05-05 10:27:03 +02:00
tbs-fpv
a3cbbb3c1c better differentiation for 0x16 & 0x17 RC frames 2021-05-05 16:03:29 +08:00
Tony Cabello Miguel
c56d81457f Fixed tests, replaced hyphen with NC 2021-05-05 08:55:50 +02:00
Tony Cabello Miguel
aad83f5705 OSD Fix: show hyphen when no sats 2021-05-05 06:48:10 +02:00
tbs-fpv
ec287000b3 remove duplicated preprocessor 2021-04-28 11:48:22 +08:00
tbs-fpv
8c788d99c5 only enable CRSFV3 for targets with flash size > 256 2021-04-28 11:44:08 +08:00
Dominic Clifton
c8e741bd18 Add W25Q128FV driver (QSPI only)
* Enable QSPI flash chip drivers on NUCLEOH743 for some CI visibility.
* Rework QSPI flash detection.
* Supports chips that are in QSPI mode by default (factory).
* Supports chips that are in QSPI mode due to configuration (e.g. Quad
Enable in Non-Volatile on W25Q128FV)
* Supports chips that need 8 dummy bytes (e.g. W25Q128JV) and ones that
don't (e.g. W25N01G)
2021-04-28 05:30:08 +02:00
tbs-fpv
fbd01551ff support channel resolution configuration for 0x17 2021-04-28 11:21:30 +08:00
tbs-fpv
4d8845b8da Merge remote-tracking branch 'refs/remotes/official_bf/master'
Conflicts:
	src/main/rx/crsf.c
	src/test/unit/rx_crsf_unittest.cc
2021-04-28 11:15:00 +08:00
Dominic Clifton
86f5ccdb80 ICM42605 - Fix missing use of USE_SPI_GYRO.
ICM42605 - Fix missing call to mpuDetect.

ICM42605 - Disable un-needed debug code by default.

ICM42605 - Delete unneeded reads of ICM42605_RA_GYRO_CONFIG0 and
ICM42605_RA_ACCEL_CONFIG0.

ICM42605 - rename the khzToSupportedODRMap and make it static.
2021-04-28 01:58:00 +12:00
Michael Keller
a7da43c60c
Merge pull request #10657 from klutvott123/fix-spi-timeout 2021-04-28 01:55:20 +12:00
Michael Keller
a53f2a60a5
Merge pull request #10711 from mikeller/remove_powerf
Remove unneeded library function 'powerf()'.
2021-04-28 01:28:43 +12:00
mikeller
53187c5367 Switched to 'maximum FIFO' version of the BMI270 microcode. 2021-04-28 01:10:45 +12:00
ctzsnooze
d4f0ec2d0a feed forward jitter improvements 2021-04-27 12:47:06 +10:00
Hans Christian Olaussen
ff95fc6471 Fix SPI timeout 2021-04-26 19:20:30 +02:00
Hans Christian Olaussen
242d5df827 tabs and spaces 2021-04-26 19:11:47 +02:00
Michael Keller
3ae7e917b7
Merge pull request #10707 from klutvott123/rc-data-float 2021-04-27 01:48:20 +12:00
mikeller
687c7014c0 Added MCU id / name for STM32G474. 2021-04-27 01:37:33 +12:00
Hans Christian Olaussen
3177cb3ec0 Update unit tests 2021-04-26 15:14:59 +02:00
Hans Christian Olaussen
8c28533c69 Preserve resolution of RC input 2021-04-26 15:14:58 +02:00
Bruce Luckcuck
37dbbd0755 Add GPS coordinates OSD elements display variants; add support for Open Location Code display
Adds variations in GPS coordinate OSD element display:
1. Fractional degrees with 7 digits (default) - 000.0000000
2. Fractional degrees with 4 digits - 000.0000
3. Degrees, minutes, seconds - 000^00'00.0"E
4. Open Location Code (sometimed called Google Plus Code) - 23ABC4R8+M37

Uses Open Location Code library from:
https://github.com/google/open-location-code

Added support for `STATE(GPS_FIX_EVER)` to differentiate from having a fix now (`STATE(GPS_FIX)`) vs. ever having a fix.

Logic change to only display coordinates from the GPS module once a fix has been initially established. This prevents displaying interim coordinates supplied by the GPS while the fix is still being establised as these coordinates can be inaccurate by hundreds of miles. Once a fix is established initially then the coordinates will continue to be displayed even if the fix is lost or degrades in quality.

Add logic to "blink" the coordinates if the 3D fix is lost after initially being established. Alerts the user that the coordinate display may be inaccurate or no longer being updated. We want to keep the coordinates displayed to aid recovery if the user loses the fix (like crashing upside down).

Replace GPS defines `LAT` and `LON` used throughout the code with the enumeration:
```
typedef enum {
    GPS_LATITUDE,
    GPS_LONGITUDE
} gpsCoordinateType_e;
```

The Open Location Code option is bounded with `USE_GPS_PLUS_CODE` to allow it to be excluded if needed for targets with limited flash space. It currently fits for F411 but we may have to remove it in the future.
2021-04-26 23:43:11 +12:00
mikeller
55cf26ebbc Cleaned up matrix rotation. 2021-04-26 23:10:00 +12:00
tbs-fpv
8437b69254 revise the data structure of subset RC frames 2021-04-26 17:42:37 +08:00
tbs-fpv
565f23074f add unit test for crsfFrameCmdCRC 2021-04-26 17:09:32 +08:00
tbs-fpv
e24d55f0a7 cosmetics 2021-04-26 17:08:03 +08:00
mikeller
6b87b3685c Remove unneeded library function 'powerf()'. 2021-04-26 16:50:54 +12:00
mikeller
03d3d94497 Added Unified Target for STM32G4. 2021-04-26 16:18:28 +12:00
Michael Keller
5f2c29c725
Merge pull request #10661 from klutvott123/msp-bytes-remaining-check-fix
MSP fix bytes remaining check
2021-04-26 15:39:07 +12:00
Michael Keller
9e115b466b
Merge pull request #10650 from ctzsnooze/PT2-and-PT3-for-rc_smoothing 2021-04-26 14:58:32 +12:00
Michael Keller
f60bbbbbc2
Merge pull request #10684 from klutvott123/msp-add-gps-min-rescue-dth
MSP add GPS min rescue dth
2021-04-26 14:33:31 +12:00
ctzsnooze
a096c99664 PT2 and PT3 filter maths PT3 for RC smoothing 2021-04-26 14:12:54 +12:00
Michael Keller
72d9868f8d
Merge pull request #10696 from hydra/bf-config-id-sd-card-fix
Fix infinite loop in SD card initialisation failure when CONFIG_IN_SDCARD is used.
2021-04-26 13:43:29 +12:00
Michael Keller
67535941d8
Merge pull request #10697 from TonyBlit/battery_doc
Small doc enhancements
2021-04-26 13:42:19 +12:00
Michael Keller
32ea34302e
Merge pull request #10698 from azolyoung/add_w25q64jvim_flash_support
add W25Q64JVXGIM flash support
2021-04-26 13:38:31 +12:00
Michael Keller
85b34b4c21
Merge pull request #10699 from TonyBlit/virtual_current_header
Fixes in comments in current.h
2021-04-26 13:37:41 +12:00
Michael Keller
db571a78eb
Merge pull request #10603 from etracer65/fix_cms_rssi_dbm_alarm
Fix CMS RSSI dBm alarm data type and range
2021-04-26 13:13:42 +12:00
Michael Keller
122f8f29af
Merge pull request #10582 from dkustec/osd_tx_uplink_power 2021-04-26 12:53:39 +12:00
Michael Keller
7fbc422771
Merge pull request #10543 from mikeller/fix_displayport_allocation_inconsistency
Made the displayport initialisation consistent for all telemetry protocols.
2021-04-26 12:41:59 +12:00
Michael Keller
21009d20f2
Merge pull request #10649 from mikeller/fix_rx_task_check
Fixed RX task check.
2021-04-26 01:06:12 +12:00
Dominic Clifton
263c5fa373 Add UART9/10 support.
* UART9 was supported as LPUART on some H7s.
* Newer 100-pin H7 CPUs support UART9 and USART10.
* 100+ pin devices support higher numbered UARTS than UART10.

Use USE_LPUART instead of hacking into UART9 for clarity.

* LPUARTS are different from other types of UARTS.
* They need different ID ranges.
* They have and different capabilities.
* Renumber LPUART1 to 40.

0-19 reserved for UART1-20
40-49 onwards for LPUART instances.

It makes sense to treat them as a different class of UART.  Just like we
do for softserial, vcp, etc.
2021-04-22 06:13:09 +02:00
Dominic Clifton
c48fd62a58 Fix infinite loop in SD card initialisation failure when
CONFIG_IN_SDCARD is used.

Caused by there being no default for the SDCard config resulting in an
empty sdcard vtable.
2021-04-17 19:32:48 +02:00
Tony Cabello Miguel
06127f36fc fix comments 2021-04-16 16:09:54 +02:00