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

18415 commits

Author SHA1 Message Date
iso9660
0dd6d4d47a Unified all eRPM calculations into one single function
Fixed some review findings

Unified dshot average rpm calculations into one single function

Renamed calcEscRpm to erpmToRpm, and moved function to dshot.c

Removed unused esc_sensor.h header file from dshot.c

Removed esc_sensor.h header from modules that no longer needs it

Average RPM calculated by demmand only when rpm data is updated

Renamed rpm to averageRpm and fixed a bug

Update average rpm when telemetry data is received

Removed blank line

Fixed review findings

Fixed return values for erpmToRpm and getDshotAverageRpm so rpm value doesn't truncate

Restored osd_esc_rmp_alarm setting. This setting is used to set an alarm to notify when rpm  goes down a specified threshold. Rpm can go over 109krpm (1s 26kv motors setup), but a low rpm alarm doesn't have to be set to a so high value so at this time [0-32767] seems an acceptable range

Rebased to master
2022-09-17 00:26:17 +02:00
J Blackman
d01447c025
Merge pull request #11084 from rvdveen/lipo-continue-v2-shortmenu 2022-09-17 08:25:39 +10:00
J Blackman
d48ada6e39
Merge pull request #11665 from mituritsyn/accel_related_modes_fix 2022-09-17 08:24:02 +10:00
J Blackman
9f62bccaa6
Merge pull request #11770 from haslinghuis/raise-profile-count 2022-09-17 08:23:35 +10:00
J Blackman
122fb891fd
Merge pull request #11839 from SteveCEvans/sd_card_init 2022-09-17 08:21:42 +10:00
haslinghuis
c78e14cc27
Merge pull request #11694 from damosvil/feature/dshot_extended_telemetry_on_unused_ranges
Feature/dshot extended telemetry on unused ranges
2022-09-16 22:35:46 +02:00
Steve Evans
92e50d548f Do not automatically negate CS at end of SPI transfer 2022-09-16 17:26:37 +01:00
Jan Post
266682b6ff
Merge pull request #11804 from hydra/bf-fix-h7-msc
MSC - Fix MSC on H7.
2022-09-16 10:17:43 +02:00
ctzsnooze
c6a26217f1 integer value to increment pitch limit by 2022-09-16 07:47:32 +10:00
ctzsnooze
1cd28a5eea refactoring and smoother transition to return, thanks Karatebrot 2022-09-15 15:06:40 +10:00
ctzsnooze
0766d93f72 remove abrupt switch to GPS with negative Baro signal 2022-09-15 11:31:37 +10:00
ctzsnooze
a930481dc3 attempt to fix no altitude in GPS only mode 2022-09-15 11:31:37 +10:00
ctzsnooze
da02aff97e initiate roll smoothly and only once flying straight home 2022-09-15 11:31:37 +10:00
ctzsnooze
3498d7e8bf fix Max_Alt problem by zeroing the GPS altitude to filter while disarmed 2022-09-15 11:31:37 +10:00
ctzsnooze
2879642f0a Update flight_imu_unittest.cc 2022-09-15 11:31:37 +10:00
ctzsnooze
6ef9f179e3 unit test fixes, minimise descent feedback possibility 2022-09-15 11:31:37 +10:00
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