1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-12 19:10:32 +03:00
Commit graph

18841 commits

Author SHA1 Message Date
blckmn
1cda28e8d7 Use semaphore in directory for default goal recipe for target 2025-05-23 18:52:07 +10:00
blckmn
f26ae0ef92 Adding picotool build recipe in makefiles. 2025-05-23 18:44:43 +10:00
Mark Haslinghuis
aa8701ef87
Fix inevitable timer overflow (#14374)
* Fix beacon timer overflow

* fix possible overflow in rc_stats

* fix possible overflow in mixer.c

* fix possible overflow in osd.c

* Update src/main/osd/osd_warnings.c

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

* Update src/main/osd/osd_warnings.c

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

* Update src/main/rx/rc_stats.c

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

* fix typo

* Update src/main/osd/osd.c

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

---------

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
2025-05-22 00:12:24 +02:00
Eric Katzfey
b03b57bd90
Added missing GCC diagnostic push pragma (#14397)
Replaced faulty #pragma GCC diagnostic ignored "-Wunused-function" with the more elegant MAYBE_UNUSED macro
2025-05-21 15:53:43 +02:00
Eric Katzfey
51c8296f25
Added float specifier to literal to prevent compile error (#14396) 2025-05-21 13:48:36 +02:00
Git bot (blckmn)
6c127426bd Auto updated submodule references [21-05-2025] 2025-05-21 06:25:03 +00:00
Eric Katzfey
4c9c8106c8
Changed logical OR to bitwise OR in register value definitions (#14395)
for icm426xx SPI driver. Also fixed the incorrect bit setting for one
of the definitions
2025-05-21 00:39:54 +02:00
Git bot (blckmn)
0679832760 Auto updated submodule references [19-05-2025] 2025-05-19 06:25:03 +00:00
Git bot (blckmn)
8950483a6a Auto updated submodule references [18-05-2025] 2025-05-18 06:25:02 +00:00
Jay Blackman
45f311b3c1
Delete .github/workflows/nightly.yml (#14392) 2025-05-18 13:26:14 +10:00
heronprecision-1
7ef4e092c9
Increase the PINIO Limit to 8 (#14378)
* awful but it does it

* increased pinio limit to 8

* reverted erroneously modified files

* updated piniobox.c to mirror pinio changes

* updated array size

* Update src/main/pg/pinio.c

Conditional pinioN if greater than 4.

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

* Update src/main/pg/pinio.c

conditionally assign more pinio boxes if more than 4

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

* Update pinio.h

revert to default of 4 pinio pins

* Update src/main/pg/piniobox.c

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

---------

Co-authored-by: Anonymous <user@example.com>
Co-authored-by: Anonymous <email@address.example>
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
2025-05-17 22:10:11 +02:00
Jay Blackman
8f3c02f403
Update .coderabbit.yaml due to invalid parameter (#14393) 2025-05-17 20:49:12 +10:00
Jay Blackman
aa9fb836bb
Create .coderabbit.yaml (#14390) 2025-05-17 08:59:06 +10:00
Mark Haslinghuis
7d88e7d27f
Fix osd_esc_rpm_alarm (#14361)
* Fix osd_esc_rpm_alarm

* Should be >= ???

* Add edt condition to pass

* Revert 349
2025-05-16 06:51:29 +10:00
mjs1441
b845d6dfd8
Add SYS_INCLUDE_DIRS to top level Makefile. (#14388)
Add directories in $(SYS_INCLUDE_DIRS) to the search path via -isystem.

This allows a workaround for https://github.com/raspberrypi/pico-sdk/issues/2451 by
using system headers, which are more tolerant of macro redefinitions.

Co-authored-by: Matthew Selby <matthewjselby@aol.com>
2025-05-16 06:11:29 +10:00
mjs1441
144314b820
Remove #ifdef USE_TIMER from motorConfig reset function. (#14389) 2025-05-16 03:39:59 +10:00
Git bot (blckmn)
ad0c3ef97f Auto updated submodule references [15-05-2025] 2025-05-15 06:25:03 +00:00
mjs1441
f7c8b3a776
Add support for SPI_DEVICE_0 (#14384) 2025-05-14 04:38:35 +10:00
mjs1441
a98645b44a
Fix compiler errors if you remove -flto=auto from standard build flags (#14381) 2025-05-14 04:35:05 +10:00
hamza özkan
0136c5a54c
Update pwm_output_hw.c (#14385) 2025-05-14 04:30:14 +10:00
Petr Ledvina
f612b28a86
Use opaque struct to define linker symbols for eeprom (#14382)
This way code must be explicit when using linker-defined memory.
2025-05-13 12:02:28 +02:00
Leo Garcia
37c921cdf0
fix format overflow in blackboxVirtualBeginLog (#14373)
* cast largestLogFileNumber to 16bits to prevent format overflow

* Update src/main/blackbox/blackbox_virtual.c

remove uint16 cast

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

* Update src/main/blackbox/blackbox_virtual.c

use snprintf instead of strlen

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

---------

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
2025-05-12 19:34:57 +02:00
Git bot (blckmn)
32a7fbef5d Auto updated submodule references [10-05-2025] 2025-05-10 06:25:03 +00:00
Marc Frank
6377188324
throttle lookup table increase size, fix linear interpolation and improve bezier interpolation logic (#14356)
* throttle lookup table increase size, fix linear interpolation and improve bezier interpolation logic

* Refactor quadraticBezier function to calculate y-coordinate from x-coordinate

* Update src/main/fc/rc.c

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

* Update src/main/fc/rc.c

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

* Update src/main/fc/rc.c

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

* revert comment strip

* Update src/main/fc/rc.c

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

* add handling of negative index in rcLookupThrottle function

* refine comments in quadraticBezier function for clarity

* Update src/main/fc/rc.c

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

* revert control point movement to 4.5 method

* Update src/main/fc/rc.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>
Co-authored-by: nerdCopter <56646290+nerdCopter@users.noreply.github.com>
2025-05-09 22:33:36 +02:00
Git bot (blckmn)
43965b7de7 Auto updated submodule references [08-05-2025] 2025-05-08 06:25:03 +00:00
Git bot (blckmn)
26f7acfef8 Auto updated submodule references [06-05-2025] 2025-05-06 06:25:03 +00:00
Git bot (blckmn)
696c90ba0f Auto updated submodule references [05-05-2025] 2025-05-05 06:25:03 +00:00
Mark Haslinghuis
8e40eed806
Fix turtle mode motor direction on rearm (#14362)
* Fix turtle mode direction on rearm

* Set motor direction on disarm too

* Refactor per review ledvinap

* remove added space

* update logic
2025-04-30 01:39:23 +02:00
Mark Haslinghuis
5b82a6aa2d
Fix ATRN (#14360)
* Fix ATRN

- Fixes: #14359

* Fix typo
2025-04-29 14:43:18 +10:00
Git bot (blckmn)
948dfd79dd Auto updated submodule references [26-04-2025] 2025-04-26 06:25:02 +00:00
Git bot (blckmn)
f1923d3498 Auto updated submodule references [25-04-2025] 2025-04-25 06:26:19 +00:00
Git bot (blckmn)
5a6d13c1a6 Auto updated submodule references [24-04-2025] 2025-04-24 06:25:02 +00:00
mjs1441
d6966be79f
REFACTOR: SPI segment handling (#14345)
* Move common code (spiIrqHandler) from src/platform/common/stm32/ to src/main/drivers/bus_spi.c
* Move repeated code from inside spiSequenceStart to bus_spi.c as spiProcessSegmentsDMA, spiProcessSegmentsPolled
* spiInternalReadWriteBufPolled becomes non-static

Co-authored-by: Matthew Selby <matthewjselby@aol.com>
2025-04-23 18:27:44 +02:00
Mark Haslinghuis
eb7814d197
Add variant for RTC OSD element (#14344)
* Add variant for RTC OSD element

* Update src/main/osd/osd_elements.c

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

* Be more explicit :)

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

---------

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
2025-04-23 12:04:19 +02:00
Git bot (blckmn)
66c33f4c65 Auto updated submodule references [23-04-2025] 2025-04-23 06:25:03 +00:00
Git bot (blckmn)
1abe5f93ea Auto updated submodule references [22-04-2025] 2025-04-22 06:25:03 +00:00
Jay Blackman
d6219861fb
REFACTOR: Remove unused drivers/dma.c file (#14346)
Remove unused drivers/dma.c file
2025-04-19 12:31:15 +02:00
Git bot (blckmn)
8657a6ae12 Auto updated submodule references [18-04-2025] 2025-04-18 06:25:02 +00:00
Git bot (blckmn)
22f8b1b2b3 Auto updated submodule references [17-04-2025] 2025-04-17 06:25:03 +00:00
Git bot (blckmn)
f336df392e Auto updated submodule references [16-04-2025] 2025-04-16 06:25:03 +00:00
Alex Klimaj
9eb7d1920b
STM32H7 add UART4 pins (#14341)
* stm32h7: add uart4 ph13 and ph14

* stm32h7: increase UARTHARDWARE_MAX_PINS

* Update src/platform/STM32/serial_uart_stm32h7xx.c

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

* Update src/platform/STM32/serial_uart_stm32h7xx.c

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

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
2025-04-15 12:15:15 +02:00
Git bot (blckmn)
9f18593be7 Auto updated submodule references [15-04-2025] 2025-04-15 06:25:03 +00:00
Git bot (blckmn)
2b1566b2f0 Auto updated submodule references [12-04-2025] 2025-04-12 06:25:03 +00:00
Steve Evans
9e73f08e34
Properly handle USE_BARO_LPS22DF (#14340) 2025-04-12 08:00:03 +02:00
Thisas
38007f8b59
Fix SITL for MacOS M1 (#14284)
* Fix SITL for MacOS M1

* move macos m1 SITL fix into SITL.mk and extract warnings flags from cflags into WARNING_FLAGS varible

* add back -Werror

* add warning about potencial issues with PG on SITL builds for MacOS apple silicon

* removed override and added CFLAGS_DISABLED and OPTIMISATION_DISABLED

* change OPTIMISATION_DISABLED to OPTIMISATIONS_DISABLED and also use it for CC_DEBUG_OPTIMISATION

* fix building useless hex

* copy instead of move

* clean new artifacts from SITL

* fix clean

* fix issue where in SITL_STATIC will build properly

* building static does not seem to work on macos

* building static does not seem to work on macos

* building static is not possible on macos

* fix issue where make TARGET=SITL still builds hex

* Move everything to CFLAGS_DISABLED and use else if chaning

* add SITL to CI_TARGETS

* add rev to SITL

* add changes suggested by ledvinap

* Update Makefile

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

* Update src/platform/SIMULATOR/mk/SITL.mk

* Add EXE_TARGET_REVISION

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2025-04-11 20:13:09 +02:00
Git bot (blckmn)
21dec1d764 Auto updated submodule references [11-04-2025] 2025-04-11 06:25:03 +00:00
hhhh hgfh
b2c939e899
Add Launch Timer (#14332)
* feat: add launch timer to osd timer type

* fix: fix code style

* Update src/main/osd/osd.c

fix: code style

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

* Update src/main/osd/osd.c

fix: adding a comma after "LAUNCH TIME"

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

* Update src/main/osd/osd.c

fix: added free space

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

* Update src/main/osd/osd.h

fix: added free space after declaration

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

* Update src/main/osd/osd.c

fix: added timer reset when switching to LAUNCH mode again

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

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
Co-authored-by: Jan Post <Rm2k-Freak@web.de>
2025-04-10 23:31:06 +02:00
Marc Frank
4ae22e9f8e
hover point throttle curve adjustment (#14229)
* hover point throttle curve adjustment

* Update src/main/fc/rc.c

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

* Update src/main/fc/rc.c

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

* Update src/main/fc/rc.c

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

* refactor lookup calculation and move hover to end of controlRateConfig_s struct

* moved sbufReadU8 to the bottom

* added sbufBytesRemaining check

* update controlRateProfile version from 6 to 7

* moved thrHover8 declaration position

* revert variable declaration position change

* fixed tests

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
2025-04-10 14:39:36 +02:00
LiuYongNan
fd3a131797
fix rtc6705 drive (#14296)
* fix rtc6705 drive

* Update rt6705 request suggestion
2025-04-09 15:25:27 +02:00
Git bot (blckmn)
609533a737 Auto updated submodule references [09-04-2025] 2025-04-09 06:25:03 +00:00