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

18491 commits

Author SHA1 Message Date
Steve Evans
6af1614a5d
Fix dma pin <io> list (#13233) 2023-12-18 21:11:31 +01:00
Steve Evans
fe23761520
Add gyro jitter analysis to DEBUG_SCHEDULER_DETERMINISM (#13230) 2023-12-18 12:24:36 +01:00
Benedikt Kleiner
7d122c481a
at32: add mux 3 for tmr9 on port c (#13222) 2023-12-17 10:04:20 +01:00
Mark Haslinghuis
65aaf732f9
Remove custom defaults and enable features on boot (#13216)
* Remove custom defaults

* Fixes per review

* Fixes per review (thanks ledvinap)

* Fix copy pasta
2023-12-17 07:58:15 +01:00
Steve Evans
43c645a006
Fix error in I2C write operation on AT32 (#13228) 2023-12-17 10:04:30 +11:00
Ivan Efimov
bc69a92b86
Added d_min for PID osd elements (#13227)
* Added d_min for PID osd elements

* Update src/main/osd/osd_elements.c

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

---------

Co-authored-by: Jan Post <Rm2k-Freak@web.de>
2023-12-15 23:00:35 +01:00
ctzsnooze
3eb776e30d
bugfix compassBiasEstimatorInit initialisation (#13226) 2023-12-14 12:29:11 +01:00
Steve Evans
03495f9273
Break LED_STRIP update into 20us chunks (#13218) 2023-12-12 13:15:32 +01:00
Ivan Efimov
477c9801bc
Changed some defaults for RACE_PRO (#13215)
* Changed some defaults for RACE_PRO

* Update src/main/flight/imu.c

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

* Update src/main/osd/osd.c

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

* Update src/main/flight/failsafe.c

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2023-12-12 01:41:38 +01:00
Mark Haslinghuis
20b2e9c665
Fix defines for CI and add USE_RACE_PRO feature pack (#13212)
* Fix defines for CI and add USE_RACE_PRO feature pack

* Add RC_STATS
2023-12-12 01:39:22 +01:00
Ivan Efimov
6ac08cdd58
Fix: RPM Limit - reset I-term at arm (#13214)
* RPM Limiter - reset I-term at arm

* Update src/main/flight/mixer.c

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

---------

Co-authored-by: Jan Post <Rm2k-Freak@web.de>
2023-12-11 00:40:34 +01:00
Mark Haslinghuis
4f5bb1abc0
Fix jumpy baro debug (#13217)
* Fix jumpy baro debug

* Remove duplicate debug
2023-12-11 10:37:29 +11:00
Ivan Efimov
31c5beaf78
OSD spec prearm screen if defined USE_SPEC_PREARM_SCREEN (#13210)
* OSD spec prearm screen if defined USE_SPEC_PREARM_SCREEN

* osd spec prearm PR suggestions

* OSD_SPEC karatebrot logic suggestion

* Update src/main/osd/osd.c

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

---------

Co-authored-by: Jan Post <Rm2k-Freak@web.de>
2023-12-10 01:50:31 +01:00
Mark Haslinghuis
a92d87ebca
Fix OSD Quick Menu (#13211) 2023-12-10 10:30:50 +11:00
tbolin
ae71256da7
Throttlebased EzLanding (#12094)
* ezLanding

* Add ez_landing throttle mode

* Correct EzLanding scaling of motorMixRange

* Correct mixer_type switch bracing style

* Remove motor value cliping ez landing mode

- rename mixer type cli setting to EZLANDING from EZLANDING_THROTTLE
- remove EZLANDING_CLIP cli setting
- double default ez_landing_threshold
- halve default ez_landing_limit
- check  and  limits in cli settings
- remove mixer type dependent settings in mixer_init
- remove clip based code in mixer.c

* Change ez_landing setting values and refactoring

- Halve defaul ez_landing_threshold setting and double in init instead.
  Now stick deflection equal to ez_landing_threshold should give approimately full authority.
  Previously it was the point where the mixer was allowed to raise the throttle to 100 % (which wouuld never be required)
- Increase ez_landing_threshold maximum to 200 (from 100) to allow settings that increase authority by a little at full stick deflection
- Increase ez_landing_limit maximum to 75 which is the point where EzLanding should act identical to the Legacy mixer with airmode on
- remove throttle percent from
- simplify calculation of , since throttle stick deflection is no longer involved
- update/remove outdated comments

* Remove old EZLANDING entries in mixerType enum

* Add mixer_type setting to blackbox log header

---------

Co-authored-by: ctzsnooze <chris.thompson@sydney.edu.au>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2023-12-09 02:36:41 +01:00
Ivan Efimov
d3830b6b34
Make lookupTableThrottleLimitType an extern variable (#13204) 2023-12-08 22:37:33 +01:00
Ivan Efimov
380d39e570
Renamed tpa....lower to tpa_low_..., + tpa_low_always = OFF by default (#13206)
Renamed tpa....lower to tpa_low_..., inverted the logic for it being active and renamed to a simple tpa_low_always which is OFF by default now
2023-12-08 20:51:52 +01:00
ctzsnooze
b2ce402635
fix iterm bug introduced in PR13127 (#13201)
fix iterm bug introduced in 13127
2023-12-07 19:55:01 +01:00
Steve Evans
a88e8940aa
Change WHO_AM_I to match datasheet (#13200) 2023-12-07 02:10:29 +01:00
Tanner Beard
2733dadf02
Rpm limiter initial throttle cap prediction fix (#13039)
* initial commit

* initial commit

* Update src/main/flight/mixer_init.c

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

* rpm limiter vbat compensation

* remove forced define

* change to multiply

* rpm limiter vbat compensation method 2

* fixes

* remove def

* test

* test

* test

* cleanup

* fix for maxcheck condition not satisfied if set to 2000

* Refactoring / cleanup

* Rename averageRpmFilter

* missing paren

* Move RPM estimation to motor.h

* Add macro for deadband

---------

Co-authored-by: Jan Post <Rm2k-Freak@web.de>
2023-12-07 08:51:52 +11:00
tbolin
0b0c63a73d
Add ICM-42605 to list of gyros with overflow protection (#13194) 2023-12-07 07:38:21 +11:00
Jan Post
71199b1602
Encapsulate LSM6DSV16X driver specific macros (#13196)
Cleanup
2023-12-06 01:47:18 +01:00
Jan Post
3cfad864a6
Add LPS22DF to core build (#13197) 2023-12-06 00:11:45 +01:00
tbolin
8c5cb52d76
Fix # 12991 Change LSM6DSO gyro scaling to 70 mdps/LSB (#13014)
Change LSM6DSO gyro scaling to 0.070 dps/lsb
2023-12-05 22:19:50 +01:00
Jan Post
240c31e123
Add RPM Limiter to baseline build (#13190)
* Fix function name

* Add RPM Limiter to baseline build
2023-12-06 07:17:27 +11:00
Steve Evans
e9be340041
STMicro LPS22DF baro support (#13054)
* Add LPS22DF baro support

* Update src/main/drivers/barometer/barometer_lps22df.c

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>
2023-12-06 07:15:57 +11:00
Steve Evans
465b05ec06
STMicro LIS2MDL mag support (#13150)
* STMicro LIS2MDL mag support

* Fix copyright headers

* Update PG_COMPASS_CONFIG
2023-12-06 07:14:35 +11:00
Ivan Efimov
dd198b2cda
Keep I-terms at zero throttle for fixed wings (#13127)
* Keep Iterms at zero throttle for fixed wing mixer

* Ctz suggestions

* Update src/main/fc/core.c based on ladvinap suggestion

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

---------

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
2023-12-05 11:54:10 +01:00
tbolin
efe1825afa
Fix #12908 Add ICM-42688-P IMU to list of IMUs with overflow protection (#13013)
Add ICM-42688-P imu to list of imus with overflow protection
2023-12-05 11:44:14 +01:00
Flavio Pinzarrone
4c86e31d1e
Fixed incorrect accelerometer scaling in MSP (#13026) 2023-12-04 16:50:08 +01:00
pichim
13d1dc81ce
Additional TPA breakpoint for low Throttle (#13006)
* Removed white spaces and everything that is not new

Rebase on master and update comment

Make TPA lower independent from air mode

Included tpa_breakpoint_lower_vanish option

Changes according to PR comments

Corrected comment for API version

Bugfix in msp.c

Additional TPA breakpoint for low throttle

* Changes according to PR comments

* Update src/main/cms/cms_menu_imu.c

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

* Update src/main/flight/pid_init.c
2023-12-04 16:35:27 +01:00
Auster
c41e2f2680
Allow CRSF RX binding via cli (#13119) 2023-12-04 13:28:45 +11:00
Mark Haslinghuis
b199e65000
Remove unused servos header file (#13182) 2023-12-04 13:21:17 +11:00
Mark Haslinghuis
7dffe25ed1
Fix default PID DENOM (#12509)
* Set default PID DENOM

* Fixes after Karate review

* Fixes after Karate review v2

* Use gyro.sampleRateHz

* Fixes after discussion
2023-12-04 03:02:08 +01:00
Steve Evans
e126f1c4a4
STMicro LSM6DSV16X IMU support (#13046)
Add support for LSM6DSV16X
2023-12-04 02:19:48 +01:00
Mark Haslinghuis
010a71820a
Set serial duplex mode (#12909)
* Set serial duplex mode

* Add add common protocols
2023-12-03 21:56:55 +01:00
Mark Haslinghuis
09b59b7668
Add default config option for dshot telemetry (#13184) 2023-12-03 10:36:42 +01:00
Benedikt Kleiner
32ccc841ab
at32: add PA0/PA1 as i2c pins (#13187) 2023-12-03 10:35:35 +01:00
Jan Post
5769b3021e
Dshot RPM Telemetry Refactoring (#13012) 2023-12-03 15:16:35 +11:00
J Blackman
0c9d7e6c50
Add additional timers for AT32F4 (#12548) 2023-12-03 11:05:57 +11:00
Míguel Ángel Mulero Martínez
65357e51bd
Add OSD Link Quality alarm value to the MSP (#13121) 2023-12-02 10:15:37 +01:00
Cru Waller
57fbf61331
Fix: ledstrip vtx freq based color selection in RACE mode (#13096)
Fix: ledstrip vtx freq handling in race mode
2023-12-01 09:49:22 +01:00
Mark Haslinghuis
6fe81a9445
Fix disabling sensor configuration (when device needs battery power) (#13177)
* Fix sensor config

* Encapsulate code

* Add new message for detectedSensors

* Add SENSOR_NOT_AVAILABLE

* Move comment

* Add gyro
2023-11-28 10:42:31 +01:00
ctzsnooze
a8834ad14b
Mag scheduling improvements (#13166)
* Improved QMC driver, scheduled silent interval

* add ODR to drivers and use it to set the quiet period

* add MAG_TASK_RATE debug for testing

* don't do a read if the bus is busy - thanks, Petr

* refactoring and simplification, thanks to Steve

---------

Co-authored-by: Steve Evans <SteveCEvans@users.noreply.github.com>
2023-11-28 00:55:01 +00:00
Mark Haslinghuis
cafe727f3a
Fix Dshot telemetry (#13140)
* Fix Dshot telemetry

* Revert check per review
2023-11-23 22:56:14 +01:00
Mark Haslinghuis
89607c699b
Increase PG version for rpm_filter (#13172)
Update rpm_filter.c

Fixes PG version from changed made in #12838
2023-11-19 11:18:41 +01:00
Steve Evans
ab1559cf20
Make AT32 I2C accesses fully interrupt driven (#13171)
Make I2C accesses fully interrupt driven
2023-11-17 23:45:04 +01:00
pichim
84a04db8b9
Improved Magnetometer / Compass Bias Estimator (#12998)
* Rebased on master and clean-up (untested), this is still the initial method

* Included math.h in compass.c, so checks don't fail

* Change comments, compass is still only running at 167 Hz, not worth investing more

* Alternative method, using only mag data

* Removed unnecessary scaling and fine tuning

* Corrected comment

* Removed no longer needed debug DEBUG_MAG_TASK_RATE, comments and corrected some typos

* Improved readability and update of comment

* Rebased on master and resolved conflicts

* Included math.h and maths.h so checks don't fail

* Update src/main/sensors/compass.c

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

* Update src/main/sensors/compass.h

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

* Update src/main/sensors/compass.c

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

* Changes according to PR comments

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
2023-11-15 16:12:36 +01:00
AlexRice13
9618dc8451
Update esc_sensor.h to support higher esc telemetry voltage display (#13115) 2023-11-14 12:42:12 +11:00
tbolin
4891a55a53
Remove back-and-forth float to int to float conversion in acceleration calculation (#13158)
Remove float to int to float conversion in acceleration calculation
2023-11-13 11:42:14 +01:00