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

18729 commits

Author SHA1 Message Date
blckmn
f80df5c3d9 PICO: Stub functions for system reboot and IO unused pin init implementation 2025-01-09 04:12:22 +11:00
blckmn
766c7c019b SPI Bus stub functions for RP PICO 2025-01-09 04:10:13 +11:00
blckmn
4648ca7a85 EXTI Stub functions for RP PICO 2025-01-09 04:08:57 +11:00
blckmn
22206eb01b Merge branch 'master' into RP2350 2025-01-09 04:05:56 +11: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
blckmn
4cf0ae8175 Program flash using full range of buffer 2025-01-06 20:34:05 +11:00
blckmn
ed8861e76c Merge branch 'master' into RP2350 2025-01-06 20:17:48 +11: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
blckmn
2563dac5f7 Merge remote-tracking branch 'betaflight/master' into RP2350 2025-01-06 04:52:39 +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
blckmn
bb24508877 Missing defines. Note: requires SPI rework 2025-01-04 18:24:11 +11:00
blckmn
0da446f351 Revert io_def.h changes, placed in pico/io_def_generated.h 2025-01-04 18:09:48 +11:00
Jay Blackman
a81434c693
Remove port "A" reference from IO (#14112) 2025-01-04 15:35:15 +11:00
blckmn
6c283141ac Merge branch 'master' into RP2350 2025-01-04 07:42:29 +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
Jay Blackman
3c9746fdac
Update config_flash.c
Adjusted interrupts being disabled and removed superfluous variable.
2025-01-03 22:43:40 +11:00
Jay Blackman
bb5a38d116
Initial (untested) implementation of config in flash 16kb (#14107) 2025-01-03 22:40:12 +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
Jay Blackman
73a06e9279
Enabling UART0 index for RP2350 (#14119) 2024-12-31 19:21:44 +11:00
blckmn
04a7cc0ea1 Merge remote-tracking branch 'betaflight/master' into RP2350 2024-12-31 19:14:01 +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
Jay Blackman
01d862f803
PICO changes (#14105)
* PICO changes
* Spelling corrected in API v2
* Corrected as per @ledvinap - granted will be generated in future.
* As per @tstibor
* Correction and comment as per @ledvinap
2024-12-26 14:53:27 +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