1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-12 19:10:32 +03:00
Commit graph

18899 commits

Author SHA1 Message Date
ke deng
46c73e70ba
Update STM32F4 DMA-Timer mapping comments for datasheet compliance (#14492) 2025-07-03 02:30:19 +10:00
Kevin Plaizier
0d94108068
Update the google olc code to not have compiler warnings (#14484)
* Update the google olc code to not have compiler warnings

* With newer BF updates (double) is no longer needed in olc.c
2025-06-30 19:18:29 +02:00
mjs1441
a1b8ad17d0
Move beeper pwm functions to platform. (#14478) 2025-06-30 20:57:16 +10:00
Steve Evans
c74787ea98
Fix ICM426XX_RA_DEVICE_CONFIG (#14487) 2025-06-30 08:46:55 +02:00
Git bot (blckmn)
67de7fd41a Auto updated submodule references [30-06-2025] 2025-06-30 06:25:03 +00:00
Git bot (blckmn)
fd0fd25ef1 Auto updated submodule references [27-06-2025] 2025-06-27 06:25:02 +00:00
Git bot (blckmn)
e2dba8f080 Auto updated submodule references [26-06-2025] 2025-06-26 06:25:03 +00:00
mjs1441
7abb14335d
Fix uninitialised loop variable in msp.c (#14479) 2025-06-26 00:49:34 +02:00
Jay Blackman
0d0c00f341
REFACTOR: Adding DMA_FIRST_HANDLER (#14474)
* REFACTOR: Adding DMA_FIRST_HANDLER

 dmaIdentifier_e could be zero based in the future and align to descriptor array index directly

Also removed unused DMA_INPUT_STRING

* Removed magic number following code rabbit review
2025-06-26 07:34:29 +10:00
Git bot (blckmn)
35dd55f6d7 Auto updated submodule references [24-06-2025] 2025-06-24 06:25:03 +00:00
Kevin Plaizier
078ffafec1
Add 3+ IMU support (Gyro Fusion) (#14383)
* Allow for 3 gyros to be fused at once.

* Handle the case where no GYRO_COUNT is defined

* Fix accel init bug

* Fix bugs found by AI

* Fix compile time assert message

* Move to picking which IMU you want to enable, allow IMU that have the same scale and looprate to run together even if they aren't identical IMU.

* Fully support 8 IMU

* Fix suggestions, except for MSP all suggestions

* Fix bugs found by AI

* Update gyro_init

* Fix unit tests (feels wrong though)

* Allow MSP to update all gyro alignment

* resolve comments

* Only auto set up to 4 gyros in a config.

* Update MSP implementation

* Fix divide by 0 error

* Update src/main/target/common_post.h

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>

* Handle case where gyro 1 does not exist

* Fix 426XX driver

* fix = logic in if statement

* Update src/main/msp/msp.c

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>

* Update src/main/drivers/accgyro/accgyro_spi_icm426xx.c

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>

* Apply ledvinap suggestions

* Fix detectedSensors initialization

* fix getGyroDetectedFlags

* Automatically handle GYRO_COUNT for up to 4 IMU

* better handle unit tests

* Backwards compatible with older config.h files

* Update src/main/sensors/gyro_init.c

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>

* Update src/main/target/common_pre.h

Co-authored-by: nerdCopter <56646290+nerdCopter@users.noreply.github.com>

* Update src/main/sensors/gyro_init.c

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>

* Update src/main/sensors/gyro.c

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>

* This needs to be the case or unit tests fail, without this we cannot choose default gyro either.

* ledvinap suggestions

* whitespace

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
Co-authored-by: nerdCopter <56646290+nerdCopter@users.noreply.github.com>
2025-06-23 21:35:11 +02:00
Lukas Lendvorsky
3370752442
Disable entering CMS menu when armed (#14470) 2025-06-23 02:15:28 +02:00
Jay Blackman
f45c5c5355
REFACTOR: More platform specific defines moved to platform (#14471) 2025-06-23 10:07:49 +10:00
Jay Blackman
cb6fc5aabd
REFACTOR: Removing platform specific defines from init.c (#14463)
* REFACTOR: Removing platform specific defines from init.c

* Further MCO improvements

* Adding default
2025-06-22 20:45:50 +10:00
mjs1441
3ab8931a71
Move serial_uart_pinconfig.c to platform. (#14462) 2025-06-22 03:27:01 +10:00
Git bot (blckmn)
82b18e5c48 Auto updated submodule references [20-06-2025] 2025-06-20 06:25:03 +00:00
mjs1441
2c378e96a0
CLI allow for DEFIO_PORT_PINS pins per port. (#14460) 2025-06-19 05:48:31 +10:00
Mark Haslinghuis
c56c350f29
Remove duplicate source file (#14454) 2025-06-19 04:54:50 +10:00
Jay Blackman
7fed816cb3
Removing -fsingle-precision-constant (#14444)
* Removing -fsingle-precision-constant

This is so that -Wdouble-promotion raises a warning as it should.

* Adding -Wunsuffixed-float-constants

* Not ideal.

* Moving to a named constant

* Named constant update

* Using M_PIf

* Updated following feedback from @ledvinap
2025-06-17 20:45:47 +02:00
Eric Katzfey
2f9ee19cbf
Added MAYBE_UNUSED to get rid of compiler warning (#14455)
Added UNUSED to get rid of compiler warning
2025-06-17 16:21:09 +02:00
Git bot (blckmn)
881db7fa68 Auto updated submodule references [17-06-2025] 2025-06-17 06:25:02 +00:00
Eric Katzfey
83f9de4247
Remove duplicate files from source.mk (#14448) 2025-06-16 13:21:25 +10:00
Eric Katzfey
a94083e77d
Removed extraneous parentheses to resolve compiler warning (#14441) 2025-06-15 04:24:31 +10:00
mjs1441
c3fe02be20
Fix misplaced #else/#endif in accgyro_spi_icm456xx.c (#14445) 2025-06-15 04:22:31 +10:00
Jay Blackman
0e2faff6dc
i2c changes required for I2CDEV_0 usage (#14443)
* i2c changes required for I2CDEV_0 usage

* Corrected offsets
2025-06-13 23:16:49 +02:00
Mark Haslinghuis
6c07efce27
Remove unused rangefinder defines (#14429)
Cleanup
2025-06-11 17:11:16 +10:00
Jay Blackman
4769c2fcdf
PICO: Adding RP2350A MCU (#14437)
- allow for provision of libc
- correction for unused function in msp
2025-06-11 17:10:44 +10:00
mjs1441
a03ff788ae
Move bus_i2c_config.c to platform (#14439)
* Move bus_i2c_config.c to platform to allow different PICO implementation.
* Rename bus_i2c_config.c -> bus_i2c_pinconfig.c and i2cHardwareConfigure() -> i2cPinConfigure()
2025-06-11 17:10:03 +10:00
Mark Haslinghuis
ec91238cd8
Add support for IIM42652 (#14424) 2025-06-11 01:47:01 +02:00
Jay Blackman
1b1648d135
APM: Formatting changes for cleanup (#14431)
* APM: Formatting changes for cleanup

* Formatting inconsistency

* Missed in first round

* Adjusted as per @ledvinap
2025-06-10 19:37:03 +10:00
Git bot (blckmn)
e3267189cc Auto updated submodule references [10-06-2025] 2025-06-10 06:25:03 +00:00
Git bot (blckmn)
e55aa12e6d Auto updated submodule references [09-06-2025] 2025-06-09 06:25:03 +00:00
Jay Blackman
3a70ece364
REFACTOR: missed trait defines (#14435) 2025-06-08 08:44:11 +10:00
Jay Blackman
0bb1254ee8
Move RCC from drivers to platform (#14430)
* Move RCC from drivers to platform

* Extra line removed

* Suggestion from code rabbit

* Remove else and require explicit
2025-06-07 09:41:37 +10:00
Jay Blackman
4853ec7b8a
Adjusting SPI traits inline with recent i2c updates (#14428) 2025-06-06 18:16:40 +10:00
Git bot (blckmn)
0f29410242 Auto updated submodule references [05-06-2025] 2025-06-05 06:25:03 +00:00
Jay Blackman
31887f84b1
PICO: Preparing for I2C device using I2C0 (#14422) 2025-06-05 10:28:31 +10:00
mjs1441
8853356e71
Allow for builds with certain features disabled. (#14420)
* Allow for builds with certain features disabled.

Fix build for when the following are disabled:
 USE_DMA
 USE_DSHOT_TELEMETRY
 USE_SERIAL_PASSTHROUGH

* Tweak #ifdef / UNUSED as per code review.
2025-06-04 16:39:45 +02:00
Git bot (blckmn)
f4786d1569 Auto updated submodule references [04-06-2025] 2025-06-04 06:25:03 +00:00
Jay Blackman
1dcc611388
PICO: Makefile uf2 support using picotool (#14402)
* Adding picotool build recipe in makefiles.

* Use semaphore in directory for default goal recipe for target

* Suggestions from coderabbitai

* Further coderabbit suggestions

* Wrong case

* Minor change to improve logic

* Further improvements.

- submodules replaced with specific submodule for pico_sdk (to avoid all developers needing this)

* Removing need for remote on git submodule update for configs, as we have the commit occurring daily.

- made sure config also build uf2

* Simplified firmware output selection for target

* Moved UF2 outside of EXST

* Missed two remnants of HEX_TARGETS

* Adding check for target

* As target is known default output can be set in platform mk file or target mk file

 - no need for file indicator (i.e. .exe or .uf2)

* Update config.mk for less verbosity
2025-06-01 04:53:54 +10:00
Mark Haslinghuis
f26efcc622
Fix ICM40609D reset register (#14415) 2025-05-31 11:38:35 +02:00
Git bot (blckmn)
5f539935ea Auto updated submodule references [31-05-2025] 2025-05-31 06:25:03 +00:00
Jay Blackman
98582c0c18
Removing PICO directory, to be reinstated from RP2350 branch (#14413) 2025-05-31 13:35:39 +10:00
Steve Evans
62dd5f6e4c
Add missing OCTOX8P definition (#14418) 2025-05-30 21:55:04 +02:00
Mark Haslinghuis
2d81c87927
Improve 426xx detection time using soft reset (#14414)
* Improve 426xx detection using softreset

* Update src/main/drivers/accgyro/accgyro_spi_icm426xx.c

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>

* Update src/main/drivers/accgyro/accgyro_spi_icm426xx.c

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>

---------

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
2025-05-30 21:47:07 +02:00
Petr Ledvina
31e5644b56
rangefinderTF refactor + add TF-Nova (#14379)
* Add rangefinder TF-Nova

* fix

* Return comments. Removed spaces

* Removed invalid command. Expanded range

* tfmini and tf02 united command for 100hz sampling

* add aray and enum

* add array and enum

* RANGEFINDER - reafactor lidartf

- use info array
- rename some functions
- init as for lidarMT
- config lidar on initialization (functional change)

* RANGEFINDER - common TF detection using rangefinderTYpe

* prevent too frequent lidar reconf

suggested by @coderabbitai

* trace errors in debug

* fix tfFrame length

@coderabbitai

* update public header

@coderabbitai

* Fix problems from upstream merge

* RAngefinder - minor cleanup

---------

Co-authored-by: LarryKarhu <advlazeris@gmail.com>
2025-05-30 18:54:54 +02:00
Git bot (blckmn)
6b3bdef6fd Auto updated submodule references [30-05-2025] 2025-05-30 06:25:03 +00:00
Git bot (blckmn)
8fe88d4f44 Auto updated submodule references [28-05-2025] 2025-05-28 06:25:03 +00:00
Steve Evans
66e19f9e27
Ensure that crash flip behaviour is consistent on every arm attempt (#14410) 2025-05-28 14:59:45 +10:00
mjs1441
e74b362341
Platform-dependent IO_GPIO.. functions, IO tags allow single port, more pins. (#14407) 2025-05-28 14:57:46 +10:00