Commit Graph

15812 Commits

Author SHA1 Message Date
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
Michael Keller 90228a5e30
Merge pull request #9550 from mikeller/add_crsf_rx_snr_display
Added option to display RX SNR dB for CRSF instead of RSSI dBm.
2020-03-09 13:23:07 +13:00
mikeller f217839362 Updated more documentation to match the template. 2020-03-09 13:00:35 +13:00
Michael Keller d741f92721
Merge pull request #9549 from etracer65/bmi270_support_final
Add support for Bosch BMI270 gyro/accelerometer sensor
2020-03-09 12:57:13 +13:00
Bruce Luckcuck 7f03b42ac0 Required modifications to the BoschSensortec/BMI270-Sensor-API library 2020-03-08 18:58:16 -04:00
Bruce Luckcuck 447cbac988 Add support for Bosch BMI270 gyro/accelerometer sensor 2020-03-08 18:56:50 -04:00
Michael Keller 2bcd8a3075
Merge pull request #9554 from TheIsotopes/patch-1
fixes wrong comparison operators
2020-03-09 02:14:54 +13:00
mikeller da5be59ff2 Switched SBus to use the generic last frame time function. 2020-03-08 18:55:45 +13:00
Michael Keller 6cbdf74d56
Merge pull request #9551 from mikeller/update_pre_push
Removed legacy targets from 'pre-push' target.
2020-03-08 18:34:46 +13:00
mikeller e387400970 Fixed frame handling for FrSky SPI RX. 2020-03-08 17:20:31 +13:00
mikeller 30b284b494 Added warning about pull requests from 'master'. 2020-03-08 14:08:30 +13:00
Bruce Luckcuck 15ec707a0b Add validation to MSP for the rc_smoothing_auto_factor setting
This is a workaround for a validation bug in configurator 10.6 where the user can enter an invalid value, immediately click "Save" and that value will be stored before the value is range-checked. Added validation to the MSP message processing to constrain the range to prevent a dangerous result.
2020-03-07 18:48:23 -05:00
Michael Keller 7e4d8c10ee
Merge pull request #9511 from mikeller/add_rc_frame_interval_measurement
Added protocol level RX frame rate measurement for FrSky FPort.
2020-03-08 12:42:22 +13:00
Bruce Luckcuck 6c5b78951a Revise pid_process_denom default logic - second try
This is a revision and partial revert of #9545.

While the previous version improved the behavior for non-8K gyros, it had some unfortunate side effects on the defaults and how they affected the output of the `diff`. Basically the problem is that in most cases the default value will end up getting adjusted during the first boot to work with the default low-speed motor protocol ONESHOT125. So if an appropriate default was originally set (like in the other PR) it shows up changed in the `diff` with default settings. The only workaround is to set the default to be the expected "corrected" value when ONESHOT125 is taken into account. This unfortunately reverts to the not so great behavior for gyros that have a sample rate < 8K, but that's unavoidable.

The inappropriate logic based on the `USE_` for various gyros being defined is still removed. This makes no sense in the unified targets context and was trying to determine if there's an SPI-connected gyro so that means it's going to run at 8K, but if not then it's going to be I2C and 2K, etc. This no longer makes sense.
2020-03-07 14:03:16 -05:00
TheIsotopes b895e91552
fixes wrong comparison operators
fixes #9553 made in #9546
2020-03-07 09:37:18 +01:00
mikeller a36c18dd88 Removed legacy targets from 'pre-push target. 2020-03-07 17:38:50 +13:00
mikeller d0cf12a52b Added option to display RX SNR dB for CRSF instead of RSSI dBm. 2020-03-07 17:29:21 +13:00
Michael Keller c002d04356
Merge pull request #9546 from etracer65/fix_cli_led_validation
Fix CLI LED command validation
2020-03-07 15:58:39 +13:00
Michael Keller e87c6fec52
Merge pull request #9545 from etracer65/pid_process_denom_default
Revise pid_process_denom default logic
2020-03-07 15:57:37 +13:00
Michael Keller a67df68f2c
Merge pull request #9544 from etracer65/simplify_pid_motor_pwm_validation
Simplify and improve motor protocol PID loop limiting
2020-03-07 15:56:22 +13:00
Michael Keller aea38be686
Merge pull request #9539 from Asizon/mspDynamicIdle
Add Dynamic Idle to msp
2020-03-07 15:54:00 +13:00
Michael Keller f0739906b2
Merge pull request #9530 from mikeller/display_custom_defaults_errors
Show errors when resetting to custom defaults.
2020-03-07 15:35:31 +13:00