1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 23:35:34 +03:00
Commit graph

14003 commits

Author SHA1 Message Date
Tony Cabello
5932b01e6b SBAS_NONE, gps_sbas_integrity 2020-03-22 18:54:03 +01:00
jflyper
433bf792f8 [ADC] Fix ADC5_DMA_OPT def 2020-03-22 20:53:43 +09:00
jflyper
e4954333d3 [ADC] Remove MAX_ADC_SUPPORTED and related assertion 2020-03-22 19:42:06 +09:00
ctzsnooze
d63ba914c6 motor output scale
First draft

Change method to percentage compensation

fast sag filter with fast battery updates

Renaming, moving factors to init where possible

Names changed, display update frequency reverted to 50hz as it was

50Hz ESC Voltage sampling, battery sag lowpass for PID compensation.

increment PG_PID_PROFILE, element added to end of batteryConfig_t

all HZ_TO_INTERVALs set back to 200 to match battery task frequency of 200hz.

Add a flag to control vbat comp

Flag vbat_sag_comp_enabled allows battery compensation to be enabled or
disabled from the CLI. When disabled the battery voltage task is run at
50Hz and the battery compensation code is not run. When enabled the
voltage task is run at 200Hz and the compensation code runs. Constants
for the fast and slow rates are added to tasks.h. The default value for
vbat_sag_compensation is changed to 100 as we no longer need to use it
to disable the feature.

Fixed variable task frequency setting.

Added config validation to disable sag compensation unless ADC is used as the voltage data source.

Added conditionals, fixed naming.

Fixed build.
2020-03-22 17:15:08 +13:00
Tony Cabello
720d994a90 minor fix: missing ifdef and autoconfig check 2020-03-21 16:27:02 +01:00
Tony Cabello
5209a83e6a Bug fix: absolute altitude before arming is now correct when using GPS and Baro 2020-03-21 16:26:30 +01:00
Michael Keller
9c3d4603b7
Merge pull request #9613 from etracer65/cc2500_register_init_array
cc2500: Use array-based register initialization
2020-03-21 14:57:41 +13:00
Michael Keller
5bbb238fd8
Merge pull request #9612 from etracer65/cms_osd_elements_update
Add RC channels, camera frame, efficiency elements to CMS OSD menu
2020-03-21 11:21:15 +13:00
Michael Keller
04dd72969f
Merge pull request #9610 from jflyper/bfdev-h7-add-missing-SPI1_MOSI-pin
[H7] Add missing SPI1_MOSI pin
2020-03-21 01:14:13 +13:00
Michael Keller
02c92a034c
Merge pull request #9608 from etracer65/fix_mixer_profile_init
Fix initialization of mixer related pidProfile settings
2020-03-21 01:09:06 +13:00
Bruce Luckcuck
6f7318cd2d Add RC channels, camera frame, efficiency elements to CMS OSD menu 2020-03-20 07:58:59 -04:00
Bruce Luckcuck
c298076bb3 cc2500: Use array-based register initialization
Store and process the register initializations in a `const` array and process iteratively instead of individual register write calls.

Saves 712 bytes for STM32F7X2 target.
2020-03-19 19:17:04 -04:00
jflyper
cdd635849d [H7] Add missing SPI1_MOSI pin 2020-03-19 14:08:39 +09:00
Bruce Luckcuck
37069ba267 Fix initialization of mixer related pidProfile settings
Previously the variables were only initialized at boot and were not updated when the pidProfile changed.
2020-03-18 10:38:31 -04:00
Michael Keller
792090e37f
Merge branch 'master' into redpine_rebase2 2020-03-18 23:46:02 +13:00
Michael Keller
95e4087641
Merge pull request #9601 from DavidBoone/efficiency-osd
Efficiency OSD element in mAh/km or mAh/mi
2020-03-18 23:24:27 +13:00
LinJieqiang
39b7c15f70 [IF_H7_TWING] Fix timer assignment error, adjust sensor orientation. 2020-03-18 17:17:20 +08:00
brycedjohnson
97c8952921 Redpine fast and slow protocols for cc2500 2020-03-17 19:17:21 -06:00
David Boone
93635f62aa Efficiency OSD element in mAh/km or mAh/mi 2020-03-17 15:51:46 -07:00
Michael Keller
ed6175b22c
Merge pull request #9597 from etracer65/iterm_windup_yaw_only
Change iterm_windup to only apply to yaw
2020-03-17 22:05:02 +13:00
Miguel Angel Mulero Martinez
40cb515c00 Fix OSD dbm element size 2020-03-16 10:26:07 +01:00
Michael Keller
9b6911f80c
Merge pull request #9595 from mikeller/add_rx_spi_exti_frame_time_monitoring
Added EXTI based frame timing measuring for RX SPI receivers.
2020-03-16 18:03:00 +13:00
Michael Keller
69e1f6c8c8
Merge pull request #9592 from mikeller/fix_crsf_rf_mode
Fixed CRSF RF mode indication on link loss.
2020-03-16 18:02:51 +13:00
Michael Keller
01f0095296
Merge pull request #9590 from mikeller/clean_up_scheduler
Cleaned up the scheduler.
2020-03-16 18:02:36 +13:00
Michael Keller
a6d84a82a7
Merge pull request #9588 from mikeller/clean_up_lq_calculation
Made LQ calculation comply with coding standards.
2020-03-16 18:02:15 +13:00
Michael Keller
2e6b49516e
Merge pull request #9587 from mikeller/fix_crsf_rssi_collection
Fixed collection of RSSI data for CRSF.
2020-03-16 17:50:45 +13:00
Michael Keller
4fbfc4a69b
Merge pull request #9586 from mikeller/make_rssi_inversion_generic
Made RSSI inversion apply to all RSSI sources.
2020-03-16 17:50:31 +13:00
Michael Keller
6a2666dad8
Merge pull request #9591 from mikeller/revert_9215_vendor_specific_displayport_init
Revert #9215: Vendor specific displayport initialisation.
2020-03-16 16:42:16 +13:00
mikeller
db4bd1f186 Cleaned up the scheduler. 2020-03-16 08:35:58 +13:00
Bruce Luckcuck
e76fd50421 Change iterm_windup to only apply to yaw
Except for when Launch Control is active - then apply to all axes.
2020-03-15 13:03:02 -04:00
Michael Keller
ea4f30c3ac
Revert "apply iterm_windup to yaw only" 2020-03-16 02:00:50 +13:00
mikeller
0db4160995 Added EXTI based frame timing measuring for RX SPI receivers. 2020-03-16 01:29:17 +13:00
mikeller
0062bc4100 Fixed CRSF RF mode indication on link loss. 2020-03-15 14:44:26 +13:00
Michael Keller
6ed4c0fbee
Merge pull request #9583 from etracer65/gyro_temperature_read_rate
Reduce gyro temperature read rate from 250hz to every 3 seconds
2020-03-15 14:14:42 +13:00
Michael Keller
05c90001ee
Merge pull request #9580 from etracer65/cms_setup_popup
CMS dynamic setup popup menu
2020-03-15 14:14:28 +13:00
Michael Keller
04d260d620
Merge pull request #9569 from ctzsnooze/iterm-windup-setting-yaw-only
apply iterm_windup to yaw only
2020-03-15 13:52:18 +13:00
mikeller
e9cb979cd8 Revert #9215: Vendor specific displayport initialisation. 2020-03-15 13:42:56 +13:00
mikeller
945ee706b9 Made LQ calculation comply with coding standards. 2020-03-15 11:31:41 +13:00
mikeller
b58954d845 Made RSSI inversion apply to all RSSI sources. 2020-03-15 11:14:11 +13:00
mikeller
db18051135 Fixed collection of RSSI data for CRSF. 2020-03-15 11:01:08 +13:00
Michael Keller
b729c3cc99
Merge pull request #9582 from etracer65/gyro_init_separate
Split initialization from gyro.c for flash savings
2020-03-15 10:16:30 +13:00
Nicola De Pasquale
cfe7272050 moved some variables 2020-03-13 23:40:02 +01:00
mikeller
53ba871a34 Fixed unit tests. 2020-03-14 10:19:33 +13:00
ctzsnooze
269fdd0a24 might work
improve

remove const
2020-03-14 10:19:30 +13:00
Nicola De Pasquale
57a5fd937a precalculate divisors in initRcProcessing 2020-03-13 20:18:16 +01:00
Nicola De Pasquale
04e5e3bf24 max rate independent of deadband 2020-03-13 20:15:05 +01:00
Bruce Luckcuck
780da90037 Reduce gyro temperature read rate from 250hz to every 3 seconds
If the gyro supports it, the temperature is read as part of the telemetry task to be supplied in several protocols. There's absolutely no reason to read the gyro temperature at 250hz for this purpose and the temperature shouldn't be changing rapidly anyway. Revise to read a new temperature every 3 seconds which should be more than sufficient.

Has no impact at the moment as no actively used gyro supports temperature reads but may be used in the future.
2020-03-13 10:50:41 -04:00
Bruce Luckcuck
ad0e7154a7 Split initialization from gyro.c for flash savings
Move low performance requirements initialization code into gyro_init.c and optimize that for size.
2020-03-13 10:08:11 -04:00
Michael Keller
d9fedb5024
Merge pull request #9578 from mikeller/add_custom_box_names
Added custom (switch) box naming.
2020-03-13 13:16:07 +13:00
Michael Keller
e38fd8c6f5
Merge pull request #9577 from mikeller/cleanup_bmi270_microcode_inclusion
Cleaned up the inclusion of the microcode for BMI270.
2020-03-13 11:16:44 +13:00