1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 05:15:25 +03:00
Commit graph

16844 commits

Author SHA1 Message Date
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
AlfredJKwack
60b9c66aa4
Doc update voltages
Updated value ranges as well now.
2021-03-18 18:22:44 +00: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
466cb5a4de
Update cli.md to vbat_xx_cell_voltage range to v0
Updated `vbat_max_cell_voltage`, `vbat_min_cell_voltage`, `vbat_warning_cell_voltage` to reflect the change from 0.1v to 0.01v ranges.
2021-03-14 11:44:29 +00: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
Tony Cake
d814bd1e9a Keep the formatting police happy 2021-03-10 04:30:18 -08:00
Steve Evans
80e9e8eddd Use non-blocking access to dps310 gyro 2021-03-10 02:35:50 +00:00
Steve Evans
bb119e95c5 Display late execution stats in tasks command 2021-03-08 17:46:31 +00:00
Bruce Luckcuck
e74f47a26e Fix CMS RSSI dBm alarm data type and range
Data type was `uint8` and needed to be `int16` to accomodate the range change to negative numbers.
2021-03-07 09:55:15 -05:00
Thomas Stibor
d7c52ffb8b CLI name ibus_report_cell_voltage is replaced by report_cell_voltage
CLI name ibus_report_cell_voltage does not exist anymore. It is replaced
by the unified name: report_cell_voltage.
2021-03-07 14:16:27 +01:00
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
Michael Keller
217a7906ca
Merge pull request #10567 from kc10kevin/G473_Timer_Fix 2021-02-26 02:02:00 +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
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
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
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
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