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

18841 commits

Author SHA1 Message Date
Petr Ledvina
9168569d90
config submodule - follow master (#14175) 2025-01-18 04:34:57 +11:00
Jay Blackman
cec5d00bbf
Remove MCU name table from CLI (rely on build info), add MCU info MSP2 command (#14148) 2025-01-18 04:17:57 +11:00
Mark Haslinghuis
6d5ed84f96
Flip FM priority for ALTH / POSH (OSD, CRSF, LTM) (#14165)
Flip FM priority for ALTH / POSH
2025-01-17 17:26:21 +01:00
Mark Haslinghuis
578ddd16ce
Refactor compass align defines (#14159)
* Remove unused compass align defines

* Use ALIGN_DEFAULT

* Use single define for custom alignment

* Unify custom alignment
2025-01-17 12:38:09 +01:00
Jay Blackman
d8bdb23e9c
Fix license header for files in AT and APM directories (#14162) 2025-01-17 20:55:04 +11:00
Petr Ledvina
ca72f2724e
AT32 - invalid names of timer IRQ handlers (#14172) 2025-01-17 07:22:14 +11:00
Petr Ledvina
3a2ed13ab0
Serial - BUGFIX - USART10 instead of UART10 (#14171) 2025-01-17 07:16:49 +11:00
Jacob Dahl
83beeafb0b
h7: sdio: allow custom clock divider (#14167)
* add SDIO_CLOCK_DIV define to allow compatibility with a wide range of SD cards

* Update src/platform/STM32/sdio_h7xx.c

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

---------

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
2025-01-16 21:16:05 +01:00
Petr Ledvina
892da2d46e
Add betaflight/config as submodule (#14158) 2025-01-17 05:14:43 +11:00
Steve Evans
701ffb95d8
Fix STM32G4 SPI2/SPI3 busses running at double intended clock rate (#14160) 2025-01-15 21:34:28 +01:00
Vladimir Demidov
bdd2a2863d
The imitation of GPS is added for SITL (#14131)
* virtual gps module is added

* USE_VIRTUAL_GPS definition is added to sitl/target.h

* Virtual GPS using are added into sitl and gps modules

* Added settings values for lat, lon, alt, speed, speed3D, course in SITL

* setVirtualGPS function parameters are changed to double

* Code style improvement

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

* code style improvement: undue space symbol deleted

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

* Code style improvement

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

* Code style improvement

* The getVirtualGPS() function declarations is edited

* getVirtualGPS() functions declaration improvement

* Code style improvement

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

* define USE_VIRTUAL_GPS is removed from sitl/target.h

* Revert "define USE_VIRTUAL_GPS is removed from sitl/target.h"

This reverts commit 2e610339c4.

* virtual gps for SITL is made as special GPS_VIRTUAL provider

* Code style improvement. The LF code symbol is added

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

* the license is changed

* The license is edited in gps_virtual.c

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

* The license is edited in gps_virtual.h

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

* Code style improvement

* Virtual gps provider work improvement

* Code style improvement

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

* Code style improvement

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

* Code refactoring in io/gps.c

* SITL define issue is resolved

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

* Extra line is removed

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

* The VIRTUAL option is added into cli looktable

* switch case tab alignment refactoring in io\gps.c

* wrong indent resolved

* bugfix NMEA and UBLOX GPS mode for SITL (SIMULATOR_BUILD) builds target

---------

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2025-01-14 22:42:58 +01:00
Jacob Dahl
029f2eea81
mag: lis2mdl: fix axes (#14155)
* mag: lis2mdl: fix axes from LH to RH, match LIS3MDL axes

* fix spelling

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

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2025-01-14 22:36:34 +01:00
Jacob Dahl
7a44f1bdce
Add IIM42653 IMU support (#14095)
* drivers: accgyro: iim42653 IMU support

* reorder accgyro enums, update comment about IIM42653

* remove comma after VIRTUAL in enum
2025-01-14 22:11:25 +01:00
Jacob Dahl
4a6e3bbe06
lis2mdl: fix align define typo (#14154) 2025-01-14 20:38:37 +01:00
Steve Evans
2163e44df3
Don't waste time displaying an empty OSD string (#14152) 2025-01-14 13:06:22 +00:00
Jacob Dahl
889aa9f9da
h7: sdmmc: add PG11 for SDIO_D2_PIN (#14146)
h7: sdmmc: add AF options
2025-01-13 17:35:51 +01:00
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