1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +03:00
Commit graph

16491 commits

Author SHA1 Message Date
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
Michael Keller
6de100a9d6
Merge pull request #10183 from etracer65/box_stick_command_disable
Add box mode to disable stick commands
2020-09-20 16:12:15 +12:00
Michael Keller
610dfa30ab
Merge pull request #10181 from Linjieqiang/add_support_SucceX_D_H743 2020-09-20 16:09:33 +12:00
Michael Keller
2cc55a3c5d
Merge pull request #10178 from jflyper/bfdev-g4-hidcdc
[G4] USB_HID_CDC support
2020-09-20 16:03:16 +12:00
Michael Keller
5f33ef9c0a
Merge pull request #10163 from ctzsnooze/AntiGravity-to-also-boost-P 2020-09-20 15:41:12 +12:00
Michael Keller
b234463c7e
Merge pull request #10159 from krygacz/support-mpu925x-internal-mag-over-i2c 2020-09-20 15:23:21 +12:00
ctzsnooze
c075569563 Whitespace - thanks, Nicola!
Space invader indeed lol
2020-09-20 12:42:09 +10:00
ctzsnooze
6a143beb6f Code improbements, thanks for the feedback! 2020-09-20 12:42:09 +10:00
ctzsnooze
d1bf5d0d11 Add late P boost to antigravity 2020-09-20 12:42:09 +10:00
Bruce Luckcuck
19ece68555 Add box mode to disable stick commands
Adds a `STICK COMMAND DISABLE SW` mode used to prevent inadvertant triggering of controls, calibrations, or settings changes. Useful for USB HID mode when using the flight controller as a joystick (and auto-detect doesn't work), in "team" or "relay" racing where multiple quads might be bound to the same transmitter, or just in general if the user wants prevent stick commands.

Will also prevent stick arming when the mode is active (but not stick disarming).
2020-09-15 12:51:19 -04:00
krygacz
58ae3fdfd5 Support MPU925x internal magnetometer over I2C 2020-09-14 23:41:45 +02:00
LinJieqiang
0a9428ca4f Add target IFLIGHT_H743_AIO support. 2020-09-14 19:32:57 +08:00
jflyper
0423ad826a [H7][USB] Add transmit complete callback in USBD_CDC_fops 2020-09-14 14:11:12 +09:00
jflyper
3762b4cf6c [H7][USB] Follow signature changes
USB_LL_Transmit and USB_LL_PrepareReceive:
size was changed from uint16_t to uint32_t
2020-09-14 11:09:37 +09:00
jflyper
f2810551e7 [H7][LIB][SDMMC] Workaround for SDMMC Errata 2.11.4
Application of

STM32H750 - Apply workaround to the SDMMC Errata 2.11.4 (8446832)

to V1.6.0
2020-09-14 11:09:37 +09:00
jflyper
0397a1618a [H7][LIB][USB] Middlewares change: Fix memory corruption
Application of
[H7] USB LIB Middlewares change: Avoid null hhid from being deferenced
to V1.6.0
2020-09-14 11:09:37 +09:00
jflyper
fd11348dce [H7][LIB][USB] Modify USB Library for composite device
Includes changes from 4e487f6
2020-09-14 11:09:21 +09:00
jflyper
c3f2632405 [H7][LIB] Remove duplicate definition of assert_param from LL dma & Tim 2020-09-14 11:07:25 +09:00
jflyper
5b75338aff [H7][LIB] Revert some function in stm32h7xx_hal_tim.h to global
TIM_DMADelayPulseCplt (HAL_TIM_DMADelayPulseCplt) was changed to static
in 1.7 or 1.8, but this will cause timer_hal.c which uses
HAL_TIM_DMADelayPulseCplt not to build.
2020-09-14 11:07:25 +09:00