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

17749 commits

Author SHA1 Message Date
ctzsnooze
47460f55e1 Improve landing, update OSD, BB names, smooth Pitch, sanity bugfix
Bugfix potential sanity check failure on negative ascent or slow descent
Bugfix sanity failure on low climb authority builds
Update GPS Rescue OSD, CLI, Blackbox names and sequence
Allow zero climb altitude and return speed
Change some GPS Rescue altitude names
max rescue yaw rate = 180 deg/s
check yaw error angle faster update rate
Yaw faster
Initate yaw smoothly.
Increase throttle D during faster descents
climb without rotating
smoother transition to fly home
fix maxAlt bug by using float
update heading debug to include groundSpeed etc
altitude lowpass default 3Hz not 4Hz
increase disarm threshold from 1.0g to 1.5g
PT3 on pitch at 4Hz.
2022-09-15 11:31:36 +10:00
ctzsnooze
b88e73d137 120hz altitude data used in GPS Rescue
Disarm on crash flip recovery or impact while in do nothing mode
add blackbox headers for new fields
rearrange altitude factors
fix ibus uint16 for estimatedVario
update GPS altitude at 120hz
get GPS derivative from error
PT2 filter on GPS derivative
remove acceleration element
move altitude filtering to position.c
calculate altitude derivative in position.c for vario
filter vario with PT1
update pg in position and baro
field and test tuning from field tests
land 3x faster from higher altitude
PT2 vario for checking GPS
2022-09-15 11:31:36 +10:00
haslinghuis
e1cafc0434
Merge pull request #11777 from blckmn/artifact_text
Adding some formatting to the artifact links PR comments.
2022-09-14 23:33:32 +02:00
danmos
21b3fc15b7 Extended Bidir DShot
Extended DSHOT telemetry
Fixed broken unit testing

Rebased to master

Extended DSHOT telemetry

Added DSHOT ESC fail to OSD warnings

Initial extended DSHOT implementation

DSHOT telemetry ranges readjusted

Added shot_telemetry_data to cli

Added DSHOT telemetry warnings

Added extended DSHOT telemetry temperature data to osd elements

Fixed DSHOT telemetry osd warnings

Make cli dshot telemetry types human readable

Fixed ESC temperature OSD element

Added extended dshot telemetry enable command to dshot command queue to enable it in tryArm function.

Fixed broken automated unit testing

Fixed text output for dshot_telemetry_data cli command

Decode extended telemetry only when it has been activated in the ESC

DSHOT extended telemetry is only enabled when an extended telemetry enable frame is being processed

Fixed broken automated unit testing

Update tail's dshot command in queue when running blocking commands, so extended dshot telemetry command responses can be associated to their corresponding extended dshot telemetry enable/disable command request

Added clariffication to dshot_get_telemetry_type_to_decode to explain mechanish used for processing DSHOT_CMD_EXTENDED_TELEMETRY_ENABLE response

Tabs cleanup
Added dshot motor stop fix when writting blocking commands

Added extended DSHOT telemetry to osd warnings
Fixed extended DSHOT telemetry in osd elements

Implemented msp extended dshot telemetry
Optimized osd warnings

Fixed code style

Added max temp to osd stats

Fixed automated unit testing

Fixed broken automated unit testing

Fixed missing extended dshot telemetry voltage and wrong current
Fixed unadverted change in gitignore file

Print esc number besides max esc tempetature in osd stats

issues and some other minor issues

ESC temperature is coded as an uint8 going from 0 to 255. Updated osd config esc_temp_alarm from int8_t to uint8_t to match esc temperature coding

issues and some other minor issues

Enable extended dshot telemetry when no esc sensors avaliable and dshot telemetry is enabled

Arranged dshot.h header and removed unnecessary headers from dshot.c

Updated dshot_telemetry_data cli command output

Fixed dshot_telemetry_data command

motor_output_unittest fixed

Fixed motor number printing in dshot_telemetry_data cli command

fixed motor_output_unittest

Merged dshot_telemetry_data into dshot_telemetry_info cli command

Fixed tabs

Fixed motor_output_unittest

Support extended DSHOT telemetry on DJI FPV

Fixed Compiling fails without USE_ESC_SENSOR and USE_DSHOT_TELEMETRY defines.

Fixed whencompiling without USE_ESC_SENSOR and USE_DSHOT_TELEMETRY

Reworked so code can be compiled with USE_ESC_SENSOR and USE_DSHOT_TELEMETRY separately

Enabling EDT the correct way

Removed unecessary conversions

Changed motorIndex datatype to uint8_t in dshot functions
2022-09-14 20:11:58 +02:00
haslinghuis
06c6189ca8
Merge pull request #11827 from SupaflyFPV/Dynamic-Notch-Hz-Default
Change Dynamic Notch Min Hz default to 100Hz
2022-09-12 18:21:21 +02:00
haslinghuis
abfa5faa1e
Merge pull request #11705 from phobos-/msp_vtx
VTX Device over MSP
2022-09-12 18:11:29 +02:00
haslinghuis
61c17a9ca8
Merge pull request #11783 from phobos-/elrs-3
ExpressLRS 3.0 compatibility mode
2022-09-11 23:05:15 +02:00
Steve Evans
3e842b67d4 Correctly terminate segments list with u.link 2022-09-10 20:57:51 +01:00
SupaflyFPV
a70da0f962 Change dyn_notch_min_hz default to 100 2022-09-09 22:15:21 +01:00
haslinghuis
aa185860e8
Merge pull request #11757 from ctzsnooze/GPS_rescue_refactor
Consistent Minimum satellite count, GPS Trust focusing more on Baro
2022-09-08 15:49:28 +02:00
phobos-
4ca3b9428f Review comment fixes 2022-09-07 14:41:36 +02:00
phobos-
9d70ed5079 Update cms status string during processing 2022-09-07 14:41:36 +02:00
phobos-
f10413392b VtxDevice over msp 2022-09-07 14:41:36 +02:00
phobos-
00203a98e2 Aligned rate indexing 2022-09-07 14:35:00 +02:00
phobos-
fb2afd4c5b Review comment fixes 2022-09-07 14:35:00 +02:00
phobos-
185a94384c Added CE domain with reduced telemetry power 2022-09-07 14:35:00 +02:00
Bryan Mayland
545caf2908 Update ELRS timer FreqOffset on slot 1 2022-09-07 14:35:00 +02:00
phobos-
392ebdcdf4 Cosmetics and fixed tests 2022-09-07 14:35:00 +02:00
phobos-
7a23793c16 Fix for FHSS hopping where freq_count is a power of 2 2022-09-07 14:35:00 +02:00
phobos-
9e5fb3fe88 XOR major version number with crcInitializer and macSeed 2022-09-07 14:35:00 +02:00
phobos-
9cd992e7d1 Changed 50Hz LoRa params to SF8 CR LI 4/7 2022-09-07 14:35:00 +02:00
phobos-
e9d7fe4445 SNR telemetry changes 2022-09-07 14:35:00 +02:00
phobos-
8e4f6e0021 Fix slow TLMBoost causing TX->RX MSP timeouts 2022-09-07 14:35:00 +02:00
phobos-
7ca3033279 Fullres channels 2022-09-07 14:35:00 +02:00
phobos-
931a0ffecb Switched Frequency table to dynamicly calcualted 2022-09-07 14:35:00 +02:00
phobos-
63e7ccbc9a Race and STD telemetry modes 2022-09-07 14:35:00 +02:00
J Blackman
e45afb3a76
Merge pull request #11814 from ctzsnooze/Fix-DJI-OSD-heading-indicator-for-4.4 2022-09-07 12:23:01 +10:00
ctzsnooze
09ee27cd97 Refactor sat count checks and GPS trust code
single minimum GPS satellite setting
single required GPS satellite setting
CLI Baro vs GPS trust user interface
GPS trust refactoring
allow arming with GPS_FIX even if not enough sats
required sats must be present to arm
set required sat count to 8
add blackbox headers
2022-09-07 09:55:35 +10:00
J Blackman
9dc2f127b8
Merge pull request #11775 from ctzsnooze/Refactor-Barometer-as-floats-with-PT3-smoothing 2022-09-07 09:20:05 +10:00
ctzsnooze
b2241b32c3 Refactor Baro to floats, filter at position rate
convert pressure to altitude early
remove median filter
PT2 filtering upsampled to altitude function in position.c - thanks KarateBrot
baro task synced to position task - thanks Steve
PT2 implementation - thanks KarateBrot
ground altitude from filtered altitude
baro cali by average of calibration samples over cal period
adjust vario and smoothing defaults
don't say haveBaroAlt until cal is complete
reduce PIDs since Baro is faster
add baro smoothing values to blackbox header

Co-Authored-By: Jan Post <post@stud.tu-darmstadt.de>
Co-Authored-By: Steve Evans <SteveCEvans@users.noreply.github.com>
2022-09-02 14:38:40 +10:00
haslinghuis
0cab176f93
Merge pull request #11242 from daleckystepan/ghst-msp
Ghost MSP support
2022-09-02 03:12:44 +02:00
ctzsnooze
8f29388546 Maintain previous MSP GPS Heading resolution 2022-08-31 09:06:53 +10:00
Hugo Chiang
0088eb5f21 switch case cleanup
Co-Authored-By: Petr Ledvina <ledvinap@gmail.com>
Co-Authored-By: haslinghuis <mark@numloq.nl>
2022-08-30 07:04:55 +08:00
J Blackman
21594c62e1
Merge pull request #11756 from ctzsnooze/GPS-rescue-Ublox-fix-landing-fix-LevelMode-offsets 2022-08-27 20:28:34 +10:00
ctzsnooze
a6507c02d9 GPS Rescue refactoring and landing improvements
- run Ublox GPS units at 10Hz
- Bugfix for level mode offset after a rescue (force gpsRescueAngle[] to zero while idle)
- Bugfix for entering landing mode too high, (ignore landing distance, enter landing mode only on height criteria)
- Remove landing distance.
- Default GPS mode to UBlox, not NMEA
- refactor idle tasks
- don't keep setting targetVelocityCmS to current velocity since it will be set to zero when rotating anyway
- remove unused velocityToHomeCmS
- remove unused max distance to home value
- log current altitude at 100hz in throttle_pid debug
- share the sanity timer code
- fix bug where yaw error should have been absolute
- remove unused code
- refactor rescue phases so intent values are not repeatedly set
- refactor the rescue modes
- fix bug that could fail to set velocity target on fly_home
- refactor to simplify pitch limits
- refactor to MAX and constrainf
- set 2m descent region to improve landing
- fade roll and pitch to zero at 2m from home
2022-08-25 19:37:13 +10:00
haslinghuis
c8a6f2a60c
Merge pull request #11801 from howels/MSP_CRAFTNAME-lengthfix
Lower max CraftName length to avoid ugly truncation errors
2022-08-22 20:45:24 +02:00
haslinghuis
2f7dffe5be
Merge pull request #11793 from MARCO-EMC/patch-1
Update README.md
2022-08-22 13:33:32 +02:00
ctzsnooze
db528ccc8f Restore iTerm Windup to all axes, active by default 2022-08-22 10:03:55 +10:00
Dominic Clifton
ea58885441 MSC - Fix MSC on H7. Commit 9629f96676
broke MSC.

Details on https://github.com/betaflight/betaflight/pull/10747
2022-08-21 16:46:48 +02:00
haslinghuis
492f933589
Merge pull request #11795 from bw1129/dyn_notch_minHz_mod
Allow dyn_notch_min_hz as low as 20Hz
2022-08-17 16:44:08 +02:00
howels
07f882aed1 Lower max CraftName length to avoid inadvertent data loss 2022-08-16 12:17:56 +01:00
Štěpán Dalecký
7cf54fc2f1 Ghost MSP support 2022-08-15 18:59:44 +02:00
Brian White
cf045be4a7 allow dyn_notch_min_Hz as low as 20Hz 2022-08-14 07:31:06 -04:00
marco
5bb04267dc
Update README.md
Add Traditional Chinese to README.md
2022-08-12 03:14:35 +01:00
Mark Haslinghuis
f7547192b1 Move TPA to PID profile 2022-08-08 00:07:21 +02:00
J Blackman
60fe04a885
Merge pull request #11776 from blckmn/automated_build 2022-08-06 16:05:13 +10:00
Mark Haslinghuis
4614fb2957 Raise PID profile count 2022-08-05 23:42:49 +02:00
J Blackman
2928115de8
Update .github/workflows/artifact-links.yml
Co-authored-by: haslinghuis <mark@numloq.nl>
2022-08-05 23:20:09 +10:00
blckmn
fdad0180cc Adjusting .gitignore for automated build scratch space. 2022-08-05 16:15:02 +10:00
blckmn
cd10151d4b Adding some formatting to the artifact links text. 2022-08-05 15:07:06 +10:00