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

18893 commits

Author SHA1 Message Date
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
ke deng
059ada4e4b
Filter comment line while try to get SYSTEM_HSE_MHZ value. (#14194)
* Filter comment line while try to get SYSTEM_HSE_MHZ value.

* use sed to find correct SYSTEM_HSE_MHZ

* get TARGET EXST_ADJUST_VMA value through sed and remove GYRO_DEFINE

* improve get FC_VMA_ADDRESS regex to fit more condition
2025-01-27 21:46:41 +01:00
ggabriel
c12a57e2ad
fix: STM32H5 makefile oop debug (#14212) 2025-01-27 21:17:42 +01:00
Jacob Dahl
9ab3aa1048
h7: add timer pins (#14153) 2025-01-28 02:34:29 +11:00
Steve Evans
3d9dcbc9b1
Fix G4 SPI clock being double what it should be (#14207)
* Fix G4 SPI clock being double what it should be

* Aligned to master
2025-01-27 14:39:28 +01:00
ot0tot
07082de41e
Update mag_declination range in settings.c (#14206)
* Update mag_declination range in settings.c

* Update src/main/cli/settings.c

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

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2025-01-27 14:07:25 +01:00
Git bot (blckmn)
e760bfa687 Auto updated submodule references [27-01-2025] 2025-01-27 06:25:04 +00:00
ctzsnooze
986a5f119a
Remove PARTIAL_REMAP_TIM3 defines for AT32 and STM32 (#14198)
remove PARTIAL_REMAP_TIM3 code
2025-01-26 17:17:25 +01:00
ctzsnooze
4db3cad503
Remove unused timer related defines (#14197)
Remove unused timer remapping defines without matching functions
2025-01-26 13:33:22 +01:00
Jay Blackman
deb691bfc8
FIX: Missing IFDEF USE_TIMER and USE_RPM_FILTER (#14201) 2025-01-25 18:01:17 +01:00
Jacob Dahl
5fd0f2df04
h7: enable ports H and I (#14199)
* h7: enable ports H and I

* Update src/platform/STM32/target/STM32H743/target.h

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

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2025-01-25 18:00:18 +01:00
Mark Haslinghuis
bbaf961edb
Add 230K4 baudrate support for GPS (#14192)
* Add support for 230K baudrate for GPS

* Update CLI

* Use invalidName for all instances
2025-01-24 18:15:54 +01:00
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