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

18772 commits

Author SHA1 Message Date
Mark Haslinghuis
92c59091ce
Change airborne default (#14271) 2025-03-15 08:27:17 +11:00
Git bot (blckmn)
a732338905 Auto updated submodule references [14-03-2025] 2025-03-14 06:25:03 +00:00
fluke9
f540409768
fix: led strip not working (#14279) (#14286)
* fix: led strip not working (#14279)

* fix: led strip not working reworked (#14279)

* Revert src/platform/STM32/target/STM32F745/target.h

* Revert src/platform/STM32/target/STM32F7X2/target.h

* Fix per review ledvinap

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2025-03-13 19:30:14 +01:00
Git bot (blckmn)
225bb21e9c Auto updated submodule references [13-03-2025] 2025-03-13 06:25:03 +00:00
Mark Haslinghuis
f33e1614ed
Fix typo in accgyro_spi_icm426xx.c (#14290) 2025-03-11 17:07:43 +01:00
Git bot (blckmn)
9e53f4ad5b Auto updated submodule references [06-03-2025] 2025-03-06 06:25:03 +00:00
Petr Ledvina
99e8dd8840
Fix virtualled (#14276) 2025-03-01 17:40:02 +11:00
Git bot (blckmn)
0b4b1123cd Auto updated submodule references [28-02-2025] 2025-02-28 06:25:03 +00:00
crteensy
d8cd6b743b
Properly handle HSI if selected (#14259)
* Properly handle HSI if selected

In some places, PERSISTENT_OBJECT_HSE_VALUE being zero is used to imply that the MCU should be clocked from HSI, but the code doesn't really follow through and results in an invalid clock tree setup.

The proposed changes should fix this.

* Apply suggestions from code review

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

* Update system_stm32g4xx.c

HSI should now be implicitly selected when SYSTEM_HSE_MHZ is defined as 0 or omitted in the target config.

USE_CLOCK_SOURCE_HSI is not necessary.

* Update src/platform/STM32/startup/system_stm32g4xx.c

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

* Update src/platform/STM32/startup/system_stm32g4xx.c

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

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
2025-02-27 13:46:26 +01:00
Git bot (blckmn)
a801aadf9c Auto updated submodule references [27-02-2025] 2025-02-27 06:25:03 +00:00
Jay Blackman
84c11a5009
FIX: PWM motor output stopped working after #14156 (#14280)
FIX: https://github.com/betaflight/betaflight/issues/14265
2025-02-26 17:21:05 +01:00
Git bot (blckmn)
a779ffaff7 Auto updated submodule references [26-02-2025] 2025-02-26 06:25:03 +00:00
Git bot (blckmn)
c80de5c62a Auto updated submodule references [25-02-2025] 2025-02-25 06:25:03 +00:00
Mark Haslinghuis
611ad5907c
Update io_preinit.c (#14273) 2025-02-23 21:56:03 +01:00
Petr Ledvina
6948fb75e9
Blackbox - IMU quaternion - fix case when w is negative (#14275)
quaternion w can ce negative, causing problem with unit quaternion
reconstruction. Send inverted quaternion in negative-w case (q and -q
are identical rotations)
2025-02-22 18:02:57 +01:00
Steve Evans
1359b40ee7
Maintain state for i2c_ev_handler() for each i2c bus (#14268) 2025-02-22 17:17:48 +01:00
Git bot (blckmn)
c91e3d1050 Auto updated submodule references [20-02-2025] 2025-02-20 06:25:03 +00:00
Git bot (blckmn)
df8beeeea8 Auto updated submodule references [19-02-2025] 2025-02-19 06:25:03 +00:00
crteensy
094d36bb6f
STM32G4: Add option to use external 26 MHz clock (#14261) 2025-02-19 06:16:04 +11:00
Git bot (blckmn)
1b36ccc063 Auto updated submodule references [18-02-2025] 2025-02-18 06:25:04 +00:00
kensherman
7789ecafe3
increasing number of msp ports (#14263)
* increasing number of msp ports

* Adding custom define and bumping to 6 ports

* reverting msp ports to allow to be bumped at build time

* Update src/main/msp/msp_serial.h

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

* reset src/config

---------

Co-authored-by: nerdCopter <56646290+nerdCopter@users.noreply.github.com>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2025-02-17 21:30:35 +01:00
Git bot (blckmn)
95b43ec175 Auto updated submodule references [17-02-2025] 2025-02-17 06:25:03 +00:00
Git bot (blckmn)
66ce15c74e Auto updated submodule references [15-02-2025] 2025-02-15 06:25:03 +00:00
Mark Haslinghuis
1db7c1184d
Reduce required motors for MIXER_CUSTOM_AIRPLANE (#14257)
Update CUSTOM_AIRPLANE mixer to require one motor
2025-02-14 16:35:38 +01:00
Mark Haslinghuis
b6cfe2e207
Add SPI_DEVICE_4 to AT32 targets (#14255) 2025-02-14 20:03:28 +11:00
Git bot (blckmn)
eae7e35002 Auto updated submodule references [14-02-2025] 2025-02-14 06:25:04 +00:00
Petr Ledvina
b96c0b69cb
CLI - prevent serial overflow (#14251)
use serialWriteBufBlocking for cli, busy-waiting if TX buffer is full
2025-02-11 15:57:21 +01:00
Git bot (blckmn)
d63726f928 Auto updated submodule references [11-02-2025] 2025-02-11 06:25:04 +00:00
Mark Haslinghuis
6df8d0edda
Fix codestyle (#14245)
Fix codestyle and prevent loop when commandLen is zero
2025-02-10 15:38:25 +01:00
ctzsnooze
86767ba112
Consistent autopilot variable names, use alt_hold_climb_rate (#14136)
* consistent autopilot parameter names

- add colons after each blackbox header line
- change alt_hold_throttle_response to alt_hold_climb_rate
- don't use cfg abbreviation for apConfig() because it is harder to search

* enforce semicolon with do... while (0)

* don't abbreviate autopilotConfig to apConfig

* remove semicolon after break to enforce semicolon at input line ending

* explanatory message

* fix copy and paste errors

* restore local cfg alias in place of autopilotConfig()

* struct name formatting as requested by blckmn

Co-Authored-By: Jay Blackman <blckmn@users.noreply.github.com>

* underscore the CLI names, fix prev commit

Co-Authored-By: Jay Blackman <blckmn@users.noreply.github.com>

* Update src/main/fc/parameter_names.h

* Update src/main/fc/parameter_names.h

---------

Co-authored-by: Jay Blackman <blckmn@users.noreply.github.com>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2025-02-09 23:34:12 +01:00
Git bot (blckmn)
9ef4857eeb Auto updated submodule references [09-02-2025] 2025-02-09 06:25:03 +00:00
Git bot (blckmn)
6d7425bfa3 Auto updated submodule references [08-02-2025] 2025-02-08 06:25:03 +00:00
Git bot (blckmn)
a45f74047b Auto updated submodule references [07-02-2025] 2025-02-07 06:25:04 +00:00
Mark Haslinghuis
c2381fb98f
Make number of rate profiles conditional using define (#14239)
* Revert reducing number of rate profiles

* Add CONTROL_RATE_PROFILE_COUNT to STATUS_EX (msp)

* Update src/main/target/common_pre.h

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

* Update src/test/unit/platform.h

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

---------

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
2025-02-06 22:11:05 +01:00
ke deng
39f82e79df
Change sed search regex to be compatible with BSD sed (#14233)
Change sed search regex to be compatible with BSD sed, # symbol should be escaped.
2025-02-05 22:16:36 +01:00
Mark Haslinghuis
54cee62699
Fix opticalflow detection (msp) (#14241)
* Fix opticalflow detection (msp)

* Add opticalflow to detected sensors in MSP_STATUS_EX
2025-02-05 21:12:15 +01:00
Git bot (blckmn)
caa8935e61 Auto updated submodule references [05-02-2025] 2025-02-05 06:25:04 +00:00
Jacob Dahl
896bf03b4e
lis2mdl: fix read (#14227)
* lis2mdl: revert reading status register, use measure/collect paradigm

* Update src/main/drivers/compass/compass_lis2mdl.c

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

* fix typo

* fixed borked logic

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2025-02-04 20:00:11 +01:00
Git bot (blckmn)
f2e9dac322 Auto updated submodule references [04-02-2025] 2025-02-04 06:25:05 +00:00
Mark Haslinghuis
bde342c8cb
Fix PG ID and corruption in MSP_SET_SENSOR_CONFIG (#14230)
* Fix PG ID

* Fix corruption in MSP_SET_SENSOR_CONFIG

* No need to specify ammount of bytes remaining

* Update after review from @ledvinap

* Remove unused PG_BETAFLIGHT_END
2025-02-03 12:07:44 +01:00
Petr Ledvina
e7f0486ebe
fix compilation without ACC (#14218)
* fix compilation without ACC

- compilatiopn may fail with cryptic message when no ACC is
selected (unused variable `dev`). Mark dev as unused
- MPU6500 is handled differently than all other accs (it is only
driver that adds case labels)
- also make dev UNUSED for gyro

* Update src/main/sensors/acceleration_init.c

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2025-02-01 22:45:21 +01:00
Jeff Haynes
79ecc1ac74
Fix MSP memory issue (#14221)
* fixes #14219

* Update src/main/msp/msp.c

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

---------

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
2025-02-01 21:59:24 +01:00
Git bot (blckmn)
7cc8ee9a54 Auto updated submodule references [01-02-2025] 2025-02-01 06:25:03 +00:00
Jay Blackman
3dba5e65e4
FIX: AT32 not reading ESC (#14220) 2025-01-31 06:54:23 +11:00
blckmn
bfea69a04f STM32H5: adding MCU_TYPE 2025-01-30 20:33:37 +11:00
Jay Blackman
cd84e10fa5
FIX: Serial ESC communication when using digital protocols (#14214)
* FIX: Serial ESC communication when using digital protocols

* Fix error following rebase, and amending based on comments from @ledvinap
2025-01-29 14:49:11 +01:00
Petr Ledvina
b277364b2c
Refactor missing prototypes 2 (#14170) 2025-01-29 06:20:12 +11:00
Git bot (blckmn)
25f65cbc01 Auto updated submodule references [28-01-2025] 2025-01-28 06:25:04 +00:00
Jay Blackman
2d63010dc8
Remove redundant SITL ioPortDef_s array definition (#14202)
* Remove redundant SITL ioPortDef_s array definition

* Minor cleanup of some logic where SIMULATOR is in ./src/main

* Updated based on feedback from @ledvinap

* Reducing scope as per @ledvinap

* Fix unit test

* Removing serial port avoidance in totality (unused).

TODO: Remove PWM/PPM radio inputs in another PR.
2025-01-28 11:37:57 +11:00
Mark Haslinghuis
c6a891e57e
Fix GYRO_CLKIN (#14213)
* Fix GYRO_CLKIN

* 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-01-28 01:32:08 +01:00