Commit Graph

13432 Commits

Author SHA1 Message Date
Michael Keller c73a2787ee
Merge pull request #7567 from fujin/RIP-32kHz-mode
Gyro Sensors: Remove 32kHz gyro sampling mode(s) and associated code
2019-02-14 19:45:14 +13:00
AJ Christensen 4fdee6ec1c Gyro Sensors: Remove 32kHz gyro sampling mode(s) and associated code 2019-02-13 22:41:21 +13:00
Michael Keller dbd4fe9b3d
Merge pull request #7566 from klutvott123/battery-pt1-filter
Change battery filters from biquad to pt1
2019-02-13 21:47:24 +13:00
Michael Keller 8c0e5d81e0
Merge pull request #7461 from fujin/smartaudio-21-compat
SmartAudio: Handle SA2.1 GET SETTINGS response.
2019-02-13 21:34:52 +13:00
Michael Keller b2c0d01558
Merge pull request #7484 from joelucid/lpf_filter_changes
increase possible Q to 30, default Q to 5 and set scheduler optimize.
2019-02-13 21:21:28 +13:00
jflyper 5d5447abd8 Use vtxTramp directly instead of calling vtxCommonDevice within the driver 2019-02-13 09:44:50 +09:00
Hans Christian Olaussen 62fafe8041 Change current/voltage filters from biquad to pt1 2019-02-12 22:34:16 +01:00
Hans Christian Olaussen b8bfc7ce12 Change Pt1 cutoff from uint16_t to float 2019-02-12 22:34:16 +01:00
Hans Christian Olaussen f625cb261c Define HZ_TO_INTERVAL macro 2019-02-12 22:34:15 +01:00
jflyper d3d111dbb6 Fix power indexhandling 2019-02-13 05:29:55 +09:00
Thorsten Laux 602b33faf1 rpm_lpf -> rpm_notch_rpf 2019-02-12 14:44:39 +01:00
Michael Keller 988d0a9b5c
Merge pull request #7565 from mikeller/rename_alienflightf4
Renamed board ALIENFLIGHTNGF4 to ALIENFLIGHTF4 after comment in #7561.
2019-02-13 02:29:26 +13:00
Thorsten Laux 76add010b5 don't change scheduler policy in filter 2019-02-12 13:05:52 +01:00
Thorsten Laux ceabd5098d disable dshot telemetry if scheduler policy not set 2019-02-12 12:54:21 +01:00
Thorsten Laux 4c39bba18c Fix spacing 2019-02-12 12:06:26 +01:00
Thorsten Laux 81a514c9ac increase possible Q to 30, default Q to 10 and set scheduler optimize rate policy by default 2019-02-12 11:25:48 +01:00
AJ Christensen d459c170eb SmartAudio: Handle SA2.1 GET SETTINGS response. 2019-02-12 13:17:09 +13:00
Michael Keller aaaf313747
Merge pull request #7563 from etracer65/vcp_hal_tx_buffer_fixes
VCP HAL transmit buffer fixes
2019-02-12 01:45:14 +13:00
mikeller a452fb9d4b Renamed board ALIENFLIGHTNGF4 to ALIENFLIGHTF4 after comment in #7561. 2019-02-12 00:55:09 +13:00
Michael Keller 6e023b9e05
Merge pull request #7560 from mikeller/fix_msc_activation
Fixed USB MSC activation over MSP. Also fixed fallthrough in case of invalid reboot type.
2019-02-11 22:28:58 +13:00
Michael Keller 93edcaf30c
Merge pull request #7546 from mikeller/fix_battery_filtering
Fixed battery filtering when period is not a multiple of 10.
2019-02-11 11:39:29 +13:00
Michael Keller bbcb47d348
Merge pull request #7558 from etracer65/fix_f1_targets
Fix compiliation for F1 targets
2019-02-11 11:39:12 +13:00
Michael Keller b7dd7030e8
Merge pull request #7559 from etracer65/d_min_cleanup
D_MIN cleanup - use array for parameters; move CMS menu entries
2019-02-11 11:34:33 +13:00
Bruce Luckcuck 6a69df82cf
Merge pull request #2 from jflyper/vcp_hal_tx_buffer_fixes
Add concurrency control
2019-02-10 15:31:14 -05:00
jflyper 1e49419a8a Add concurrency control 2019-02-11 04:49:00 +09:00
J Blackman 038d3969e9
Merge pull request #7561 from mikeller/add_board_manufacturer_names
Added permanent board names / manufacturer ids for unified targets.
2019-02-11 03:27:43 +11:00
Bruce Luckcuck 620a3c3be4 VCP HAL transmit buffer fixes
Fixes issues that could cause the tail of the ring buffer to be moved before data transmission is complete thus allowing the head to overwrite unsent data. Also adds 512 byte blocking when queueing the output data with the endpoint (helps with slow receivers).

Fixes a bug in the transmit buffer logic if the TX and RX buffers were different sizes.
2019-02-10 07:35:57 -05:00
mikeller 73776c2b22 Added permanent board names / manufacturer ids for unified targets. 2019-02-10 17:42:31 +13:00
mikeller 858c55af74 Fixed USB MSC activation over MSP. Also fixed fallthrough in case of invalid reboot type. 2019-02-10 14:59:13 +13:00
Michael Keller d63878aebc
Merge pull request #7553 from etracer65/osd_profile_switch_msp_cms
Add OSD profile switching to MSP and CMS
2019-02-10 12:55:55 +13:00
Michael Keller 640b6803c4
Merge pull request #7554 from etracer65/osd_use_acc
More OSD USE_ACC dependencies
2019-02-10 12:55:43 +13:00
Bruce Luckcuck a64bd06f5a D_MIN cleanup - use array for parameters; move CMS menu entries
Change to using an array of `uint8_t` for the `d_min_` axis parameters. Simplifies the code.

The CMS menu entries were incorrectly placed under the `FILTER PP` submenu. Moved to the `MISC PP` submenu.
2019-02-09 15:40:27 -05:00
Michael Keller ca98ee7df0
Merge pull request #7538 from ctzsnooze/D_Cut_Setpoint_DMin
Update D_CUT to D_MIN, add setpoint input, change nomenclature
2019-02-10 08:39:38 +13:00
Bruce Luckcuck 87b077b59b Fix compiliation for F1 targets
Fix a missing MCU check for ADC devices and reduce the number of profiles/rateprofiles to 2 and 3 respectively to get the config under 2K.
2019-02-09 12:15:31 -05:00
ctzsnooze b70d34f9db Update D_CUT to D_MIN, add setpoint
Directly and easily set the minimum value for D on pitch and roll.
- Boost back to the primary D setting is generated from gyro or setpoint inputs.
- Setpoint input is stick derived, faster by 10ms approx, and does not respond to propwash.
- Gyro input is motor derived and slower, but responds to propwash
- timing value sets balance between gyro (100) and setpoint (0) boost factors
- gain value sets overall sensitivity
- default D mins are 20 roll 22 pitch
- default D is 35, 38; if undefined then normal 30, 32 values
TUNING
- D value to flip overshoot control
- D_min to noise, lower values mean cooler motors but perhaps more propwash.
- Advance, higher values bring the boost in earlier, and stronger overall, useful for very high flip rates, but dampen stick responsiveness slightly.
- Gain value adjust against logs, checking maximal boost with flips and some rise with propwash, should be edging to get up from the min value in normal flight.
2019-02-10 01:44:55 +11:00
Michael Keller 4f7fa25b06
Merge pull request #7543 from dthubereng/add_mode_logic_to_msp
Add MODE_RANGES_EXTRA to MSP
2019-02-09 13:34:00 +13:00
Michael Keller 122d3ea812
Merge pull request #7545 from Asizon/NanoV7
Enabled PC15 for the new Airbot Omnibus NanoV7
2019-02-09 13:33:18 +13:00
mikeller cf8199b370 Fixed battery filtering when period is not a multiple of 10. 2019-02-09 12:01:48 +13:00
Michael Keller 0c90b69e3d
Merge pull request #7549 from jflyper/bfdev-setup-bus-device-correctly-for-i2c-gyro-detection
[I2C, GYRO] Setup I2C bus correctly for gyro detection
2019-02-09 11:50:31 +13:00
Bruce Luckcuck 21dac9a7ad More OSD USE_ACC dependencies 2019-02-08 14:16:30 -05:00
Bruce Luckcuck 1d6f86d234 Add OSD profile switching to MSP and CMS
Update the active OSD profile based on the MSP message. Makes the OSD show the selected profile immediately when the drop-down is changed in the Configurator. All other elements have "live" updates so this should a well.

Add CMS menu to select the OSD profile.
2019-02-08 13:26:48 -05:00
Asizon 208dbe21bb Enable PC15 for the new Airbot Omnibus NanoV7
Corrected TARGET_IO_PORTC for allow all pins

Changed CURRENT_METER definition type
2019-02-08 09:19:00 +01:00
Michael Keller 2c739346c6
Merge pull request #7547 from mikeller/fix_led_extreme_cpu_load
Fixed initialisation problem with LED_STRIP.
2019-02-08 19:55:55 +13:00
Michael Keller 26c1177cdb
Merge pull request #7541 from mikeller/excise_use_acc
Applied 'USE_ACC' consistently.
2019-02-08 19:48:00 +13:00
Michael Keller 0149101a56
Merge pull request #7550 from fujin/cli-bogus-max-profile-count
CLI: Fix reference to 'MAX_PROFILE_COUNT'
2019-02-08 13:22:39 +13:00
mikeller 9f8cafbf8b Fixed initialisation problem with LED_STRIP. 2019-02-08 12:29:57 +13:00
AJ Christensen 9076310150 CLI: Fix reference to 'MAX_PROFILE_COUNT' 2019-02-08 12:13:46 +13:00
mikeller 35bc646692 Excised some more unused code after review. 2019-02-08 09:51:48 +13:00
mikeller 794ab1c65b Fix leftover debug code from #7529. 2019-02-08 09:51:48 +13:00
mikeller b5908f5bab Applied 'USE_ACC' consistently. 2019-02-08 09:51:48 +13:00