1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00
Commit graph

11902 commits

Author SHA1 Message Date
Thorsten Laux
ba2c1e9264 IDLE updates 2019-08-02 13:51:44 +02:00
Thorsten Laux
d474df3149 idle 2019-08-02 13:51:44 +02:00
Thorsten Laux
835a5cac0e rebase
Reduce code by supporting only GCR, fix serial_4way, fix f7 dshot bidir

fix ws and eliminate superfluous buffer

use GCR constant instead of 32

decode optimization

bump 4way prot version mumber

bump if version
2019-08-02 13:49:48 +02:00
Michael Keller
383ba1cd8e
Fix vtx_freq default value when USE_VTX_TABLES is defined (#8637)
Fix vtx_freq default value when USE_VTX_TABLES is defined
2019-08-02 19:09:01 +12:00
Bruce Luckcuck
ad3936de6a Fix CLI vtxtable powervalue output formatting 2019-08-01 19:40:45 -04:00
Bruce Luckcuck
cc93ce060b Also default vtx_band, vtx_channel, vtx_power to 0 if USE_VTX_TABLE is defined 2019-08-01 19:15:54 -04:00
Michael Keller
ae9d41d9f8
Remove stale DMA service function (#8636)
Remove stale DMA service function
2019-08-02 08:41:25 +12:00
jflyper
ff759034f3 Refactor (consolidation and separation of stdperiph and hal) 2019-08-02 04:11:22 +09:00
Kevin Berner
1a09302aca Initial MAMBAF411 Target 2019-08-01 10:48:25 -05:00
Dominic Clifton
c071623a69 SPRACINGH7ZERO - Support I2C4 on motor outputs 5/6. 2019-08-01 15:34:26 +02:00
Dominic Clifton
a66463c8e1 STM32H750 - Fix I2C4 RCC. It's on APB4, not APB1.
* See `RCC_APB4ENR_I2C4EN` in CMSIS stm32h7*.h
2019-08-01 15:34:09 +02:00
Dominic Clifton
2cbd860da0 Move defaults for I2CX_OVERCLOCK to allow compilation without specifying
overclock settings
2019-08-01 15:32:53 +02:00
Michael Keller
3be994a880
Prevent calls to presistent object functions for unsupported MCU (#8633)
Prevent calls to presistent object functions for unsupported MCU
2019-08-01 23:24:41 +12:00
mikeller
ac625bfa55 Add more guards. 2019-08-01 22:25:51 +12:00
jflyper
05759a7134 Remove the artifact 2019-08-01 17:19:28 +09:00
Michael Keller
a16b67b5a4
Merge pull request #8634 from jflyper/bfdev-unified-stream-channel-handling-for-LL-Dshot
DMA Stream/Channel unification on LL-DShot
2019-08-01 19:16:25 +12:00
Michael Keller
52a2b23bbe
Fix default axis values for arbitrary gyro alignment (#8602)
Fix default axis values for arbitrary gyro alignment
2019-08-01 14:31:49 +12:00
Michael Keller
0908ea3fce
[F7] Migration to FW library V1.15.0 (#8626)
[F7] Migration to FW library V1.15.0
2019-08-01 14:31:23 +12:00
Michael Keller
bea0eb7e6b
SPRACINGH7ZERO - STM32H750 400Mhz FC with OSD, Baro & BEC. (#8629)
SPRACINGH7ZERO - STM32H750 400Mhz FC with OSD, Baro & BEC.
2019-08-01 14:28:29 +12:00
Michael Keller
5a71ec3040
Cli command help text typo fixed (#8632)
Cli command help text typo fixed
2019-08-01 14:25:54 +12:00
Bruce Luckcuck
f543daa8ba Fix vtx_freq default value when USE_VTX_TABLES is defined
When a `vtxDevice` was active (like if `USE_VTX_RTC6705` is defined for the target) then the initialization logic would try to look up the frequency based on the band/channel and update the `vtx_freq` setting. The problem is that initially the `vtxtable` is not defined so the frequency lookup fails and returns 0. This resulted in a defaults difference since the default value was 5740 which would have matched the default band and channel if the "standard" bands/channels were set up with `vtxtable`. So instead set the default value to 0 unless legacy built-in frequencies are used (`USE_VTX_TABLES` not defined).
2019-07-31 21:23:18 -04:00
jflyper
1dcf8ad576 Remove stale dma service 2019-08-01 03:28:32 +09:00
jflyper
e6ae7e034f [F7] sdio_f7xx.c: adapt to FW library V1.5.0
These defs are already present in the old library also… Not sure how
they managed to get through without generating errors.
2019-07-31 12:18:47 +09:00
jflyper
a103de784e DMA Stream/Channel unification on LL-DShot 2019-07-31 11:59:02 +09:00
jflyper
4d41c361c4
Merge pull request #8625 from jflyper/bfdev-fix-LL-dshot-to-compile-without-telemetry
Let LL-Dshot build without USE_DSHOT_TELEMETRY option
2019-07-31 11:57:55 +09:00
Dominic Clifton
932f14d3b9
Merge pull request #8628 from hydra/fix-h7-uart-idle-handling
Fix H7 crashing on boot due to #8599
2019-07-31 01:29:21 +02:00
Bruce Luckcuck
e4c357a02b Prevent calls to presistent object functions for unsupported MCU
Fixes for #8619
2019-07-30 10:00:58 -04:00
TheIsotopes
d5f47cce72
comment request
only typo fix
2019-07-30 13:46:25 +02:00
TheIsotopes
5e379529e5
Cli command renamed and typo fixed
can be typed faster ;-)
2019-07-30 12:02:11 +02:00
Dominic Clifton
e1c70033d5 Fix H7 crashing on boot caused by missing change in
38013a8253.
2019-07-29 23:24:16 +02:00
Bruce Luckcuck
3da40f7ec3 Fix default axis values for arbitrary gyro alignment
Prevents clean installs from displaying the sensor alignment as changed values in the `diff`.

Sets the default values for the sensor alignment axes to match the selected sensor alignment. Previously the axis values defaulted to 0 so when the active value was set based on the sensor alignment these values would appear as changes in the `diff` even though they were actually the default values. Corrected the default values to be based on the selected sensor alignment default.
2019-07-29 17:19:46 -04:00
Dominic Clifton
45703e5a52 SPRACINGH7ZERO - STM32H750 400Mhz FC with OSD, Baro & BEC.
Website: http://seriouslypro.com/spracingh7zero
Shop: https://shop.seriouslypro.com/sp-racing-h7-zero

STM32 H7 400Mhz CPU (1MB Ram, 128k flash)
128MByte Flash (for firmware, config and Blackbox logging, 4-bit QuadSPI
not 1-bit SPI)
Single ICM20602 Gyro (SPI, with interrupt signals, 32khz capable)
BMP388 Baro (I2C + interrupt)
OSD (dedicated SPI)
SD Card (4-bit SDIO not 1-bit SPI)
2-6S BEC
8 Motor outputs
6 Serial ports.
Single sided PCB.
Entire PCB side dedicated to solder pads.
2019-07-29 22:20:35 +02:00
Michael Keller
924c40a50d
Clear reset reason also upon button initiated EEPROM reset (#8619)
Clear reset reason also upon button initiated EEPROM reset
2019-07-30 07:29:14 +12:00
jflyper
b724ca6c3a Let LL Dshot to build without USE_DSHOT_TELEMETRY option 2019-07-30 02:45:43 +09:00
Merak RC
bf06a135df Added MERAKRCF405 target and MERAKRCF722 target 2019-07-29 12:03:02 +08:00
Michael Keller
5123e8bb38
Add support for IRC Tramp race lock flag, and extended VTX stat… (#7128)
Add support for IRC Tramp race lock flag, and extended VTX status.
2019-07-29 02:13:26 +12:00
jflyper
b33c671e3d Clear reset reason also upon button initiated EEPROM reset 2019-07-28 22:56:39 +09:00
Michael Keller
3857f6cb75
Correct IMU gyro input to be based on sample loop time rather t… (#8613)
Correct IMU gyro input to be based on sample loop time rather than actual delta time
2019-07-28 11:39:14 +12:00
Michael Keller
06cabd741f
Unify DMA stream and channel handling (#8586)
Unify DMA stream and channel handling
2019-07-28 11:03:46 +12:00
Michael Keller
e00122d88a
Added target variant NUCLEOH743_RAMCONFIG. (#8488)
Added target variant NUCLEOH743_RAMCONFIG.
2019-07-28 10:36:20 +12:00
Michael Keller
93b842c566
[F7] Set DShot DMA buffer attribute to FAST_RAM_ZERO_INIT (#8610)
[F7] Set DShot DMA buffer attribute to FAST_RAM_ZERO_INIT
2019-07-28 10:21:30 +12:00
jflyper
7ddfd7dea6 Unify DMA stream and channel handling 2019-07-27 21:20:34 +09:00
jflyper
e8125e57c9 Set DShot DMA buffer attribute to FAST_RAM_ZERO_INIT
The buffer was originally a part of motorDmaOutput_s structure which resided in the FAST_RAM_ZERO_INIT(DTCM RAM). The buffer was separated as a part of the motor refactor #8534, and wasn’t properly attributed.

In the future, DMA buffer coherence will be maintained by MPU and the DShot buffer will be moved there to save the scarce DTCM resource.
2019-07-27 18:22:23 +09:00
mikeller
1c60776487 Added target variant NUCLEOH743_RAMCONFIG to get CI coverage of 'EXST' changes.
Changing over to be RAM based.

Changes required for MPU configuration service.

Added documentation.
2019-07-27 18:20:05 +12:00
Michael Keller
f6870e4189
MPU configuration service (#8595)
MPU configuration service
2019-07-27 16:06:40 +12:00
Bruce Luckcuck
50ce338390 Correct IMU gyro input to be based on sample loop time rather than actual delta time
The current calculation accumulates gyro data between IMU updates based on the actual time delta betwwn samples. The problem with this is that loop time jitter or delays will decrease the accuracy of the gyro rotational input into the attitude calculation. The sensor samples based on a hardware driven clock that matches the `gyro.targetLooptime`. The sensor captures samples at these intervals regardless of when we read them so the calculation should be based on the duration between samples rather then the duration between processing loops.

Will improve the accuracy of the IMU attitude estimate - particularly in cases of higher CPU load and increased looptime jitter. Bench testing shows reduced drift. Also flight tested and behaved as expected.
2019-07-26 16:32:03 -04:00
jflyper
79b11b9c61 Set DShot DMA buffer attribute to FAST_RAM_ZERO_INIT
The buffer was originally a part of motorDmaOutput_s structure which resided in the FAST_RAM_ZERO_INIT(DTCM RAM). The buffer was separated as a part of the motor refactor #8534, and wasn’t properly attributed.

In the future, DMA buffer coherence will be maintained by MPU and the DShot buffer will be moved there to save the scarce DTCM resource.
2019-07-26 18:02:09 +09:00
Michael Keller
7a84a5cf73
Add uint32 support to the MODE_ARRAY CLI parameter type (#8556)
Add uint32 support to the MODE_ARRAY CLI parameter type
2019-07-25 23:52:48 +12:00
Michael Keller
fc739459fc
Fix BMP388 driver for build without USE_EXTI (#8600)
Fix BMP388 driver for build without USE_EXTI
2019-07-25 08:08:03 +12:00
Michael Keller
ba50e1efcc
Added idle interrupt callback to UART driver (#8599)
Added idle interrupt callback to UART driver
2019-07-25 08:07:37 +12:00