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

18005 commits

Author SHA1 Message Date
skyfpv
19e8bc498f added proper boost mode 2024-04-23 22:40:39 -06:00
skyfpv
fe9561efed unlocked firmware, added boost mode to modes 2024-04-23 15:34:01 -06:00
skyfpv
6a18355d2b latest working stuff 4/21/2024 2024-04-21 23:42:20 -06:00
skyfpv
0de3c38904 updating to latest 2023-11-27 15:41:37 -07:00
skyfpv
ebf871a866 cleanup 2023-06-07 17:17:22 -06:00
skyfpv
900d3f8568 finished updating to 4.4. Finished Boost V1 2023-06-07 17:15:22 -06:00
skyfpv
6318cdede7 attempting to fix possible osd buffer overflow 2023-05-31 15:47:14 -06:00
skyfpv
c55af22bec Merge branch 'sl-4.4.0' of https://github.com/StreetLeagueSpec/betaflight.git; branch 'sl-4.4.0' of https://github.com/StreetLeagueSpec/betaflight into sl-4.4.0 2023-05-29 15:14:47 -06:00
skyfpv
1ed1db4acc 4.4 work and minor bug fixes for afterburner 2023-05-29 14:45:47 -06:00
skyfpv
5b42e11157 Merge remote-tracking branch 'origin/4.4-maintenance' into sl-4.4.0 2023-05-01 09:32:00 -06:00
skyfpv
31cc3c4587 afterburner progress 2023-05-01 09:31:55 -06:00
J Blackman
c27d7ebb0b
Update config.h 2023-04-26 12:54:12 +10:00
Mark Haslinghuis
5fdcfb5bc5
Fix handling of attribute type (#12707) 2023-04-22 11:40:11 +02:00
Steve Evans
93f0a2380e
DSHOT timing improvements (#12709)
DSHOT timing improvements:

If DSHOT telemetry is still being received, wait (12612)
Optimise DSHOT cache management loops (12672)
Send motor data and then immediately decode prior telemetry data for bitbanged DSHOT (12685)
2023-04-22 01:11:36 +02:00
Mark Haslinghuis
aa228ea583
Fix SDC (#12671) 2023-04-13 23:53:28 +02:00
J Blackman
983c04d846
Update version.h 2023-04-06 14:24:08 +10:00
Tdogb
e8d4605b36 add id 2023-04-03 22:19:37 -04:00
SugarK
e43d591b2d
Add separate AAF values for ICM-42605 (#12616)
Co-authored-by: Tobias Bolin <tobias_bolin@hotmail.com>
2023-04-03 16:37:37 +02:00
Hans Christian Olaussen
64f48611aa
Exclude MSP_OSD_CONFIG if USE_OSD not defined (#12513) (#12590) 2023-04-02 11:23:09 +02:00
Hans Christian Olaussen
2c722653e1
4.4.1 Include smartport telemetry for Fport (#12314) (#12572)
Include smartport telemetry for Fport (#12314)
2023-03-26 11:18:39 +02:00
ctzsnooze
2c9b7072c6
Restore DShot Beacon control for 4.4 (#12560)
Restore DShot Beacon control
2023-03-22 12:26:32 +01:00
ctzsnooze
976330000d
DShot zero between beacon commands for 4.4, from 12544 (#12555)
DShot zero between beacon commands from 12544

Make beacon command timing independent of audio beeper
Send DShot zero between beacon commands.
Use cmpTimeUs for time comparisons
2023-03-21 23:34:17 +01:00
J Blackman
904532df1c
[4.4.1] FIX: Blackbox (as applied to 4.5.0) (#12520)
FIX: Blackbox (as applied to 4.5.0)
2023-03-15 20:54:13 +01:00
skyfpv
6f070bbc88 make it easier to switch between locked and unlocked 2023-03-14 01:47:55 -06:00
blckmn
a88e6fc67d FIX: Missing USE_BLACKBOX
(cherry picked from commit 75adc4da1e)
2023-03-11 21:48:10 +11:00
J Blackman
cbf1030fe3
[4.4.1] FIX CONFIG: Adding USE_FLASH to enable where hardware supports (#12499)
FIX CONFIG: Adding USE_FLASH to enable where hardware supports
2023-03-11 10:34:37 +11:00
nerdCopter
dd4805370d
Improve GPS Rescue Pitch smoothing and disarming (#12413) 2023-03-08 16:09:45 +11:00
J Blackman
e156d089b7
[4.4.1] FIX CONFIG: Adding USE_ACC, USE_GYRO and USE_BARO where appropriate. (#12477) 2023-03-08 12:04:12 +11:00
Tdogb
fc39593415 Merge branch 'sl-4.4-v2' into sl-4.4.0 2023-03-06 16:35:36 -05:00
SugarK
ebc3479b6b
[4.4-maintenance] Fix ICM426XX AA filter (#12444) (#12465)
Fix ICM426XX AA filter (#12444)

* Change ICM426XX gyro initialization

- Shut down Acc and Gyro before setting non-GYRO_ODR, ACCEL_ODR, GYRO_FS_SEL, ACCEL_FS_SEL, GYRO_MODE, ACCEL_MODE registers
- Set correct User Bank before writing to registers

* Change ICM426XX GYRO_ACCEL_CONFIG0 to 15 from 14

* Remove unneeded delay commands

Co-authored-by: tbolin <tobias_bolin@hotmail.com>
2023-03-06 21:12:44 +11:00
Hans Christian Olaussen
a6ca76df8a
4.4-maintenance H7 Fix frozen ADC values (#12443)
H7 ADC buffer invalidate cache
2023-03-04 08:33:03 +11:00
Ivan Efimov
9eba513404
[4.4-maintenance] increase FF smoothing max to suit elrs 1000hz link rate (#12426) (#12433) 2023-02-28 12:43:13 +11:00
J Blackman
87031398e0
4.4.1: Latest changes from unified targets, and sdcard build fix. (#12415) 2023-02-28 08:04:26 +11:00
Ivan Efimov
53cd688653
Fix: Renamed USE_LEDSTRIP_64 to USE_LED_STRIP_64 (#12408) 2023-02-24 03:10:19 +01:00
J Blackman
10cae48ed2
4.4.1: Patch from master for undefined USE_ACC and USE_GYRO (#12385) 2023-02-18 12:19:56 +11:00
J Blackman
1e7b7868e9
4.4.1: Adding support for building by config (#12376)
Adding support for config.h (FIX: SPRACING)
2023-02-18 11:00:22 +11:00
J Blackman
74bd426da3
4.4.1: Patch for config.h files (#12380)
Patch for config.h files
2023-02-18 00:41:52 +01:00
tdogb
1fcb206c46 initial commit 2023-02-10 00:08:12 -05:00
Dominic Clifton
cf475e6806
Revert "Fix missing CUSTOM_DEFAULTS for H730/H750 targets. (#12281)" (#12334)
This reverts commit ec20d399c5.
2023-02-09 08:59:09 +11:00
Jan Post
e75d4d9048
Fix SDFT batchSize rounding (#12332) 2023-02-08 15:11:14 +01:00
Dominic Clifton
ba71dfe6d3
BF 4.4.1 rollup 1 (#12306)
* NVIC - Update ELRS and SPI atomic_block usage to use appropriate
priority levels.

* SD - Use SDIO by default if target uses USE_SDCARD_SDIO.
2023-02-07 23:22:16 +01:00
Dominic Clifton
5213bb5871
Fix unified targets that use OctoSPI. (BF4.4.x) (#12307)
OctoSPI and Memory Mapped Flash support (#11825)

* STM32H730/STM32H750 - Fix use of USE_LP_UART1 instead of USE_LPUART1.

* STM32H723 - Prepare for being able to build for using non-internal-flash
config storage.

* STM32H723 - Prepare for using non-default strings.

* STM32H723 - Disable 'use custom defaults' when using USE_EXST.

* STM32H723 - Disable CUSTOM_DEFAULTS_EXTENDED when EXST is used.

* OCTOSPI - Add initialisation code.

* Add support for RAM_CODE.

* STM32H730 - Add support for RAM_CODE via the .ram_code attribute.

* OCTOSPI - Proof-of-concept for disabling/enabling memory mapped mode on
a running system.

NOTE: The HAL libs are compiled into a memory mapped region, and this cannot be used for OctoSPI access when memory mapped mode is disabled.

* OCTOSPI - Drop HAL support after determining that it's not suitable for
the memory mapped flash use-case.

* OCTOSPI - Sometimes, when disabling memory map mode, the abort fails.
Handle this by disabling the OSPI peripheral first and re-enabling it
afterwards.

* SD/FLASH - Update comments regarding possible solutions to the catch-22
issue with SD/SPI/QUADSPI/OCTOSPI pin configurations.

* OCTOSPI - Use device instance directly.

* OCTOSPI - Prepare W25Q flash driver for octospi support.

* OCTOSPI - Add octospi flash detection.

Note: The method to detect flash chips is similar to the method used for
QUADSPI and as such the code was used as a base. However the initial
OCTOSPI implementation doesn't support the non-memory-mapped use-case so
the un-tested code is gated with `USE_OCTOSPI_EXPERIMENTAL`.

The key differences are:
* uses octospi api not quadspi api.
* flash chip clock speeds should not be changed for memory-mapped flash
chips, bootloader already set it correctly.
* only certain flash chips are capable of memory mapped support.

* W25Q - Ensure w25q128fv_readRegister returns 0 if the receive fails.

* OCTOSPI - Implement octoSpiTransmit1LINE, octoSpiReceive1LINE and
octoSpiReceive4LINES.

* OCTOSPI - Specify device from init.

* OCTOSPI - More fixes and work on init.

Current status is that memory mapped mode is disabled and flash chip is
detected, but w25q128fv_detect should not be calling w25q128fv_reset.

* FLASH - Add comment regarding wasted flash space on targets that only
use one bus type for the flash chip.

* FLASH - Split `detect` into `identify` and `configure`.

* OCTOSPI - Extract flashMemoryMappedModeEnable/Disable to separate
methods.

* FLASH - Reduce size of targets that don't support the use of multiple
flash interfaces.

* Single-flash-chip targets usually only support one type of io
interface.
* Without this, compiler warnings are generated in `flashSpiInit` for
targets that only use flash chip drivers that support quadspi or octospi
that don't even use SPI for flash.

* FLASH - Use MMFLASH_CODE/DATA to conditionally move code/data to RAM.

Only targets compiled to support memory mapped flash chips need the some
specific code in RAM.  Otherwise the code/data should be in the normal
linker section.

* FLASH - W25Q Prepare for memory mapped flash usage.

* Wait/Delay functions must work with interrupts disabled.
* Code used for reading/writing must run from RAM.

* OCTOSPI - Implement remaining required methods.

* OCTOSPI - Fixes for earlier code (not last commit).

* FLASH - W25Q update timeout values from Datasheet Rev L.

* FLASH - Prepare flash driver for use when memory mapped flash is
disabled.

* System - Prepare microsISR for use when memory mapped flash is disabled.

* FLASH - Add support for CONFIG_IN_MEMORY_MAPPED_FLASH.

* Flash - Fix incorrect gating on cli flash commands.

When compiling with USE_FLASH_CHIP and without USE_FLASHFS there were
compiler warnings.

* MMFLASH - Fix release-mode build.

* FLASH - Allow SPI pins to be reconfigured when using CONFIG_IN_MEMORY_MAPPED_FLASH.

MMFLASH only works via QuadSPI/OctoSPI peripherals.

* EXST - Disable the 2GB workaround which is now causing a different
error.

The error we get with 'remove-section' enabled is:

"error in private header data: sorry, cannot handle this file".  The
cause of this new error in the objcopy codebase is an out of memory
condition, somehow the 2GB files and this error are related but the root
cause of both is still unknown.

* OCTOSPI - Add support for STM32H723.

* STM32H723 - Add linker scripts for EXST usage.

* NucleoH723ZG - Add build script to demonstrate OCTOSPI and Memory Mapped
flash support.

* FLASH - WUse the size in bits to set the size of the buffer.

* FLASH - Fix typo in W25N driver defines.

Was using W28N instead of W25N

* OCTOSPI - Fix missing semilcolon when compiling without
USE_FLASH_MEMORY_MAPPED.

* OCTPSPI - Fix missing call to 'memoryMappedModeInit'.

* SPRacingH7RF - Add example build script to allow for testing prior to
unified target / cloud-build support.
2023-02-07 23:20:18 +01:00
Dominic Clifton
ec20d399c5
Fix missing CUSTOM_DEFAULTS for H730/H750 targets. (#12281) 2023-02-02 16:34:50 +01:00
Steve Evans
b0b6a37626
Fix max permissible CMS rows and up/down page arrows (#12277) (#12284)
* Fix max permissible CMS rows and up/down page arrows

* For CMS displays of 30 columns or less shrink width of menu to fit

* Fix string overflow

* Use 'v' for down arrow rather than 'V' as it's less ugly as devices without OSD character set can display lower case
2023-02-02 16:05:26 +11:00
Hans Christian Olaussen
4605309d82
Increment EEPROM version for 4.4 (#12242) 2023-01-29 10:18:41 +11:00
J Blackman
0151c30066
Adding Launch Control as standard option. (#12229)
* Adding Launch Control as standard option.
* Adding so it is not present in the CORE_BUILD
* Adding comment
2023-01-25 20:07:15 +11:00
Mark Haslinghuis
2634c3ab37
Remove docs and fix links (#12222) 2023-01-25 19:34:17 +11:00
ykeuter
b1433123c5
fix SITL (#12220)
define USE_PWM_OUTPUT
2023-01-23 13:29:19 +11:00
Jan Post
fb29036ba7
Fix SDFT batch process (#12218)
Fix SDFT batch processing
2023-01-19 15:58:01 +11:00
haslinghuis
e782ab9b28
Fix SITL (#12217) 2023-01-19 15:57:45 +11:00