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

16633 commits

Author SHA1 Message Date
ctzsnooze
34096c50f0 remove non-required parameters, simplify calling FF recalculation 2021-03-22 18:24:56 +11:00
Michael Keller
9cb2fdbf47
Merge pull request #10616 from Linjieqiang/IFLIGHT_H743_AIO_V2
Add support for board "IFLIGHT_H743_AIO_V2"
2021-03-22 15:30:18 +13:00
Michael Keller
10195f618f
Merge pull request #10612 from hydra/bf-h7adc2-fix 2021-03-21 22:31:45 +13:00
Michael Keller
faeee8282e
Merge pull request #10624 from klutvott123/improve-i2c-timing-register-calculation
Improve I2C_TIMINGR register calculation
2021-03-21 21:21:44 +13:00
Hans Christian Olaussen
ea86fe941b Improve I2C_TIMINGR register calculation 2021-03-19 11:42:11 +01:00
Dominic Clifton
5e710eedf2 Remove STM32H7A3xx ADC3 mappings and fix mappins for PC0-PC4. ADC3 is
not available.  See DS13195 Rev 6.
2021-03-19 10:58:52 +01:00
Dominic Clifton
8ecb7c051b Update the approach to support ADCDEV_x identifiers based on the CMSIS
`ADCx` defines.  The processor series (F/G/H) isn't enough.

With reference to the definitions of `ADCx_BASE` in the
`CMSIS/Device/ST/*/.h files`

* H7A3 has ADC1/2 but not 3/4/5.
* H750 has ADC1/2/3 not but 4/5.
* G471 has ADC1/2 but not 3/4/5.
* G473 has ADC1/2/3/4/5.
* F7 has ADC1/2/3 but not 4/5.
* F4 has ADC1/2/3 but not 4/5.
* F3 has ADC1/2/3/4 but not 5.
* F1 has ADC1/2/3 but not 4/5.
2021-03-19 10:41:03 +01:00
Michael Keller
b30f16fe91
Merge pull request #10622 from AlfredJKwack/patch-1
Update battery.md to reflect voltage units change
2021-03-16 01:07:33 +13:00
AlfredJKwack
3047453523
Update battery.md to reflect voltage units change
Somewhere along the way Betaflight changed the voltage units is uses for voltages from 0.1v to 0.01v
This update corrects the documentation of `vbat_max_cell_voltage`, `vbat_min_cell_voltage`, `vbat_warning_cell_voltage` to reflect that.
2021-03-14 11:22:23 +00:00
LinJieqiang
b109459601 Add support for board "IFLIGHT_H743_AIO_V2" 2021-03-12 17:22:40 +08:00
Dominic Clifton
c4d694821c STM32H7 - Fix failure to allow ADC instance 2 and 3. 2021-03-11 21:28:21 +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
Michael Keller
217a7906ca
Merge pull request #10567 from kc10kevin/G473_Timer_Fix 2021-02-26 02:02:00 +13: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
a81f07650b
Merge pull request #10535 from mikeller/exempt_milestones_from_staleness
Exempt issues and pull requests with a milestone from going stale.
2021-02-22 01:02:30 +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
Michael Keller
893d9812a1
Merge pull request #10509 from IllusionFpv/fix/tuning-sliders 2021-02-22 00:14:46 +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
Michael Keller
d82c048415
Merge pull request #10555 from etracer65/osd_element_print_float
Add a common function used to print formatted floats in the OSD
2021-02-19 00:00:14 +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
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
Michael Keller
e08302781e
Merge pull request #10552 from mikeller/fix_serial_parameter_group
Fixed use of an enum type in a parameter group.
2021-02-17 07:50:45 +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
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
Michael Keller
7ab910f13c
Merge pull request #10538 from mikeller/make_ci_fail_on_warnings
Make CI builds fail on warnings.
2021-02-14 13:59:44 +13:00
mikeller
bd5b773de3 Make CI builds fail on warnings. 2021-02-14 13:21:57 +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
Michael Keller
21eea5db21
Merge pull request #10539 from mikeller/remove_unneeded_include
Removed unneeded include from flash_w25n01g.c.
2021-02-13 17:42:30 +13: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