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

237 commits

Author SHA1 Message Date
Steve Evans
c508b6644d
Apply OSD severity (#11996) 2022-11-20 12:24:09 +01:00
J Blackman
af1001a35c
FIX: USE_PWM not working (#12004) 2022-11-18 18:10:32 +11:00
Steve Evans
3e51d15559
Add HD OSD support (#11964) 2022-11-15 12:58:14 +11:00
haslinghuis
2216b42dbb
Fix compatibility for name field (#11980) 2022-11-14 15:08:16 +11:00
haslinghuis
139210e403
Fix TPA (#11969) 2022-11-09 21:18:14 +11:00
Jan Post
6ed96f9adb
Parse GPS DOP values (#11912)
This is part 2 of a series to prepare for altitude estimations (and
later on full 3-dimensional estimations) with a new sensor fusion model.

This is a PR to get access to relevant dilution of precision values of
the GPS signal.
- `pDOP`: positional (3D) - for positional dilution in space
- `hDOP`: horizontal (2D) - for positional dilution above ground
- `vDOP`: vertical (1D) - for dilution of altitude
2022-11-02 16:00:34 +11:00
haslinghuis
4657de0b2c
Merge pull request #11931 from haslinghuis/fix-msp-video-selection
Add case for MSP OSD device detection
2022-10-31 05:30:34 +01:00
J Blackman
e801548117
Merge pull request #11391 from krasiyan/add-display-name-msp-commands 2022-10-31 07:57:44 +11:00
Mark Haslinghuis
5fa5e5acda Add case for MSP OSD device detection 2022-10-29 06:56:21 +02:00
haslinghuis
7bba781f58
Merge pull request #11192 from jeffpearce/elrsguid
Add support for getting/setting elrs uid via msp API
2022-10-27 02:08:12 +02:00
Krasiyan Nedelchev
e7df32f020 Rename 'display_name' to 'pilot_name'; rename 'name' to 'craft_name'; Add the 'MSP2_GET_TEXT' and 'MSP2_SET_TEXT' MSP commands
- add the 'MSP2_GET_TEXT' and 'MSP2_SET_TEXT' MSP2 commands

  - Support getting/setting the 'MSP2TEXT_PILOT_DISPLAY_NAME' config prop ('pilotConfigMutable()->displayName')

- rename 'display_name' to 'pilot_name'

  - Add the new 'OSD_PILOT_NAME' OSD element in place of the
  'OSD_DISPLAY_NAME' one (as they are semantically identical)
  - Add the 'osd_pilot_name_pos' cli prop in place of 'osd_display_name_pos'

- rename 'pilotConfigMutable()'s 'name' to 'craftName'

  - remove the legacy 'GET_NAME' / 'SET_NAME' MSP commands
  - replace the 'name' CLI prop for 'craft_name'
  - add the 'MSP2TEXT_CRAFT_NAME' constant for 'MSP2_GET_TEXT' and 'MSP2_SET_TEXT'
2022-10-25 23:03:46 +02:00
haslinghuis
d58f2c4a3c
Merge pull request #11909 from blckmn/all_use_config
Removing 'UNIFIED_TARGET'
2022-10-22 21:24:22 +02:00
blckmn
3396013b53 Removing USE_UNIFIED_TARGET... 2022-10-21 10:04:10 +11:00
ctzsnooze
341d65becf remove gps_required and gps_minimum sats and revert to gps_rescue_min_sats 2022-10-20 21:44:01 +11:00
haslinghuis
cbbc80ee90
Merge pull request #11779 from haslinghuis/update-pidprofile
Move TPA to PID profile
2022-10-13 21:09:49 +02:00
Hans Christian Olaussen
78ba4ec863 Fix MSP removed parameter comment 2022-10-06 20:07:41 +02:00
Jeff Pearce
876481c70b Add support for getting/setting elrs uid via msp 2022-09-17 12:14:46 -07: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
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
abfa5faa1e
Merge pull request #11705 from phobos-/msp_vtx
VTX Device over MSP
2022-09-12 18:11:29 +02: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-
f10413392b VtxDevice over msp 2022-09-07 14:41:36 +02: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
ctzsnooze
8f29388546 Maintain previous MSP GPS Heading resolution 2022-08-31 09:06:53 +10:00
Mark Haslinghuis
f7547192b1 Move TPA to PID profile 2022-08-08 00:07:21 +02:00
ctzsnooze
6aaaf727ff update antigravity for 4.4, no boost on yaw
Update to anti-gravity, including removal of the old Step mode, ability to adjust the P contribution (thanks @Limon), PT2 smoothed derivative model, inherent limiting of P boost during extremely fast stick travels to minimise P oscillations, less I during the middle of a throttle up, no I boost on yaw, add hz to cutoff labels

No antigravity on yaw, fix longstanding typo

h
2022-07-25 11:37:07 +10:00
J Blackman
d8c79eb710
Merge pull request #10054 from fgiudice98/blackbox-fields-msp 2022-06-24 06:34:18 +10:00
Hans Christian Olaussen
90b155ce1d ELRS SPI Fix eeprom write and reboot for msp over telemetry 2022-05-01 01:04:52 +02:00
Hans Christian Olaussen
13cb7b4280 Fix non DSHOT protocols 2022-02-24 15:26:46 +01:00
ctzsnooze
2262dfc60e use Throttle Setpoint, not rcDATA(throttle), for TPA 2022-01-25 18:37:01 +11:00
Štěpán Dalecký
420fb85759 Fix bugs found by cppcheck 2021-12-28 21:32:27 +01:00
haslinghuis
eb881efba1
Merge pull request #11114 from limonspb/msp_request_sliders_calculations
MSP commands for calculating/requesting but not setting simplified tuning/values
2021-12-21 00:10:57 +01:00
Ivan Efimov
d5c31accdf FW sliders: separate MSP commands for requesting calculations but not applying them into the FW 2021-12-19 04:00:50 -06:00
Steve Evans
29d221502e Use peak tracking as default for task duration estimation rather than a moving average 2021-12-17 22:09:52 +00:00
Steve Evans
ab1baccc66 Track state execution time for OSD, baro, rx and GPS tasks and inform scheduler of next state execution time 2021-12-17 15:40:01 +00:00
ctzsnooze
7b0b8ee35d Retain dynamic idle settings, reduce dependencies 2021-11-25 15:58:36 +11:00
ctzsnooze
4a485b4f12 msp add feedforward max_rate_limit and jitter_factor
move params to one block, remove whitespace
2021-11-15 10:18:31 +11:00
ctzsnooze
99a7479b8c consistent gyro and dterm filter names 2021-09-27 09:12:00 +10:00
Michael Keller
3c5275190a
Merge pull request #10919 from ctzsnooze/New-PID-sliders 2021-09-27 01:00:37 +13:00
ctzsnooze
90a2057179 pid slider support with changed defaults 2021-09-26 15:05:05 +10:00
KarateBrot
3ee3b54ad6 Change RPM filter minHz limit
- Changed lower limit of minHz from 50 to 30
- Added fadeRangeHz to blackbox header
- Renamed variables to fit BF coding convention
- Renamed CLI commands respectively
2021-09-10 13:21:51 +02:00
J Blackman
afe49c480f
Merge pull request #10585 from knoopx/stuning-dmin-def
hide DMIN RATIO unless USE_D_MIN
2021-09-06 14:20:47 +10:00
Michael Keller
7a8b40a670
Merge pull request #10777 from ctzsnooze/move-feedforward-transtion-calculation 2021-09-04 16:56:37 +12:00
KarateBrot
8649f1003f Dynamic notch refactoring
+ added new parameter group for Dyn Notch
2021-09-01 12:39:21 +12:00
ctzsnooze
5863015354 ifdef condition consistently applied, field names consistent, pg ID updated 2021-08-30 09:33:12 +10:00
Steve Evans
432b80167f Added non-blocking SPI DMA support for access to FLASH for BB 2021-07-25 23:58:46 +01:00
Steve Evans
87c8847c13 New SPI API supporting DMA
Call targetConfiguration() once before config is loaded and again afterwards in case the config needs to be changed to load from SD card etc

Drop SPI clock during binding

Remove debug

Add per device SPI DMA enable

Fix sdioPinConfigure() declaration warning

Reduce clock speed during SPI RX initialisation
2021-07-25 12:40:25 +12:00
Victor Martinez
059e5a12fe disable s.tuning DMIN RATIO when USE_D_MIN is undefined 2021-07-21 13:11:51 +02:00
KarateBrot
1ae31fd3d5 Dynamic notch bandwidth back to Q
+ simplified frequency estimation
2021-06-11 00:16:21 +02:00