1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00
Commit graph

18875 commits

Author SHA1 Message Date
Jacob Dahl
b7bd378f9c
h7: sdmmc: add SDIO_USE_PULLUP option for config.h (#14147) 2025-01-13 16:12:05 +01:00
Jacob Dahl
8966558d3e
h7: spi: SPI1 MISO add PG9 as AF option (#14144) 2025-01-13 15:57:05 +01:00
Jay Blackman
c513b102b6
FIX: Invalid references when neither DSHOT nor PWM_OUTPUT is defined. (#14135) 2025-01-12 07:47:22 +11:00
Jay Blackman
07e4b4f1ad
Adding ability to configure USB positive data pin (PA12 is STM specific) (#14141) 2025-01-12 07:45:08 +11:00
Steve Evans
8375e4e002
Leave SPI CPOL/CPHA at default for SD card (#14142) 2025-01-10 23:04:50 +01:00
Jay Blackman
aef3e72157
FIX: Missing USE_DMA conditions (#14139)
* FIX: Missing USE_DMA conditions

* Minor change as per @ledvinap feedback
2025-01-11 06:12:01 +11:00
Jay Blackman
016d5764c8
FIX: RCC is platform specific (#14137)
* FIX: RCC is platform specific

* Renamed to PLATFORM_TRAIT_RCC
2025-01-11 06:10:06 +11:00
Jay Blackman
c91e4214eb
FIX: Adding RP2350B as MCU type and correcting lookup table error (#14138) 2025-01-11 06:01:04 +11:00
Jay Blackman
076d8d20ec
FIX: Makefile such that make CONFIG=config-target works as expected (#14129) 2025-01-10 19:48:44 +11:00
Jay Blackman
4069fde56e
Move STM (and clone) related UART implementation to platform (#14128) 2025-01-10 16:13:15 +11:00
Mark Haslinghuis
51c09efe69
Add gyro and magnetic custom alignment to MSP (#14019)
* Add magnetic dip and alignment to MSP

* Update PG

* Revert inclination addition

* Revert heading units

* space

* Use MSP_SENSOR_ALIGNMENT

* Missed bracket

* Adjust mag_declination range

* Add gyro custom alignment

* Remove precision from declination

* Revert remove precision from declination
2025-01-09 22:41:41 +01:00
Jay Blackman
a8d599e187
FIX: Adding USE_DMA wrapper around those only available with USE_DMA active (#14133)
* FIX: Adding USE_DMA wrapper around those only available with USE_DMA active

* Additional condition

* Renaming to dmaInitRx and dmaInitTx
2025-01-09 20:29:43 +01:00
Jay Blackman
67bb6f88b7
FIX: Adding init for SPIDEV_0 (#14134) 2025-01-08 00:25:34 +01:00
Jay Blackman
4357ca3656
FIX: explicit specification of float (build for RPI) (#14132) 2025-01-08 00:20:49 +01:00
Jay Blackman
b1298262e1
FIX: Flash page size check is STM (or clone) specific (#14130) 2025-01-07 01:27:38 +01:00
Jay Blackman
02432af6fa
Move STM (and clone) related config in flash implementation to platform (#14103) 2025-01-06 19:36:24 +11:00
Jay Blackman
69f8f71b77
Moved IO_GPIOPortIdx to platform (#14127) 2025-01-06 06:01:00 +11:00
Jay Blackman
d82cd5a28a
Move STM (and clone) specific IO initialisation to platform (#14123)
* Move stm (and clone) specific io initialisation to platform

* Removed unused includes and implemented get by tag for SITL

* Update sitl.c

Corrected return value

* Update io_impl.c

Corrected licence file
2025-01-06 04:51:45 +11:00
Jay Blackman
926c21ce7d
Move STM (and clone) related SPI implementation to platform (#14124) 2025-01-06 04:40:36 +11:00
Viacheslav Zhivetyev
60d35fa886
Fixed - reset all PID controller terms when PASSTHRU_MODE is active (#14058)
* [wing] reset all PID controller terms when PASSTHRU_MODE is active

* Update src/main/flight/pid.c

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

* Update src/main/flight/pid.c

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

* Update src/main/flight/pid.c

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

---------

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2025-01-05 04:22:36 +11:00
Mark Haslinghuis
f6985a8bfa
Bump clang version to 18 (#14116) 2025-01-04 00:43:33 +11:00
Ivan Efimov
d6739ed566
Initialize all assigned servos even if some are missing (fix) (#14121) 2025-01-04 00:23:13 +11:00
Jay Blackman
456d9fd4a3
Moving io_def_generated to platform (#14120) 2025-01-04 00:22:25 +11:00
Steve Evans
b1604e8459
AT32F435 SD card support (#14018)
Support either USE_FLASH or USE_SDCARD on AT32F435
2025-01-02 20:04:58 +01:00
Jay Blackman
ee9e349feb
Update actions to ubuntu-latest (#14114)
Merging to ensure completed before change over to runners.
2025-01-01 06:23:51 +11:00
Mark Haslinghuis
38928085f2
Adds missing ACCGYRO defines and remove legacy drivers (#14087) 2025-01-01 06:06:39 +11:00
Ivan Efimov
ef81595f1d
Separate autopilot multirotor from autopilot wing - dummy files for wing (#14108)
* separate autopilot multirotor from autopilot wing - dummy files for wing

* fix for lisence header for new files

* filling empty PG structures with uint8_t dummy
2024-12-30 22:36:33 +01:00
Leo Garcia
2a50634f67
update serTcpOpen declaration to fix compile errors (#14113)
update serTcpopen declaration to fix compile errors
2024-12-29 07:41:32 +11:00
Jay Blackman
31bd403446
Adding support for UART0 (#14094) 2024-12-28 16:55:15 +11:00
Mark Haslinghuis
59e308ae56
Position hold depends on GPS (#14101) 2024-12-25 16:39:04 +11:00
Jay Blackman
b826ce3df9
Ditching default target for make in favour of make all (#14099) 2024-12-24 00:21:34 +01:00
jpmreece
d22d8405c2
LED Dimmer (#13776)
* LED Dimmer

Build with EXTRA_FLAGS=-DUSE_LED_STRIP

Tested on SpeedyBeeF7V3

Added adjrange to update the ledstrip_brightness variable. This allows for easy changing of LEDs without having to connect to the configurator.

* Added Unit Tests, Space to Tab

Added unit tests into rx_controls_unittest.cc. The LED brightness is returned as 50 for testing purposes.

Changed tabs in ledstrip.c & .h and rc_adjustments.c to 4 spaces for coding standards.

* Update src/main/fc/rc_adjustments.h

Missed a tab in rc_adjustments.h

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

* Update src/main/fc/rc_adjustments.c

Removal of empty line

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

* Update rc_adjustments.c

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

* Update src/main/io/ledstrip.c

* Update src/main/io/ledstrip.h

* Update src/test/unit/rc_controls_unittest.cc

---------

Co-authored-by: nerdCopter <56646290+nerdCopter@users.noreply.github.com>
Co-authored-by: Jay Blackman <blckmn@users.noreply.github.com>
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2024-12-23 21:28:43 +01:00
Thomas Stibor
00bcbdd897
Fix typo in Makefile for populating configuration targets (#14100) 2024-12-23 07:29:11 +11:00
Petr Ledvina
ac82d8b998
Refactoring of PR 13050 - support for custom OSD messages from external device (#14097) 2024-12-22 15:44:08 +11:00
Mark Haslinghuis
cab60b6594
Add RANGEFINDER and OPTICALFLOW MT build option (#14042) 2024-12-21 08:34:01 +11:00
Mark Haslinghuis
7f6475d391
STM32H5 timer definitions (#13685) 2024-12-21 08:20:09 +11:00
ahmedsalah52
d244239f39
opticalflow mt sensor added (#14038)
* opticalflow mt sensor added

* set the processedFlow to raw when no rotation

* use sin and cos approximations

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

* Update src/main/sensors/opticalflow.c

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

* refactoring

* not needed anymore

* update

* Update src/main/sensors/opticalflow.c

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

* Update src/main/sensors/opticalflow.c

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

* Update src/main/drivers/rangefinder/rangefinder_lidarmt.c

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

* update

* rm prototype

* clean up

* Update src/main/drivers/opticalflow/opticalflow.h

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

* Update src/main/drivers/opticalflow/opticalflow.h

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

* update flip_y

* Update src/main/drivers/opticalflow/opticalflow.h

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

* Update src/main/drivers/rangefinder/rangefinder_lidarmt.c

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

* Update src/main/drivers/rangefinder/rangefinder_lidarmt.h

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

* Update src/main/sensors/opticalflow.c

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

* Update src/main/sensors/opticalflow.c

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

* Update src/main/sensors/opticalflow.c

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

* rm casting

* update op rotation

---------

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2024-12-21 05:47:36 +11:00
Petr Ledvina
2f21754a69
Improve serial_post.h (#14096) 2024-12-21 05:01:00 +11:00
Jay Blackman
7dec49ce42
Corrected missed USE_ACC logic and some minor cleanup (#14093) 2024-12-20 15:22:22 +01:00
nerdCopter
f27da4ed8d
./src/utils/ trim trailing whitestpaces (#14082) 2024-12-20 17:15:41 +11:00
Steve Evans
b890220197
Don't handle non-MSP characters on VTX MSP port (#14091)
* Don't handle non-MSP characters on VTX MSP port

* Remove check for CLI active on VTX MSP port as it can no longer be enabled

* Only include check for MSP display port if USE_MSP_DISPLAYPORT is defined
2024-12-18 22:37:18 +00:00
Steve Evans
5dc5a8e973
Adjust info/warning status (#14088) 2024-12-16 20:55:23 +01:00
Mark Haslinghuis
aab21384f6
Update cloud build defines (#14080)
Update build_info
2024-12-10 23:38:18 +01:00
Petr Ledvina
0f84c5285d
MAKE - improvement (#14079)
* MAKE - improvement

- specify SDK file for each target pair on linux and macosx
- verify checksum before unpacking downloaded file (curl ignores server
   certificate)
- infer ARM_SDK_DIR from SDK file name
- detect installed SDK, checking that it is newer than downloaded
   file (.installed file in SDK dir)
- fix unzip on windows (doubly nested SDK directory was created)

* MAKE - fix .zip handling

* MAKE - unintended space on windows
2024-12-10 22:35:34 +01:00
nerdCopter
17cef3bba0
PreArm allow Re-Arm (without resetting PreArm AUX) (#14013)
* added prearm_until_first_arm setting

* Update src/main/cli/settings.c

space removed

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

* increased PG revision

* prearm_allow_rearm

* Update src/main/fc/rc_controls.c

Co-authored-by: Jan Post <Rm2k-Freak@web.de>

---------

Co-authored-by: sprv <sprv.nikita@gmail.com>
Co-authored-by: sprv <86803346+niksprv@users.noreply.github.com>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
Co-authored-by: Jan Post <Rm2k-Freak@web.de>
2024-12-10 13:57:04 +01:00
Mark Haslinghuis
9fc83c665f
Adjust BOX3D boxname (#14078) 2024-12-10 10:54:24 +11:00
Mark Haslinghuis
58e3d2a817
Fix PPM feature (#14072) 2024-12-09 15:58:43 +01:00
Petr Ledvina
663427b303
OSD - fix macro arguments (#14074) 2024-12-09 15:52:30 +01:00
Jay Blackman
8ef734408f
Adding 'size optimised' file list validity check (#14063)
* Adding 'size optimised' file list validity check

* NL at EOF
2024-12-09 15:49:26 +01:00
Mark Haslinghuis
2426f43502
Update external defines for ALT / POS HOLD (#14069)
* Update external defines for ALT / POS HOLD

* Update unit test define
2024-12-08 16:23:38 +01:00