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

13850 commits

Author SHA1 Message Date
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
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
Michael Keller
d737bab37e
Merge pull request #7535 from warhog/master
Improve RSSI handling on link loss for Spektrum SRXL
2019-02-06 22:32:52 +13:00
jflyper
96fc6dc934 CLI parser for vtxtable 2019-02-06 15:24:02 +09:00
Michael Keller
fa11287e8d
Merge pull request #7532 from brettcollis2212/patch-1
Change resource PINIO 1 from PB8 to B08
2019-02-06 15:38:42 +13:00
Michael Keller
d4f71bba63
Merge pull request #7534 from etracer65/optimize_rc_modes_processing
Optimize rc modes activation conditions processing
2019-02-06 15:38:11 +13:00
mikeller
9339f2ad21 Removed unneeded source files from 'target.mk'. 2019-02-06 12:58:13 +13:00
mikeller
37d0d402c8 Added single colour mode to WS2811 driver for RAM savings. 2019-02-06 12:04:34 +13:00
Michael Keller
7393d5fdac
Merge pull request #7529 from jflyper/bfdev-stronger-USE_ACC
[REFACTOR] More application of USE_ACC
2019-02-06 10:08:49 +13:00
Michael Keller
d32ee28373
Merge pull request #7528 from jflyper/bfdev-refactor-persistent-object-name
[PERSISTENT OBJECT] Refactor / rename boot loader request object
2019-02-06 10:08:12 +13:00
Bruce Luckcuck
42af168854 Optimize rc modes activation conditions processing
Analyze the rc modes activation conditions and only process configured entries. Previously the entire possible list was processed even though typically only a handful are configured.

Reduces the RX task processing time by about 25% (~44us to ~33us) with an average setup of 3 modes configured (F405, SBUS). Processing time savings will diminish as the user configures more modes. But typically far fewer than the maximum of 20 will be configured.
2019-02-05 16:05:16 -05:00
Michael Keller
8c78ac507b
Merge pull request #7530 from mikeller/fix_cleanup_ledstrip
Separated LED_STRIP parameter groups, separated out LED_STRIP status mode code.
2019-02-06 09:24:58 +13:00
Bruce Luckcuck
f1e3c60dd9 Optimize MAX7456 driver invert and brightness functions
Eliminate unnecessary register writes by keeping previous state information and only writing the registers when the related settings actually change. Saves 17 register writes per `clearScreen()` call.

Also fixed character invert flag handling. Previously changes to the flag would only affect subsequently drawn characters and previous characters would remain unchanged. So for static OSD elements it produced an inconsistent state. Now all characters immediately reflect the current state of the invert flag.

Results in appoximately a 33% reduction in processing time for the OSD task at default settings (~31us reduced to ~21us on F405).
2019-02-05 12:02:34 -05:00
warhog
442b2feb60 move definition of SPEKTRUM_RSSI_LINK_LOSS_FADES to spektrum_rssi.c because it is not needed elsewhere 2019-02-05 10:29:39 +01:00
warhog
33c5e465a6 improve rssi handling on link loss for spektrum srxl 2019-02-05 10:05:14 +01:00
mikeller
5006387c59 Dang, forgot to push the changeset that reverts the test code. 2019-02-05 20:13:05 +13:00
brettcollis2212
db7b97d882
Change resource PINIO 1 from PB8 to B08
This was wrong pin description for 4.0 resource mapping
2019-02-04 22:45:39 +00:00
mikeller
e121e1e92b Separated LED_STRIP parameter groups, separated out LED_STRIP status mode code. 2019-02-05 08:39:42 +13:00
jflyper
869e25d385 More USE_ACC application 2019-02-04 21:59:41 +09:00
jflyper
cc0e689bb5 Add USE_ACC conditionals 2019-02-04 20:37:43 +09:00
jflyper
85cd4df2ea Refactor / rename PERSISTENT_OBJECT_BOOTLOADER_REQUEST to PERSISTENT_OBJECT_RESET_REASON 2019-02-04 19:06:19 +09:00
Michael Keller
af84f9e99d
Merge pull request #7520 from jflyper/bfdev-srxl-datetime_t-should-inside-USE_RTC_TIME
[TELEMETRY SRXL] dateTime_t should be declared inside USE_RTC_TIME
2019-02-04 19:29:12 +13:00