Commit Graph

16325 Commits

Author SHA1 Message Date
mikeller e4b3a1f2e5 Moved mixer profile initialisation to after pid initialisation. 2020-10-11 23:54:26 +13:00
mikeller 9e6b65680e Split mixer code into initialisation and runtime to reduce flash space usage. 2020-10-11 23:54:26 +13:00
Michael Keller 9017506517
Merge pull request #10258 from etracer65/enable_bmp085_unified_targets
Enable BMP085/BMP180 for F405 and F745 unified targets
2020-10-11 14:51:34 +13:00
Michael Keller 5582afb2d5
Merge pull request #10257 from etracer65/osd_element_pid_add_feedforward
Add feedforward to OSD PID elements
2020-10-11 14:47:54 +13:00
Michael Keller ab65e7241d
Merge pull request #10166 from pgreenland/vtx_allow_exit_pitmode_on_arm 2020-10-11 14:35:04 +13:00
Michael Keller 640a07589c
Merge pull request #10246 from SteveCEvans/h7msclib 2020-10-11 14:34:03 +13:00
mikeller 25b325e59a Fixed coding style. 2020-10-11 13:51:09 +13:00
Phil Greenland a588d23a29 Allow exit from VTX pitmode when arming craft.
Rework logic in vtxProcessPitMode to execute vtxCommonSetPitMode if required mode doesn't agree with mode reported by status rather than on change.
Add logic to smartaudio protocol to only issue pit mode commands on change.
Also allow exit from pit mode when armed, but not entry.
2020-10-11 13:50:24 +13:00
Michael Keller b92f030434
Merge pull request #10113 from knoopx/improve-custom-builds 2020-10-11 13:45:15 +13:00
Steve Evans f71bb41166 Fix H7 USB MSC support to use same structure naming as F7, and to ensure that data buffers are cache aligned so that USB, SD card and QSPI DMAs function correctly 2020-10-08 21:08:10 +01:00
Michael Keller 7503f06ce9
Merge pull request #10256 from haslinghuis/docs-fedora
Update Building in Fedora to 32
2020-10-09 02:08:50 +13:00
Michael Keller 7d0c1ebad9
Merge pull request #10225 from dkustec/buzzer-mute-box-mode 2020-10-09 01:57:28 +13:00
Bruce Luckcuck a67115f67b Enable BMP085/BMP180 for F405 and F745 unified targets
Adds support for these older devices in targets that have lots of available flash space.
2020-10-07 13:47:22 -04:00
Bruce Luckcuck a4ce46779e Add feedforward to OSD PID elements
Elements were never updated and only displayed the P, I and D gains.
2020-10-07 08:47:32 -04:00
haslinghuis 821d99a000 Update Building in Fedora to 32 2020-10-07 03:27:56 +02:00
Davor Kustec 4b9ac000ec New feature 'Beeper Mute'
Added comma in the last element of struct

Removed BOXBEEPERON from condition
2020-10-06 14:15:57 +02:00
Michael Keller b085bf77ab
Merge pull request #10237 from jflyper/bfdev-fix-dmaopt-timup-numbering
Fix dmaopt peripheral numbering for TIMUP
2020-10-07 00:57:21 +13:00
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 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