1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 20:35:33 +03:00
Commit graph

14599 commits

Author SHA1 Message Date
jflyper
c8252fabdd Introduce memProtXXX MPU configuration service 2019-07-24 11:32:11 +09:00
Michael Keller
0f230c42a1
Allow resorting to fake gyro if USE_FAKE_GYRO is defined (#8579)
Allow resorting to fake gyro if USE_FAKE_GYRO is defined
2019-07-22 02:29:57 +12:00
Michael Keller
c02fe840ce
Add target HGLRCF405AS to 4.0 (#8580)
Add target HGLRCF405AS to 4.0
2019-07-22 02:29:23 +12:00
Michael Keller
3c91831beb
Update mateksys unified targets (#8584)
Update mateksys unified targets
2019-07-22 02:28:40 +12:00
Michael Keller
9bf86db4d6
[F1] Legacy maintenance: Update boot loader request related to… (#8587)
[F1] Legacy maintenance: Update boot loader request related to current
2019-07-22 01:42:41 +12:00
HGLRC-D
c8cb1cef2e HGLRCF405AS.config
Update HGLRCF405AS.config

Rename unified_targets/ configs/HGLRCF405AS.config to unified_targets/configs/HGLRCF405AS.config

HGLRCF405AS.config

HGLRCF405AS.config
2019-07-22 00:52:06 +12:00
jflyper
79452fff85 [F1] Update boot loader request related 2019-07-18 12:22:20 +09:00
jflyper
b90ed88f2e Bypass calibration for GYRO_FAKE 2019-07-17 23:36:54 +09:00
Michael Keller
d8b74db2dc
Enabled support for targets supporting RTC6705 on hardware and… (#8542)
Enabled support for targets supporting RTC6705 on hardware and software SPI.
2019-07-18 00:15:40 +12:00
Michael Keller
3b84e5713b
Motor code refactor (Phase 1) (#8534)
Motor code refactor (Phase 1)
2019-07-17 17:22:08 +12:00
jflyper
a78238e0f2 Allow resorting to fake gyro if USE_FAKE_GYRO is defined 2019-07-17 14:03:24 +09:00
TheIsotopes
6896405900
Update mateksys unified targets
updated MATEKF722SE and splitted to new MATEKF722MINI

removed MATEKF405 and splitted to new MATEKF405CTR, MATEKF405STD and MATEKF405MINI
2019-07-16 20:06:27 +02:00
jflyper
542146c702 Motor code refactor (Phase 1) 2019-07-17 01:33:39 +09:00
mikeller
fd0c7f385d Fixed build on SPRACINGH7EXTREME. 2019-07-16 23:26:10 +12:00
mikeller
60d53be152 Enabled support for targets supporting RTC6705 on hardware and software SPI. 2019-07-16 00:09:39 +12:00
Michael Keller
f4bb75180e
Refactored SD card initialisation to contain SD card detection… (#8574)
Refactored SD card initialisation to contain SD card detection initialisation.
2019-07-15 22:15:41 +12:00
Michael Keller
2a0877290e
SPRACINGH7NANO - First betaflight STM32H750 400Mhz 20x20 mount… (#8537)
SPRACINGH7NANO - First betaflight STM32H750 400Mhz 20x20 mount FC.
2019-07-14 17:15:54 +12:00
Michael Keller
b1c8f3e515
SPRacingH7EXTREME - First betaflight STM32H750 400Mhz FC. (#8536)
SPRacingH7EXTREME - First betaflight STM32H750 400Mhz FC.
2019-07-14 17:14:43 +12:00
mikeller
da93c07432 Refactored SD card initialisation to contain SD card detection initialisation. 2019-07-14 17:09:35 +12:00
Michael Keller
7e6a890e47
Fix use of sdcard.cardDetectPin before it is initialised. (#8557)
Fix use of sdcard.cardDetectPin before it is initialised.
2019-07-14 14:38:10 +12:00
Dominic Clifton
a0d8b57fd4 SPRACINGH7EXTREME - First STM32H750 betaflight target.
SPRACINGH7EXTREME - Disable requirement for custom gyro alignment and
dual gyro.

Requires custom gyro rotation code to be merged first, see:

https://github.com/betaflight/betaflight/pull/7845
https://github.com/betaflight/betaflight/pull/8474

SPRACINGH7EXTREME - Add boards documentation and images.

Add SPRacingH7EXTREME to the list of official targets.

SPRACINGH7EXTREME - Add unified target config.

Note: untested as no unified target exists for STM32H750+EXST yet.

SPRACINGH7EXTREME - Use correct gyro settings now that #8474 is merged.

SPRACINGH7EXTREME - Combine target files.

SPRACINGH7EXTREME - Update unified target config.
2019-07-14 14:04:27 +12:00
Dominic Clifton
33f761d6a3 SPRACINGH7NANO - First betaflight STM32H750 400Mhz 20x20 mount FC.
Website: http://seriouslypro.com/spracingh7nano
Shop: https://shop.seriouslypro.com/sp-racing-h7-nano

SPRACINGH7NANO - Add boards documentation and images.

SPRACINGH7NANO - Add unified target config.

Note: untested as no unified target exists for STM32H750+EXST yet.

SPRACINGH7NANO - Combine target files.

SPRACINGH7NANO - Update unified target config.
2019-07-14 14:00:47 +12:00
Michael Keller
b2b8ff6bdc
we got moved from travis-ci.org to travis-ci.com awhile back (#8566)
we got moved from travis-ci.org to travis-ci.com awhile back
2019-07-14 02:19:18 +12:00
Michael Keller
f095d648f5
COLIBRI_RACE: BST GPS fix (#8555)
COLIBRI_RACE: BST GPS fix
2019-07-14 02:05:18 +12:00
Michael Keller
4bec60e05b
Fix beeper support for IF_F411_PRO and IF_F405_TWING unified ta… (#8549)
Fix beeper support for IF_F411_PRO and IF_F405_TWING unified targets
2019-07-14 01:24:47 +12:00
Michael Keller
bcaf13c2e5
[H7] Migration to FW V1.4.0 library (#8546)
[H7] Migration to FW V1.4.0 library
2019-07-14 01:24:26 +12:00
Michael Keller
4c4ccac62c
Refactored arbitrary gyro and mag alignment. (#8474)
Refactored arbitrary gyro and mag alignment.
2019-07-13 13:25:04 +12:00
Dominic Clifton
980df1536f Refactored arbitrary gyro and mag alignment.
The original implementation:

* removed the old 'alignment' variable
* did not require 'ALIGN_CUSTOM'
* always used rotation matrix
* had no additional per-pid-loop conditional logic.

Extract currently unused code into tests.
In preparation for either deleting or re-using in validateAndFixConfig.

Fix code style of some old boardalignment code.

De-duplicate vector rotation code.

Now that rotation code is exacted from `alignBoard` and now  doesn't use
`boardRotation` some if it was similar to the code in `rotateV` in
maths.c

Use DECIDEGREES for mag and gyro/acc custom alignments.

Use unnamed structure instead of `values`.

Redefine what 'custom' orientation means.

Move alignment test-only code into the tests.

Ensure gyro/mag custom alignment settings follow the enum variations.

This can't be applied to ALIGN_DEFAULT because, in the case of the MAG,
the default isn't actually known until the gyro is detected, see
`compassDetect`.

OMNIBUSF4/F7 - Don't use ALIGN_DEFAULT in target.h,
common_defaults_post.h does this now.

Comment cleanup.

Delete unused alignment code left from various tests/refactoring
efforts.

* Please do not squash this commit.

Fix SITL build by avoiding structure assignment with anonymous inner
struct.

The error from the build server was as follows:

```./src/main/common/sensor_alignment.c:49:5: error: missing initializer
for field ‘yaw’ of ‘struct <anonymous>’
[-Werror=missing-field-initializers]
     *sensorAlignment = CUSTOM_ALIGN_CW0_DEG;
     ^
In file included from ./src/main/common/sensor_alignment.c:27:0:
./src/main/common/sensor_alignment.h:80:17: note: ‘yaw’ declared here
         int16_t yaw;
                 ^
```

Cleanup sensor_alignment API.
2019-07-13 11:51:20 +12:00
Michael Keller
632dc6c591
Update Development.md (#8564)
Update Development.md
2019-07-13 11:36:43 +12:00
Dominic Clifton
494b559277
Merge pull request #8558 from hydra/bf-ignore-launch-configurations
add launch configuration directories to .gitignore
2019-07-12 22:44:34 +02:00
Kyle K
5aa36cf00c we got moved from travis-ci.org to travis-ci.com awhile back 2019-07-11 08:42:25 +00:00
Kyle Kienapfel
f57128e7c1
Update Development.md
From discussion in #8558
2019-07-10 20:48:42 -07:00
Michael Keller
07621912d2
Expose camera control button resistance values (#8552)
Expose camera control button resistance values
2019-07-11 13:13:08 +12:00
Dominic Clifton
5b47d29581 Add support/ozone to .gitignore 2019-07-10 19:18:47 +02:00
Dominic Clifton
93ab67199a Add support/support to .gitignore
Note: Eclipse requires an in-project directory to save launch configurations in.
2019-07-10 19:17:27 +02:00
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