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

14003 commits

Author SHA1 Message Date
haslinghuis
f33a0f5322
Merge pull request #11873 from klutvott123/fix-msp-comment
Fix MSP removed parameter comment
2022-10-08 02:08:38 +02:00
Hans Christian Olaussen
e90e850378 Fix CMS anti gravity gain 2022-10-07 14:26:34 +02:00
Kevin Plaizier
a2a5f596fb
use constrainf instead of nexted else statement
Co-authored-by: Jan Post <Rm2k-Freak@web.de>
2022-10-06 18:15:42 -06:00
Hans Christian Olaussen
78ba4ec863 Fix MSP removed parameter comment 2022-10-06 20:07:41 +02:00
Kevin Plaizier
7ba88137e7 Ensure that airmode off to on always has a smooth transition
Ensure that non legacy mixer types also function as expected.

Also lay the groundwork for an airmode strength setting.

Add const before some values

all mixer types working as expected
2022-10-06 10:46:45 -06:00
J Blackman
813a02cb86
Merge pull request #11866 from KarateBrot/42688
Enhancements for ICM-426xx (gyro and acc)
2022-10-06 12:10:11 +11:00
haslinghuis
5403e41c15
Merge pull request #11851 from damosvil/fix/edt_on_f411
Defer DSHOT telemetry calculations to avoid overload on F411 MCUs
2022-10-05 02:28:14 +02:00
Alexey Stankevich
3984dd9e39 Rebase to master 2022-10-04 22:43:07 +03:00
KarateBrot
3a0aea85ab Make ICM-426xx AAF configurable 2022-10-04 19:13:57 +02:00
Jan Post
baf2344f9a
Merge pull request #11864 from SteveCEvans/msp_dp_defs
Add MSP displayport sub-command definitions
2022-10-03 01:09:28 +02:00
Steve Evans
c2b105486e Add display port sub-command definitions 2022-10-02 13:55:57 +01:00
J Blackman
44f70421e6
Merge pull request #11841 from ctzsnooze/fixes-for-GpsRescue-maxAlt,-GPS-Trust,-calibration 2022-10-02 09:56:25 +11:00
iso9660
ccdccbf8a9 Removed all motors telemetry calculations to avoid extended dshot telemetry overhead
Basic DSHOT telemetry restablished again

Implemented new mechanism to activate EDT. The old mechanism no longer works

Added dshot_edt configuration parameter to enable edt. Parameter is OFF by default

Only send DSHOT edt enable in core.c::tryArm if dshot_edt=ON

Fixed review findings
2022-10-01 09:53:02 +02:00
SugarK
35b4e33b9a
Merge pull request #11857 from Quick-Flash/fix-airmode
Fix the normal airmode mixer
2022-10-01 00:14:06 +10:00
haslinghuis
c37fe1ff07
Merge pull request #11850 from blckmn/cloud_build
CLOUD_BUILD enablement. Supporting the use of a cloud build server.
2022-09-28 00:56:06 +02:00
Kevin Plaizier
c533990d6a Fix the normal airmode mixer
https://github.com/betaflight/betaflight/issues/11854 Should fix this. Didn't realize that it was actually possible for it to somewhat act wrong.
2022-09-27 01:21:23 -06:00
ctzsnooze
cbd374590a fixes for maxAlt, gpsTrust, sanity checks
fixes indefinite climb in max_alt mode
fixes altitude control issues when baro_hardware was disabled
fixes an error causing GPS trust to not calculate the baro factor correctly
attenuates rescue velocity_i correctly when descending
fixes velocity Iterm attenuation when close to home
logs the final GPS trust value
allow a little pitch and roll when landing
improves disarm by detecting ground effect
use floats for smoothness
refactor and simplify yaw
re-name idleTasks to setReturnAltitude
descend in level mode when sanity checks abort, rather than disarming immediately
PT3 filtering on upsampled pitch angle instead of pitch angle rate of change limiter
remove velocity attenuation when not pointing to home
allow some roll and pitch in landing phase to counter drift
include sanity check on altitude gain in climb phase
include check for 3D fix in min sats sanity check
acquire pitch and roll more smoothly when they commence
simple smoothing of baro while disarmed for better zero
re-name fields
2022-09-27 13:28:36 +10:00
J Blackman
d72f18fb3f
Merge pull request #11806 from ctzsnooze/Restore-iTerm-Windup-for-all-axes
Restore iTerm Windup to all axes, active by default
2022-09-27 08:42:55 +10:00
J Blackman
f65317324d
Merge pull request #11847 from damosvil/fix/edt_cleanup_upon_tryArm
Fix for old telemetry sent to RPM filter during a re-arming sequence
2022-09-27 08:42:27 +10:00
blckmn
f165a65ef8 If CLOUD_BUILD is defined then certain items are now activated by options 2022-09-25 11:43:35 +10:00
haslinghuis
fba7ccfcd0
Merge pull request #11843 from jonmahoney15/watt-hours-consumed-osd-element
Watt Hours Drawn OSD Element and Post Flight Stat
2022-09-24 03:24:10 +02:00
iso9660
7a5b60e8c1 Fix for old telemetry sent to RPM filter during a re-arming sequence 2022-09-23 06:50:47 +02:00
Steve Evans
fdb7cb42da Negate CS at end of SPI accesses 2022-09-21 19:31:22 +01:00
Jon Mahoney
a2d356dc78 Watt Hours Drawn OSD Element and Post Flight Stat
The Watt hours used element was added per a feature request to give
another way of interpreting the battery usage. It was also added as a
post flight stat to show consumption similar to the mAh post flight
stat. This once again is just giving pilots another option that some may
find useful.
2022-09-19 23:36:23 -04:00
J Blackman
8d909fbe99
Merge pull request #11810 from DusKing1/switch-case-cleanup
Cleanup some switch-case-s
2022-09-19 09:05:31 +10:00
J Blackman
c50372019d
Merge pull request #11275 from P-I-Engineer/VTX-power-OSD 2022-09-18 09:09:02 +10:00
J Blackman
5e40d949c6
Merge pull request #11834 from ctzsnooze/GPS_Refactor_plus_120hz 2022-09-18 09:08:33 +10:00
haslinghuis
a90e2e5fb1
Merge pull request #11772 from damosvil/use_calc_esc_rpm_to_erpm_to_rpm
Unify all eRPM to RPM calculations into one single function
2022-09-17 14:26:26 +02:00
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
Steve Evans
92e50d548f Do not automatically negate CS at end of SPI transfer 2022-09-16 17:26:37 +01: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
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