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

18711 commits

Author SHA1 Message Date
Jay Blackman
c2768d0409
Refactoring motor to simplify implementation on other platforms (#14156) 2025-01-24 18:37:20 +11:00
Git bot (blckmn)
7ed1b4b71f Auto updated submodule references [24-01-2025] 2025-01-24 06:25:06 +00:00
Mark Haslinghuis
6e9e9e39b6
Add make preview and extend CI coverage (#14187)
Add make common
2025-01-23 23:36:36 +01:00
Petr Ledvina
2ced38e28f
GPS - simplify GPS baudrate handling (#14195)
- remove unused gpsBaudRate_e
- remove index from gpsInitData_t
- use gpsInitData for baudrate iteration
2025-01-23 23:07:57 +01:00
Mark Haslinghuis
9db36f66d9
Fix GPS UART representation (status command) (#14193)
Fix GPS UART representation
2025-01-23 23:03:00 +01:00
Stepandrr
ae8d57bb06
FIX: REVISION length not more than 7 symbols (#14151)
* FIX: REVISION length not more than 7 symbols

* FIX: REVISION length changed to 9 symbols

* FIX: Updated GIT_SHORT_REVISION_LENGTH to 9

* Revert "FIX: Updated GIT_SHORT_REVISION_LENGTH to 9"

This reverts commit ec01012e44.

* Deleted REVISION cut

---------

Co-authored-by: s.salov <s.salov@rels.dom>
2025-01-23 22:56:17 +01:00
Jay Blackman
908a347d2f
Refactor SPI pre init to make it generic and usable from io.h (#14174) 2025-01-24 08:17:28 +11:00
Mark Haslinghuis
01af6d13bf
Ignore submodule (#14190) 2025-01-22 17:37:13 +01:00
Git bot (blckmn)
2b6df7aafe Auto updated submodule references [22-01-2025] 2025-01-22 06:25:03 +00:00
Steve Evans
1aa71452fb
By default mark OSD element as rendered in case it's in the off blink state (#14188) (#14189)
* By default render OSD element in a single cycle

* Use return value of osdDrawSingleElement and double check activeElement.rendered
2025-01-21 20:42:42 +00:00
pichim
899ce6731d
Chirp signal generator as flight mode (#13105) 2025-01-21 21:22:35 +11:00
Git bot (blckmn)
cfb4f8fe08 Auto updated submodule references [21-01-2025] 2025-01-21 06:25:04 +00:00
Jay Blackman
5e815ba608
Add ability to specify a config.c file for a config target (#14180)
- adding configTargetPreInit() method to execute code for the config target
2025-01-21 10:58:26 +11:00
Kevin Plaizier
123faebacf
Improve accuracy of dT used to update RPM filter (#14150)
Improve RPM filter accuracy by using the true looprate when updating it
2025-01-20 21:26:52 +01:00
Git bot (blckmn)
98b1b93199 Auto updated submodule references [18-01-2025] 2025-01-18 23:40:31 +00:00
Jay Blackman
b2bafa1a8c
FIX: USE_STDPERIPH_DRIVER incorrectly defined for all targets (legacy) (#14181) 2025-01-19 09:22:37 +11:00
Steve Evans
98283ff279
Tidy up MSP protocol header (#14166) 2025-01-18 13:08:47 +11:00
Jacob Dahl
994b41735f
lis2mdl: Enable OFF_CANC and BDU (#14176) 2025-01-18 07:22:08 +11:00
Mark Haslinghuis
c188a03beb
Fix missing ACCGYRO custom alignment defines (used in config) (#14092) 2025-01-18 06:37:26 +11:00
Git bot (blckmn)
86b6953a5b Auto updated submodule references 2025-01-17 18:31:32 +00:00
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