1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00
Commit graph

14581 commits

Author SHA1 Message Date
Nicola De Pasquale
d1ab041103 move simplified tuning parameters by 5pt 2021-02-25 21:54:59 +01:00
Davor Kustec
dd184dd67f Named everything well 2021-02-25 18:07:18 +01:00
Michael Keller
bc4372588b
Merge pull request #10576 from mikeller/fix_stm32g4_timer
Fixed incorrect timer mapping for STM32G4.
2021-02-26 02:11:25 +13:00
mikeller
2b8e65374e Fixed initialisation of DPS310 when used over I2C. 2021-02-26 02:09:17 +13:00
Victor Martinez
179cd9b162 fix: linking error when USE_MSP_DISPLAYPORT is undefined 2021-02-25 10:10:00 +01:00
Kevin Berner
8b55e3ffb2 Fix G473 AF5 Timers 2021-02-22 10:39:17 -06:00
mikeller
97fcfe5e9d Fixed incorrect timer mapping for STM32G4. 2021-02-22 22:37:54 +13:00
Michael Keller
7cce28131f
Merge pull request #10565 from TheIsotopes/simplified_dterm_filter_defaults
setting simplified_dterm_filters to off by defaults
2021-02-22 01:18:55 +13:00
Michael Keller
6dea123d2f
Merge pull request #10563 from etracer65/fix_vbat_hysteresis
Fix vbat_hysteresis docs and potential calculation underflow
2021-02-22 00:16:19 +13:00
Nicola De Pasquale
3f3c143199 refactor calculateNewPidValues function
roll pitch ratio now increase pitch

constrain dmin ratio, disable dmin if multiplier is 200

fix apply simplified tuning
2021-02-19 22:55:44 +01:00
Michael Keller
2d2ced105c
Merge pull request #10559 from alexeystn/fix_boxparalyze_disarm 2021-02-19 00:40:24 +13:00
TheIsotopes
246d3a6d89
setting simplified_dterm_filters to off by defaults
all over simplified tuning settings also set to off
2021-02-18 11:04:20 +01:00
Alexey Stankevich
2eb787a5ad Do not disable RcAdjustments if paralyze when armed 2021-02-18 00:32:10 +03:00
Bruce Luckcuck
b974408c6a Fix vbat_hysteresis docs and potential calculation underflow 2021-02-17 11:56:14 -05:00
Tony Cake
8d7dfba207 Modify serial drivers to add a workaround for SmartAudio, which was
broken by the fix for #10220.
Smart Audio will now default to the old (bad) behavior where pulldowns
are being used instead of pullups for most BF supported processors when
in Bidirectional, PushPull mode.
2021-02-17 05:26:52 -08:00
Bruce Luckcuck
b5bf9c2b4c Add a common function used to print formatted floats in the OSD
Updated the OSD element and stats rendering code to use this fuction to print floating point values of varying precisions.

Will make adding OSD element variants that provide different decimal precisions (like voltage, amperage, etc.) easy to implement since all that needs to change is the `decimalPlaces` passed to the function. As an example, see the `osdFormatAltitudeString()` function.

If at some later date a more capable `printf` package is inplemented, then the guts of the `osdPrintFloat()` function could just be simplified while leaving the abstraction in place.
2021-02-17 08:09:52 -05:00
Michael Keller
26b74c3350
Merge pull request #9878 from dkustec/cell_stat_value_instead_batt 2021-02-18 00:51:42 +13:00
Michael Keller
e331111789
Merge pull request #10551 from etracer65/osd_altitude_element_variants
Add OSD element variants for altitude
2021-02-18 00:20:18 +13:00
Davor Kustec
78e4e930a4 Code optimization by request
Moved setting to the end of the struct

osd.c optmization

Changed bool into uint8t to mainatin fixed PG size
2021-02-17 12:06:45 +01:00
Alexey Stankevich
c72e7ac568 Fix disabled disarm when Paralyze is activated in armed state 2021-02-17 00:51:28 +03:00
Michael Keller
d2867ef9ce
Merge pull request #10540 from etracer65/osd_warnings_msp
Separate OSD warnings from OSD task and make available via MSP
2021-02-17 07:52:37 +13:00
mikeller
ae4c260d74 Fixed use of an enum type in a parameter group. 2021-02-16 01:49:10 +13:00
Michael Keller
8c2a8f717a
Merge pull request #10550 from etracer65/fix_serialportidentifier_enum 2021-02-16 00:58:38 +13:00
Michael Keller
f5dd6f7cfa
Merge pull request #10542 from mikeller/improve_osd_type_mask_naming
Improved the naming of OSD_TYPE_MASK to be more concise.
2021-02-16 00:24:08 +13:00
Bruce Luckcuck
9b66ef31eb Add OSD element variants for altitude
Variant 1 (default): Altitude displays with one decimal place. No change in behavior.

Variant 2: Altitude displays as whole number (no decimal) so it will represent meters or feet depending on the units selected.
2021-02-14 20:11:33 -05:00
Bruce Luckcuck
090ccf5b6d Fix out of range in serialPortIdentifier_e enum 2021-02-14 19:10:01 -05:00
Michael Keller
aeb2a4f381
Merge pull request #10516 from etracer65/level_mode_expo
Self-level modes expo
2021-02-14 17:25:16 +13:00
mikeller
b53b2fe76c Made the displayport initialisation consistent for all telemetry protocols. 2021-02-14 16:44:52 +13:00
mikeller
200ff138d6 Improved the naming of OSD_TYPE_MASK to be more concise. 2021-02-14 16:04:56 +13:00
Michael Keller
28d3156e8b
Merge pull request #10517 from etracer65/osd_element_types
Add support for OSD element type variants
2021-02-14 16:01:37 +13:00
Michael Keller
bd5c813bb8
Merge pull request #10489 from etracer65/msp_displayport_serial_validation
Fix incorrect displayport_msp_serial default and add validation
2021-02-14 15:31:46 +13:00
Michael Keller
5506a0eb77
Merge pull request #10490 from etracer65/msp_serial_push_fix
Fix mspSerialPush() selected serial port logic
2021-02-14 15:31:31 +13:00
Bruce Luckcuck
84b6730cdd Separate OSD warnings from OSD task and make available via MSP
Provides a properly implemented way for MSP query type OSD implementations (like DJI) to display OSD warnings. Separates the warnings generation from the OSD task and shares common code to make the text available for the OSD and/or via MSP. Eliminates the need to implement hacks and workarounds like using the `CRAFT_NAME` field to display warnings. Since the warnings logic is now separate, the OSD task does not need to be running unlike other hacks.

Adds the `MSP2_GET_OSD_WARNINGS` message formatted as follows:
```
byte  description
0     Display attributes including blink (see displayPortAttr_e in drivers/display.h)
1     Length of warning text
2-n   Warning text characters
```
2021-02-13 14:11:38 -05:00
mikeller
b8743c40cd Removed unneeded include from flash_w25n01g.c. 2021-02-11 03:09:00 +13:00
Michael Keller
e4536476e6
Merge pull request #10537 from haslinghuis/fix_compile_warning
Fix compiler warning
2021-02-11 02:36:13 +13:00
Michael Keller
3b6c091f09
Merge pull request #10534 from mikeller/fix_cc2500_spi_transactions
Fixed detection of CC2500 with SPI transactions enabled.
2021-02-11 02:35:57 +13:00
Mark Haslinghuis
cc3824a7c5 Fix compiler warning 2021-02-09 13:16:13 +01:00
Michael Keller
3a004b3ff4
Merge pull request #10506 from IllusionFpv/fix/msp-tuning-sliders-comments
Fix msp version in comments for simplified tuning
2021-02-09 23:43:47 +13:00
mikeller
a639511b23 Fixed detection of CC2500 with SPI transactions enabled. 2021-02-09 23:27:52 +13:00
Nicola De Pasquale
19c85f3724 fix msp version in msp tuning sliders comments 2021-02-08 23:49:04 +01:00
Michael Keller
29f6dd0c8d
Merge pull request #10417 from bobbycisneros/master 2021-02-08 16:40:54 +13:00
Michael Keller
08be1039ff
Merge pull request #10508 from IllusionFpv/fix/dyn-lpf-gyro-curve-expo-wrong-variable-size
dyn_lpf_curve_expo is uint8, not uint16
2021-02-08 16:40:34 +13:00
Michael Keller
750d1c4da2
Merge pull request #10507 from IllusionFpv/fix/default-dyn-gyro-lpf-curve-expo
Revert default dyn_lpf_expo_curve value for gyro
2021-02-08 16:38:24 +13:00
Michael Keller
df849e8287
Merge pull request #10486 from krzysztofkuczek/dashboard_bb_page 2021-02-08 16:16:56 +13:00
Michael Keller
1aa3d943e3
Merge pull request #10485 from etracer65/msp_displayport_video_system
Make MSP displayPort respect the NTSC/PAL setting
2021-02-08 16:14:39 +13:00
Michael Keller
2480b37b22
Merge pull request #10487 from mikeller/fix_unused_settings 2021-02-08 16:12:53 +13:00
Michael Keller
dee434ad66
Merge pull request #10484 from etracer65/cms_page_indicator
Add up/down page indicator to CMS menu display
2021-02-08 16:12:02 +13:00
Michael Keller
f77b6a59c3
Merge pull request #10481 from mikeller/fix_baro_sample_count_setting
Fixed incorrect parameter value for barometer sample count.
2021-02-08 16:09:08 +13:00
Robert Cisneros
9e5cdbf2be Enable Up/Down reference for artificial horizon in OSD
This mod adds an arrow symbol showing the location of the up/down on the OSD.  The arrow direction points in the direction of up or down.

Update osd_elements.c

Making the Up/Down OSD reference its own element

Removing the Up/Down reference from the artificial horizon and making a specific element for this feature.  Activation via CLI (for now)

Updates to Up/Down refernce OSD element

Changed the up/down reference so that it is its own separarte element.  The position is absolute on the screen and immutable by the user for consistent operation. Updated settings to include CLI option for turning the feature on and off.

Update cms_menu_osd.c

Updated file to add Up/Down reference selection from OSD menu

Updates to simplify/correct Up/Down OSD element

Simplified/corrected logic and removed arcsine function.  OSD up/down reference is now positionable by the user in the configurator.

Tweaks and codestyle updates

Feedback from Michael Keller

Updates to Up/Down OSD indicator

Created a bounding box of +/- 25 degrees for indicator

Coding style correction

minor correction to match BF coding style

Enable Up/Down reference in OSD

This mod adds an arrow symbol showing the location of the up/down on the OSD.  The arrow direction points in the direction of up or down.

Update osd_elements.c

Making the Up/Down OSD reference its own element

Removing the Up/Down reference from the artificial horizon and making a specific element for this feature.  Activation via CLI (for now)

Updates to Up/Down refernce OSD element

Changed the up/down reference so that it is its own separarte element.  The position is absolute on the screen and immutable by the user for consistent operation. Updated settings to include CLI option for turning the feature on and off.

Updates to simplify/correct Up/Down OSD element

Simplified/corrected logic and removed arcsine function.  OSD up/down reference is now positionable by the user in the configurator.

Tweaks and codestyle updates

Feedback from Michael Keller

Enable Up/Down reference for artificial horizon in OSD

This mod adds an arrow symbol showing the location of the up/down on the OSD.  The arrow direction points in the direction of up or down.

Update osd_elements.c

Making the Up/Down OSD reference its own element

Removing the Up/Down reference from the artificial horizon and making a specific element for this feature.  Activation via CLI (for now)

Updates to Up/Down refernce OSD element

Changed the up/down reference so that it is its own separarte element.  The position is absolute on the screen and immutable by the user for consistent operation. Updated settings to include CLI option for turning the feature on and off.

Updates to simplify/correct Up/Down OSD element

Simplified/corrected logic and removed arcsine function.  OSD up/down reference is now positionable by the user in the configurator.

Tweaks and codestyle updates

Feedback from Michael Keller

Coding style correction

minor correction to match BF coding style

Enable Up/Down reference for artificial horizon in OSD

This mod adds an arrow symbol showing the location of the up/down on the OSD.  The arrow direction points in the direction of up or down.

Update osd_elements.c

Making the Up/Down OSD reference its own element

Removing the Up/Down reference from the artificial horizon and making a specific element for this feature.  Activation via CLI (for now)

Updates to Up/Down refernce OSD element

Changed the up/down reference so that it is its own separarte element.  The position is absolute on the screen and immutable by the user for consistent operation. Updated settings to include CLI option for turning the feature on and off.

Updates to simplify/correct Up/Down OSD element

Simplified/corrected logic and removed arcsine function.  OSD up/down reference is now positionable by the user in the configurator.

Tweaks and codestyle updates

Feedback from Michael Keller

Corrections to unit tests

Corrected unit tests link failing due to not being able to find rMat[3][3]
2021-02-08 16:03:45 +13:00
Ilya Epifanov
448b49685a fix SPI FRSKY_X/FRSKY_X_LBT after adding ACCST 2.1 support 2021-02-07 02:27:40 +01:00