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

16709 commits

Author SHA1 Message Date
Michael Keller
0f5d28a63c
Merge pull request #10238 from IllusionFpv/add-dlpf-gyro-expo-in-osd
Added dlpf gyro expo curve in CMS
2020-10-07 00:57:09 +13:00
Michael Keller
fbf3bc96b0
Merge pull request #10223 from haslinghuis/fix-dshot-range
Fix Dshot range
2020-10-07 00:47:09 +13:00
Michael Keller
d249ee44b9
Merge pull request #10243 from alexeystn/osd_high_framerate 2020-10-07 00:45:10 +13:00
Michael Keller
871e709459
Merge pull request #10245 from IllusionFpv/add-vbat-sag-compensation-in-cms
Added vbat sag compensation in CMS
2020-10-06 23:54:22 +13:00
Michael Keller
61553521fd
Merge pull request #10175 from jflyper/bfdev-h7-migration-to-V1_8_0-FW-library 2020-10-06 23:23:12 +13:00
Alexey Stankevich
6bab981ff5 Move OSD task frequency logic to tasks.c 2020-10-05 22:08:58 +03:00
Alexey Stankevich
11e06fc94a Fix "task_frequency" variable type 2020-10-05 22:07:42 +03:00
Mark Haslinghuis
5c2931e9ec Fix Dshot range 2020-10-05 18:59:57 +02:00
Alexey Stankevich
c40174d2eb Change 'osd_high_framerate' parameter to 'osd_task_frequency' 2020-10-05 13:22:24 +03:00
Nicola De Pasquale
ff79f2927d added vbat sag compensation in CMS 2020-10-04 16:30:08 +02:00
Michael Keller
5f8d9da384
Merge pull request #10224 from jflyper/bdev-h7-bbdshot
[H7] BB-Dshot support (TIM1/TIM8 limited version)
2020-10-05 00:28:34 +13:00
Michael Keller
db72f19894
Merge pull request #10226 from jflyper/bfdev-g4-fix-adc-deinit-bug
[G4][ADC] Batch call DeInit() for all used devices
2020-10-05 00:28:22 +13:00
Michael Keller
0d45a25e40
Merge pull request #10236 from jflyper/bfdev-g4-add-missing-timup
[G4] Add missing TIMUP_TIMERS (TIM20)
2020-10-05 00:26:07 +13:00
Alexey Stankevich
03e878306b Add optional high framerate OSD 2020-10-04 14:09:16 +03:00
Michael Keller
0f3dd26c28
Merge pull request #10222 from jflyper/bfdev-g4-sys-and-build-files
[G4][SYSTEM] Basic & build files
2020-10-05 00:01:11 +13:00
Michael Keller
c41c396cd6
Merge pull request #10232 from jflyper/bfdev-h7-adc-batch-deinit
[H7][ADC] Batch call DeInit() for all used devices
2020-10-04 23:56:10 +13:00
Michael Keller
c17e935269
Merge pull request #10230 from etracer65/msp_displayport_vcp_support
Add compile-time option to enable MSP push messages over the VCP port
2020-10-04 23:54:33 +13:00
Michael Keller
f793c1b000
Merge pull request #10132 from jcg1541/patch-1
Update Mixer.md
2020-10-04 16:30:10 +13:00
mikeller
b4fcb08bed Fixed typo. 2020-10-04 16:21:11 +13:00
Michael Keller
c79d3b5c17
Merge pull request #10229 from etracer65/msp_displayport_fix
Remove unnecessary drawScreen() calls for MSP displayPort OSD
2020-10-04 16:08:11 +13:00
Michael Keller
021921252c
Merge pull request #10221 from jflyper/bfdev-g4-cli
[G4] CLI and config changes for clock configuration
2020-10-04 15:53:35 +13:00
Nicola De Pasquale
3714903122 enabled gyro dlpf by default 2020-10-03 22:10:36 +02:00
Nicola De Pasquale
dab365aa62 added dlpf gyro expo curve in osd 2020-10-03 22:03:29 +02:00
jflyper
24b4ffa912 Fix dmaopt peripheral numbering for TIMUP 2020-10-04 00:06:04 +09:00
jflyper
ca29b20e37 [G4] Add missing TIMUP_TIMERS (TIM20) 2020-10-04 00:03:28 +09:00
jflyper
9df6d77647 [H7][ADC] Batch call DeInit() for all used devices 2020-10-02 17:36:09 +09:00
jflyper
65e8a0dce7 G4 system files update 2020-10-02 17:15:31 +09:00
Bruce Luckcuck
0c5d316d7c Add compile-time option to enable MSP push messages over the VCP port
Enables easier development and testing of MSP displayPort devices as the existing VCP connection to a computer can be used.

To use, define `USE_MSP_PUSH_OVER_VCP` either in the code or when compiling like:
```
make TARGET=STM32F405 OPTIONS=USE_MSP_PUSH_OVER_VCP
```

The existing code has the VCP blocked for MSP push serial as it can cause a number of problems. If there is no consumer then the USB endpoint will quickly fill its buffer and start flow-controlling. This leads to the the STM libraries blocking and the firmware wedges until data is read. So it's only appropriate that this is used for development testing.
2020-10-01 13:23:36 -04:00
Bruce Luckcuck
44dafd57ec Remove unnecessary drawScreen() calls for MSP displayPort OSD
The previous logic runs the OSD task at 60hz with a logical update rate of 12hz. The structure is based around an "update" (draw the elements) phase followed by 4 "drawScreen" phases that are designed to spread out the flushing of the screen buffer over SPI and reduce the OSD task delay.

The problem with MSP displayport is that is has no buffering aspect. The data is sent immediately to the external device as the elements are "drawn". Later only a single "drawScreen" call is needed to tell the external device to render. So because the same logical structure was used as for the max7456, there were 3 unnecessary drawScreen calls resulting in 36 messages and ~250 bytes/second sent over the serial line.

Discovered while testing with an external application that emulates a MSP displayPort serial device (reads the serial data, renders the OSD). Found the application was needing excessively high processing power because it was being told to render the display 4 times too often.
2020-10-01 12:48:07 -04:00
jflyper
08f1f91c50 [G4] CLI and config changes for overclocking 2020-10-01 20:40:44 +09:00
Michael Keller
5db852a2f4
Merge pull request #10214 from azolyoung/add_fc_attitude_for_rcdevice 2020-10-01 23:57:52 +13:00
jflyper
62878bd2fa [G4][ADC] Batch call DeInit() for all used devices
HAL_ADC_DeInit() initializes ADCx_COMMON registers, so it shouldn’t be called once device configuration starts.
2020-10-01 18:42:30 +09:00
jflyper
fe1a05fa2a [H7] BB-Dshot support (TIM1/TIM8 limited version) 2020-09-30 23:27:23 +09:00
jflyper
e4d7c4e152 [G4][SYSTEM] Basic & build files 2020-09-30 18:20:05 +09:00
azol
365ed0a228 adjust the buffer size of parse context 2020-09-30 14:06:36 +08:00
azol
420764490a fix unitest error 2020-09-28 18:10:27 +08:00
azol
2810b20c83 fix failed on testcase 2020-09-28 16:47:26 +08:00
azol
6e46c1c7e1 add fc attitude requet for rcdevice 2020-09-28 12:15:59 +08:00
Michael Keller
575460ac52
Merge pull request #10176 from jflyper/bfdev-g4-bbdshot
[G4] BB-DSHOT support (TIM1/TIM8 limited version)
2020-09-26 13:34:12 +12:00
Michael Keller
42a4f1385a
Merge pull request #10177 from jflyper/bfdev-g4-usbvcp
[G4] Add USB/VCP support
2020-09-26 13:33:06 +12:00
jflyper
798345d36c [G4] Add USB/VCP support 2020-09-25 20:28:40 +09:00
jflyper
35bad24c55 [G4] BB-DSHOT support (TIM1/TIM8 limited version) 2020-09-25 20:25:07 +09:00
Michael Keller
8e9e533305
Merge pull request #10191 from Igorshp/motor_diag_stopped 2020-09-23 11:48:35 +12:00
Igor Shpakov
17706e3b65 Show stopped motors in Motor Diagnostic OSD element
When motor is stopped and not spinning properly, show letter S instead
of expected esc output.

This is useful after crash recovery or during turtle mode.
2020-09-22 17:28:22 +01:00
Michael Keller
9b66908ce9
Merge pull request #10200 from betaflight/revert-10126-SJI_cleanup_linker_script 2020-09-23 01:32:00 +12:00
Michael Keller
ff4f29043a
Merge pull request #10199 from mikeller/fix_stick_command_disable_name 2020-09-23 01:30:46 +12:00
Michael Keller
d6ff93604b Changed box names to start with most relevant keyword. 2020-09-22 07:51:11 +12:00
Michael Keller
4261f0499d
Revert "Clean up linker script" 2020-09-22 00:05:51 +12:00
mikeller
d2933ad59b Made stick command disable mode name consistent with other names / fit the space. 2020-09-21 23:32:57 +12:00
Michael Keller
41ea150ff8
Merge pull request #10174 from mikeller/move_iflight_h7_config
Moved config for IFLIGHT_H7_TWING into internal flash.
2020-09-21 08:25:02 +12:00