1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00
Commit graph

14865 commits

Author SHA1 Message Date
Dominic Clifton
8d78e15a4b Fix use of sdcard.cardDetectPin before it is initialised.
* de-duplicate some SDIO/SPI sd-card detection code.
* ensure detectionInverted is set to false for SDIO case where
`cardDetectTag` is not configured.
2019-07-10 17:09:03 +02:00
Bruce Luckcuck
4a7cfeb34f Expose camera control button resistance values
Allows fine tuning of the voltage divider resistance values for each button to account for slight variances amongst cameras. Also allows manual configuration for non-standard cameras. Resistance values are in 100ohm steps.
2019-07-10 09:52:20 -04:00
Jonas
db4957b73c COLIBRI_RACE: BST GPS fix
3rd party GPS does now send correct long/lat coordinates to bst bus. FPVision OSD is now working correctly.
2019-07-10 06:58:32 +02:00
LinJieqiang
03ea490e06 Fix beeper support for IF_F411_PRO and IF_F405_TWING unified targets 2019-07-09 11:32:31 +08:00
Michael Keller
7471ada0c1
Fixed default setting for gyro 2. (#8544)
Fixed default setting for gyro 2.
2019-07-09 08:01:24 +12:00
Michael Keller
d1aabfcdcc
Fixed resource ownership / define for SPI RX bind pin. (#8543)
Fixed resource ownership / define for SPI RX bind pin.
2019-07-09 07:59:35 +12:00
Michael Keller
d0ff793b39
Fixed DMA resource conflicts for target BEEROTORF4. (#8540)
Fixed DMA resource conflicts for target BEEROTORF4.
2019-07-09 07:57:39 +12:00
Michael Keller
3a63ee93c6
Added TMOTORF4 target (#8533)
Added TMOTORF4 target
2019-07-09 07:55:00 +12:00
Andrey Mironov
33576bd822 Renamed SPEDIXF4 to TMOTORF4 2019-07-08 10:38:29 +03:00
jflyper
f693a6d63f [H7][ADC] Migration to V1.4.0 library
- VRef and Temperature sensor calibration constants defined in "stm32h7xx_ll_adc.h" are now included via “stm32h7xx_hal_adc.h”.
- Boostmode is now handled by HAL_ADC_Init using clock configuration parameters to cope with Rev.V.

- Channel specifier (ADC_CHANNEL_x) was a simple integer with V1.3.0, is now an bit field encoded value.
adcTagMap had this value, but adcChannel field in adcOperationConfig was not big enough to store it.
The adcChannel field is modified to hold 32-bit value.

- Rank for channel configuration was a integer, now a bit field encoded value (ADC_RANK_x).
adcRegularRankMap array was added to translate rank number to rank value.

- Other Rev.V changes also seem to be handled within HAL.
2019-07-08 09:36:04 +09:00
jflyper
6fbc0f44ca [H7][LIB][SPI] Use union to access size sensitive SPI data register
Application of

Use union to access access size sensitive registers (7a0d3e7)

to V1.4.0

----
Note from "Use union to access access size sensitive registers (7a0d3e7)":
----

Use union to access access size sensitive registers

As described in RM0433 section 49.4.13 "Data packing", STM32H7's SPI data register supports data packing and it is sensitive to actual access width.

The original code used pointer casting to obtain a code to access the register in a desired size.
However, these operation results in strict aliasing warnings (deferencing punned pointer) and are not desirable.

Here, we declare a union that allow access to a 32-bit register in 8, 16 or 32-bit width and cast pointer to the original RXDR and TXDR data registers and then access the portion of the register through an appropriate union member.

XXX FIXME Only handled 16-bit access case, as 32-bit (original declaration) and 8-bit (allowed) cases do not generate warnings, but these should be handled similarly for correctness and consistency of the code.
2019-07-08 09:36:04 +09:00
jflyper
8bbc1456f3 [H7][LIB][USB] Middlewares change: Fix memory corruption
Application of
[H7] USB LIB Middlewares change: Avoid null hhid from being deferenced
to V1.4.0
2019-07-08 09:36:04 +09:00
jflyper
c6321190a9 [H7][LIB][USB] Modify USB Library for composite device
Application of

[H7] Modify USB Middleware library for composite device support #8235 (1861c6d)

to V1.4.0
2019-07-08 09:30:55 +09:00
jflyper
d924e59c3c [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.4.0
2019-07-08 09:30:55 +09:00
jflyper
41f7c0c5fd [H7][LIB][SD] Fix for H750 Errata 2.11.5.
Application of

STM32H750 - Fix for H750 Errata 2.11.5. (adcf556)

to V1.4.0
2019-07-08 09:30:55 +09:00
jflyper
125e0887b5 [H7][LIB] Take care of UNUSED parameters in V1.4.0 2019-07-08 09:30:54 +09:00
jflyper
49ee02a707 [H7][LIB] Modify HAL SPI driver for const-ness to match call from current bus_spi driver 2019-07-08 09:30:54 +09:00
jflyper
42c9475203 [H7][LIB][USB] usbd_def: disable insane defs of MIN and MAX 2019-07-08 09:30:54 +09:00
jflyper
0c7bc10bd0 [H7][LIB][CMSIS] Handle FLASH_SIZE def collision with Betaflight 2019-07-08 09:30:40 +09:00
jflyper
400a122f30 [H7] STM32H7.mk additions and cleanup 2019-07-08 09:30:21 +09:00
mikeller
a0473c43fa Fixed default setting for gyro 2. 2019-07-08 00:43:21 +12:00
mikeller
afb2bf57db Fixed resource ownership / define for SPI RX bind pin. 2019-07-08 00:41:39 +12:00
mikeller
56e7c8225a Fixed DMA resource conflicts for target BEEROTORF4. 2019-07-07 17:15:07 +12:00
Michael Keller
5e6e1af0bf
Added RTC6705 driver to Unified Targets. (#8529)
Added RTC6705 driver to Unified Targets.
2019-07-07 17:06:47 +12:00
mikeller
612cb25006 Added RTC6705 driver to Unified Targets. 2019-07-07 15:06:12 +12:00
jflyper
2f911c1163 [H7][LIB] Import V1.4.0 library 2019-07-05 00:09:01 +09:00
jflyper
1a8d40494d [H7][LIB] Remove V1.3.0 library 2019-07-05 00:09:00 +09:00
Michael Keller
5ba4fa3793
Properly add hex file building to '<target>_flash'. (#8530)
Properly add hex file building to '<target>_flash'.
2019-07-04 09:12:31 +12:00
Michael Keller
5e5e0dd1e7
Merge pull request #8528 from mikeller/add_aikon_manufacturer_id
Added manufacturer id for AIKON.
2019-07-04 09:12:16 +12:00
Michael Keller
829f80a0c1
Added manufacturer id for T-motor. (#8527)
Added manufacturer id for T-motor.
2019-07-04 09:11:58 +12:00
Michael Keller
6686570dc2
Fixed two typos in PR template (#8524)
Fixed two typos in PR template
2019-07-04 09:11:37 +12:00
Michael Keller
cd260821c1
Minor conditional-compilation fixes. (#8484)
Minor conditional-compilation fixes.
2019-07-04 09:07:41 +12:00
Andrey Mironov
e804642f59 Added TMOTORF4 target 2019-07-03 10:16:05 +03:00
Dominic Clifton
1f2ef98042 Fix compilation when USE_DSHOT and USE_PWM_OUTPUT are not defined.
Fix compilation when USE_DMA and USE_DMA_SPEC are not defined.

Cleanup calling code of `isMotorProtocolDshot`.

Fix 'unused' warning when USE_PWM_OUTPUT is not defined.

Undo isMotoroProtocolDshot change.

Disable USE_SERIAL_4WAY_BLHELI_INTERFACE when USE_PWM_OUTPUT is not
enabled.

Style cleanup.
2019-07-03 08:36:12 +12:00
Michael Keller
1631831147
Fixed CLI DMA presence mask support. (#8503)
Fixed CLI DMA presence mask support.
2019-07-03 08:18:39 +12:00
mikeller
e65bc6cb13 Properly add hex file building to '<target>_flash'. 2019-07-03 01:51:43 +12:00
mikeller
92549402d0 Added manufacturer id for AIKON. 2019-07-03 01:42:24 +12:00
mikeller
d0cd8b8277 Added manufacturer id for T-motor. 2019-07-03 01:38:22 +12:00
Michael Keller
07097431d2
Reset out of range filter cutoffs (#8512)
Reset out of range filter cutoffs
2019-07-03 01:22:52 +12:00
Michael Keller
c7550a7806
Add ascend and descend rates to CMS (#8519)
Add ascend and descend rates to CMS
2019-07-03 00:29:11 +12:00
Michael Keller
9b18071992
Fixed file permissions. (#8517)
Fixed file permissions.
2019-07-03 00:21:43 +12:00
Andrey Mironov
ff52de568b
Fixed two typos in PR template 2019-07-02 14:51:09 +03:00
Michael Keller
f36eda16c5
Add FF to yaw, reduce yaw P and I (#8515)
Add FF to yaw, reduce yaw P and I
2019-07-02 23:47:23 +12:00
Michael Keller
d02db0dd96
Revert #7907 to return abs control default to zero (#8513)
Revert #7907 to return abs control default to zero
2019-07-02 23:44:35 +12:00
Michael Keller
5da85ef4a4
BMP388 - Add support for BMP388 barometer. (#8481)
BMP388 - Add support for BMP388 barometer.
2019-07-02 09:55:27 +12:00
Dominic Clifton
53167b161f BMP388 - Add support for BMP388 barometer.
BMP388 - Move the static assert.

BMP388 - Build faster when the baro driver is not enabled.

BMP388 - Fix spi init due to changes in master.

BMP388 - Add missing bmp388 unit test files.

BMP388 - Remove debug code.

BMP388 - Prepare EXTI/EOC handling for unified targets.

BMP388 - enable on unified targets.

BMP388 - Add support to NUCLEOF722.

BMP388 - Add support to NUCLEOH743.

BMP388 - Add BMP388 (via SPI) support to NUCLEOF7

* For some CI visibility on the conditional baro SPI code.

NUCLEOH743 - Add LPS baro for more CI visibility.

Remove whitespace, as requested.

Move barometer `#defines` into the implementations.

Cleanup style of method names in baro drivers.
2019-07-02 08:14:23 +12:00
Bruce Luckcuck
2d6b6599f9 If notch cutoff over limit then reset to 0 2019-07-01 16:08:28 -04:00
Nicola De Pasquale
65943c14d6 add ascend and descend rates to CMS 2019-07-01 14:56:08 +02:00
Michael Keller
aba49b39ae
Gps rescue pid controller based on vertical velocity (#8015)
Gps rescue pid controller based on vertical velocity
2019-07-01 23:45:28 +12:00
mikeller
50bbe0b140 Fixed file permissions. 2019-07-01 23:29:53 +12:00