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

18409 commits

Author SHA1 Message Date
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
Valeriy Van
6d7bfb9b1e
Fix typo in README.md (#13164)
Fix typo
2023-11-13 09:53:33 +01:00
Steve Evans
96e6b79430
Fix compass loop time (#13125) 2023-11-07 16:37:27 +11:00
Jan Post
f223b2376e
Remove Special Chars from eRPM Blackbox Field (#13123)
Remove special chars from erpm blackbox field
2023-10-31 10:01:41 +01:00
ctzsnooze
05f70a80da
bug fix for DMax Setpoint Factor (#13145)
fix too high DMax Setpoint Factor
2023-10-29 16:37:27 +01:00
Steve Evans
34e7a5ceeb
Check tx on MSP and GPS only (#13100) 2023-10-24 15:12:14 +02:00
Steve Evans
4f17fe0aac
Disable ICM426XX AFSR feature to prevent stalls (#13132) 2023-10-23 08:08:07 +01:00
Steve Evans
eee0cb5467
Fix buffer overflow in JETIEXBUS character reception (#13130)
* Fix buffer overflow in jetiexbus character reception

* Update src/main/rx/jetiexbus.c

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

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2023-10-21 23:40:46 +01:00
Jan Post
ef34a91aa2
Dimmable RPM harmonics (#12838) 2023-10-20 19:30:30 +02:00
Jacopo Panerati
fe0e0cb5b8
Removed SITL hardcoded state port number (#13117)
* Removed hardcoded state port number

* Removal of duplicate extra udpInit
2023-10-13 20:39:01 +02:00
ctzsnooze
e805c73eb1
rearrange rescue phase enum and keep Mag during landing (#13072) 2023-10-12 10:21:10 +11:00
BAYCK RC
5d16feeb6a
fix ARTERY UART4 pin 'PH2&PH3' (#13108) 2023-10-11 19:56:58 +02:00
Steve Evans
b4ff2ad0f8
Fix marking of softserial port usage (#13097) 2023-10-11 19:49:40 +02:00
Mark Haslinghuis
63f5065307
Fix clang version (#13099) 2023-09-30 06:37:17 +10:00
Mark Haslinghuis
66bf029edc
Fix missing target define (#13078) 2023-09-27 14:40:01 +10:00
Steve Evans
d8ed530ceb
Use USE_DSHOT_BITBAND (#13090) 2023-09-27 14:39:31 +10:00
ctzsnooze
696e23fbeb
Fix circling behaviour during GPS Rescue descent phase (#13091)
in descent and landing, attenuate pitch angle unless pointing accurately towards home
2023-09-27 14:38:41 +10:00
pichim
9ada5638a3
Add magnetic heading as debug and magnetic declination for the Mahony filter (#13073)
* Add mag heading to GPS Rescue heading debug

* Roll and pitch compensated magnetic yaw

* Changes according to PR comments

* Encapsulate yawMag calculations

* Corrected naming

* Changes according to PR comments

* Changes so that Checks don't fail

* Added PARAM_NAME list

* Changes so that Checks don't fail

* Changes according to PR comments

* Update src/main/fc/parameter_names.h

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

* Changes according to PR comments

* 200Hz compass task

* fix wait status flag

* increase default ODR of HMC5883L to 75Hz

* fix spikes in MagYaw debug by re-calc only on new data

---------

Co-authored-by: ctzsnooze <chris.thompson@sydney.edu.au>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2023-09-27 01:01:22 +02:00
Steve Evans
1856d6f7ef
Remove dshot_telemetry_start_margin setting and auto-tune instead (#13075)
* Remove dshot_telemetry_start_margin setting and auto-tune instead

* Add USE_DSHOT_BITBAND
2023-09-18 21:55:41 +02:00
SpencerGraffunder
99be077299
GPS Lap Timer: Fix best 3 not being calculated (#13065)
Fix best 3 not being calculated due to number of laps not being incremented

To calculate the best 3 consecutive laps time, it needs to track the number of laps recorded. This must have been accidentally removed at some point.
2023-09-11 06:35:19 +02:00
Steve Evans
a72ad8b2b6
Add support for MSP2_SENSOR_GPS message from RemoteID module (#13062) 2023-09-09 01:02:09 +02:00
ASDosjani
5cd2ab50e4
Add LED strip config values to MSP (#12995)
* Add LED strip config values to MSP

* change hue calculation + higher max frequency

* higher rainbow frequency

* define LED Strip task rate

* msp2

* fix delta size

* Update src/main/msp/msp.c

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

* Update src/main/msp/msp.c

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

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2023-09-05 17:09:31 +02:00
ctzsnooze
37f119cf4f
minimal NMEA support for 4.5 (#13044)
* minimal NMEA

* fix a typo thanks Karate
2023-09-02 17:11:04 +02:00
ctzsnooze
a35a5af16c
Only allow arming when valid Rx signals are received (#13033)
* Only allow arming when failsafe criteria are cleared

* 500ms RXLOSS period with 100ms minimum
2023-09-01 15:58:26 +02:00
ctzsnooze
d1025bd1f5
Make use of all 8 debug values for the GPS Rescue debugs (#13055) 2023-08-31 21:58:41 +10:00
Mark Haslinghuis
7780880139
Fix GPS Rescue parameters confusion (#13047)
* Fix GPS Rescue parameters

* Fixes per review

* more renames

* Refactor setReturnAltitude

* Change return altitude to 5 - 1000

* Rename return speed

* Change groundSpeed to groundSpeedCmS
2023-08-31 11:50:15 +02:00
Mark Haslinghuis
b7f98b08e6
Fix missing ACC MPU6050 (#13048) 2023-08-31 11:46:05 +02:00
pichim
9f816b678d
Added dynamic expo factors to blackbox header (#13004) 2023-08-23 17:46:20 +02:00
Steve Evans
08570cadce
Add support for 'make CONFIG_clean' as per 'make TARGET_clean' (#13038) 2023-08-18 10:02:00 +02:00
Cru Waller
5f2d8da3b9
Fix OSD VTX band/channel info when direct frequency is used (#13032)
Fix OSD VTX band/channel when direct frequency is used
2023-08-16 11:31:39 +02:00
ctzsnooze
3ab822b661
Fix debug_gps_altitude values (#12803) 2023-08-16 15:09:29 +10:00
Kevin Plaizier
21e3fb608d
Document where dshot documentation is found (#12997) 2023-08-15 04:39:55 +10:00
Mark Haslinghuis
60a493b374
Fix AT32 UART 7 and 8 (#13027) 2023-08-15 04:38:45 +10:00