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

10585 commits

Author SHA1 Message Date
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
jflyper
1e49419a8a Add concurrency control 2019-02-11 04:49:00 +09: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
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
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
Michael Keller
59ea4becb3
Merge pull request #7516 from mikeller/add_automatic_pid_profile_switching
Added battery cell count based automatic PID profile switching.
2019-02-08 09:28:07 +13:00
jflyper
a33316c1f5 Setup I2C bus correctly for gyro detection 2019-02-08 03:09:45 +09:00
Dave Huber
bb95d53e62 Add mode logic to MSP
Add msp code 238.
Add MSP_MODE_RANGES code to msp.c.
Add 2 extra byte reads to MSP_SET_MODE_RANGES.
Add check for extra bytes in MSP_SET_MODE_RANGES
Add API documentation for MSP_MODE_RANGES_EXTRA
convert linkedTo storage to boxid
Send length of array in EXTRAS data
Add note that alignment of elements of MODE_RANGES and MODE_RANGES_EXTRA is required and indicated by permanentId.
2019-02-07 10:28:34 -06:00
Michael Keller
760300b562
Merge pull request #7540 from jflyper/bfdev-vtx-table-tramp
[VTX] Convert Tramp driver to use VTX table facility
2019-02-07 23:57:09 +13:00
Michael Keller
3672bead17
Merge pull request #7542 from mikeller/add_mcu_type_msp
Added the MCU type to MSP.
2019-02-07 23:55:21 +13:00
Michael Keller
9d621aa2c1
Merge pull request #7537 from mikeller/add_ws2811_single_colour_mode
Added single colour mode to WS2811 driver for RAM savings.
2019-02-07 23:54:35 +13:00
Michael Keller
36e13b8f34
Merge pull request #7536 from etracer65/optimize_max7456_driver
Optimize MAX7456 driver invert and brightness functions
2019-02-07 23:38:50 +13:00
Michael Keller
e962f13a9f
Merge pull request #7539 from mikeller/fix_unneeded_sources
Removed unneeded source files from 'target.mk'.
2019-02-07 23:05:19 +13:00
jflyper
784e521fef Convert Tramp driver to VTX_TABLE 2019-02-07 05:11:03 +09:00
Michael Keller
807b06044a
Merge pull request #7251 from jflyper/bfdev-vtx-table
[VTX] CLI parser for vtxtable
2019-02-07 08:26:58 +13:00
jflyper
9b06b570e1 Size of frequency table (stride) is now fixed constant 2019-02-06 22:59:23 +09:00
mikeller
b93b345830 Added the MCU type to MSP. 2019-02-07 00:16:13 +13:00