1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00
Commit graph

13557 commits

Author SHA1 Message Date
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
azol
2b21e2ff70 add W25Q64JVXGIM flash support 2021-04-16 14:24:54 +08:00
Tony Cabello Miguel
518bc1b165 Small doc enhancements 2021-04-16 07:49:25 +02:00
Steve Evans
5795b959c2 Handle timing for gpsUpdate task 2021-04-12 20:35:27 +01:00
Steve Evans
a309bea8d7 Handle timing for gpsUpdate task 2021-04-12 19:39:29 +01:00
tbs-fpv
483b3cc5a7 add remarks to the unused variables 2021-04-12 20:14:54 +08:00
tbs-fpv
62c8e92b38 remove downlink_power in link stats TX frame 2021-04-12 11:31:54 +08:00
tbs-fpv
8872830410 fix the invalid payload size for link stats TX frame 2021-04-12 11:23:26 +08:00
tbs-fpv
eb16326897 remove trailing spaces 2021-04-12 09:59:04 +08:00
Steve Evans
14236be7e3 Handle timing for ledStripUpdate task 2021-04-12 01:12:49 +01:00
Hans Christian Olaussen
e401a0b1ab MSP add GPS min rescue dth 2021-04-11 16:21:44 +02:00
tbs-fpv
cbf9d355cd
clean up 2021-04-08 22:19:29 +08:00
tbs-fpv
1a529077c7
Update crsf.c
Fix typo
2021-04-08 21:06:37 +08:00
tbs-fpv
daf6043429 fix unit test build errors 2021-04-08 13:08:43 +08:00
tbs-fpv
ee2179b836 support CRSF V3 protocol 2021-04-08 12:32:20 +08:00
Hans Christian Olaussen
472b1c3dd0 Allow re-initialising dynamic notch 2021-04-02 22:20:40 +02:00
Hans Christian Olaussen
8497762f50 MSP fix bytes remaining check
We need at least 2 bytes for dyn_notch_max_hz.
2021-04-02 21:37:54 +02:00
mikeller
82ff9fb007 Fixed RX task check. 2021-03-31 08:21:26 +13:00
Michael Keller
025ee87a7a
Merge pull request #10646 from Linjieqiang/fix_iflight_h7_board_current_meter
Fix: the scaling of the onboard current meter for IFLIGHT H7 target.
2021-03-29 23:39:56 +13:00
Michael Keller
a5d0f7e457
Merge pull request #10589 from IllusionFpv/fix/cms-simplified-tuning-5pt-steps
move simplified tuning parameters by 5pt
2021-03-28 18:34:35 +13:00
Michael Keller
78cd10a09e
Merge pull request #10626 from ctzsnooze/rc-tidyup-interpolated-setpoint
Remove non-required interpolated_sp parameters, simplify calling FF recalculation
2021-03-28 18:30:22 +13:00
Michael Keller
ea520bd3fc
Merge pull request #10605 from SteveCEvans/late_tasks
Display late execution stats in tasks command
2021-03-28 18:28:16 +13:00