Commit Graph

15883 Commits

Author SHA1 Message Date
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
Bruce Luckcuck 703519512c
Merge pull request #9596 from betaflight/revert-9569-iterm-windup-setting-yaw-only
Revert "apply iterm_windup to yaw only"
2020-03-15 10:09:14 -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
Michael Keller 9d3a48b1b0
Merge pull request #9579 from IllusionFpv/max-rate-independent-of-deadband
Max rate independent of deadband
2020-03-15 10:15:58 +13:00
Bruce Luckcuck cb14206b96 Change BMI270 driver compilation to speed-optimized
Also move the "fake" gyro driver from speed to size-optimized.
2020-03-14 11:29:53 -04: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
Bruce Luckcuck 265d6dde2b CMS dynamic setup popup menu
Adds a dynamically constructed menu that will appear before the main menu when the user enters CMS if there are any outstanding setup items to complete. Currently only includes entry to calibrate the ACC if required, but provides a framework for other setup reminders as needed. The user can choose to exit this menu without remedying the problems, but the menu will reappear when they next enter CMS. If there are no required setup items then the menu will be skipped and the user will go straight to the main menu.
2020-03-12 11:45:44 -04:00
Michael Keller 1d8230f6ae
Merge pull request #9548 from jflyper/bfdev-g4-i2c
[G4] I2C support
2020-03-12 13:44:31 +13:00
Michael Keller 11ad602f3b
Merge pull request #9576 from mikeller/generalise_frame_rate_calculation
Generalised frame rate calculation.
2020-03-12 13:40:02 +13:00
mikeller f3ec114a2a Added custom (switch) box naming. 2020-03-12 07:04:24 +13:00
jflyper 00e57e6049 [G4] I2C support 2020-03-11 19:08:57 +09:00
Michael Keller d733c48b04
Merge pull request #9574 from IllusionFpv/increase-max-osd-srate-setting
Increase OSD srate max setting for using new rate systems
2020-03-11 22:32:28 +13:00
mikeller ad4cc3d74f Cleaned up the inclusion of the microcode for BMI270. 2020-03-11 20:47:43 +13:00
Michael Keller acdccd5a16
Merge pull request #9575 from jflyper/bfdev-i2c-new-clock
[I2C] Introduce computational I2C waveform configuration for HAL based MCUs
2020-03-11 20:29:04 +13:00
Nicola De Pasquale db3d71a267 validation for all rate profiles 2020-03-11 01:15:19 +01:00
mikeller 9a3ae13038 Added some more legacy targets. 2020-03-11 12:54:52 +13:00
mikeller 1852d65106 Generalised frame rate calculation. 2020-03-11 12:47:27 +13:00
Michael Keller a18a19a434
Merge pull request #9572 from mikeller/redo_unified_targets
Rearranged how Unified Targets are defined.
2020-03-11 11:28:49 +13:00
Michael Keller 4f71de63a3
Merge pull request #9564 from mikeller/cleaned_up_rx_handler
Cleaned up the RX handler some.
2020-03-11 11:27:09 +13:00
Nicola De Pasquale 5adc8d5ce6 add validation based on rates type 2020-03-10 21:28:29 +01:00
jflyper ec2aac314d [I2C] Introduce computational I2C waveform configuration for HAL based MCUs
Tested with
Nucleo-F722ZE I2C1 on PB8,PB9
Nucleo-H743ZI I2C1 on PB8,PB9 and I2C4 on PF14,PF15
2020-03-10 12:11:50 +09:00
jflyper 0bb5c021ea
Merge pull request #9567 from jflyper/bfdev-h7-initialize-i2c-peripheral-clock-explicitly
[H7] Explicitly initialize I2C peripheral clock sources
2020-03-10 12:10:34 +09:00
Nicola De Pasquale 4519935c92 increase srate max setting for using new rate systems 2020-03-09 21:33:10 +01:00
mikeller a126a0449a Rearranged how Unified Targets are defined. 2020-03-10 03:25:40 +13:00
mikeller d13e83b91b Cleaned up the RX handler some. 2020-03-10 00:55:52 +13:00
Michael Keller 6a6fd23742
Merge pull request #9562 from mikeller/added_master_warning
Added warning about pull requests from 'master'.
2020-03-10 00:49:24 +13:00
Michael Keller a763ea14b2
Merge pull request #9563 from mikeller/fixed_frsky_spi_rx_frame_handling
Fixed frame handling for FrSky SPI RX.
2020-03-10 00:32:10 +13:00
Michael Keller 28bd628a3b
Merge pull request #9565 from mikeller/switch_sbus_to_generic_frame_time
Switched SBus to use the generic last frame time function.
2020-03-10 00:31:27 +13:00
jflyper 87d2485f86 [H7] Initialize I2C peripheral clock sources
This has been left out with default which was okay, but do it
explicitly for clarity.
2020-03-09 12:30:35 +09:00
Michael Keller 55a0c0129a
Merge pull request #9560 from etracer65/add_msp_rc_smoothing_auto_factor_validation
Add validation to MSP for the rc_smoothing_auto_factor setting
2020-03-09 13:23:38 +13:00
Michael Keller 49cb39f248
Merge pull request #9558 from etracer65/revise_pid_process_denom_default_again
Revise pid_process_denom default logic - second try
2020-03-09 13:23:23 +13:00