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

12124 commits

Author SHA1 Message Date
Michael Keller
b4a9f9e878
Merge pull request #8796 from ctzsnooze/Set-default-dynamic-filter-range
Set default dyanmic notch range to medium
2019-09-07 12:28:13 +12:00
Michael Keller
a072f6200b
busBusy for SPI in program I/O mode should always return false (#8835)
busBusy for SPI in program I/O mode should always return false
2019-09-07 12:19:55 +12:00
Michael Keller
cf0e81ec4b
Merge pull request #8834 from etracer65/target_furyf4_add_mag
Add missing MAG support for FURYF4 and FURYF4OSD targets
2019-09-07 12:19:11 +12:00
Michael Keller
c3b490b40f
Optimize ledstrip DMA buffer update and bug fix (#8830)
Optimize ledstrip DMA buffer update and bug fix
2019-09-07 12:17:36 +12:00
Michael Keller
8639fb88a6
Merge pull request #8828 from joelucid/fix_esc_telemetry
Fix serial esc telemetry with bitbang dshot
2019-09-07 12:16:31 +12:00
Thorsten Laux
ccf7ce964a use driver independent motor count 2019-09-06 16:43:57 +02:00
Bruce Luckcuck
9889e59f78 Remove deprecated CLI name command
Functionality replaced with `set name = ` syntax.
2019-09-06 09:06:54 -04:00
Michael Keller
db66284567
Bugfix: Vario GPS and 3D Total Distance overflow (#8827)
Bugfix: Vario GPS and 3D Total Distance overflow
2019-09-06 19:48:25 +12:00
Michael Keller
0a5c758bae
Merge pull request #8826 from joelucid/fix_rpm_reinit
Allow rpm filter to be reinitialized with new settings
2019-09-06 19:48:03 +12:00
Michael Keller
1298d3d4c9
Merge pull request #8825 from jflyper/bfdev-fix-MOTOR_MSP-hard-fault-with-no-motors
Provide isMotorEnabled function for motorNullDevice
2019-09-06 19:47:48 +12:00
Michael Keller
dd89313b7b
Add RPM Filter, FF and Iterm Relax values to the Blackbox header (#8824)
Add RPM Filter, FF and Iterm Relax values to the Blackbox header
2019-09-06 19:47:35 +12:00
jflyper
a3b1ad9e13 SPI in program I/O mode should always return false 2019-09-06 11:15:42 +09:00
Bruce Luckcuck
24a702eb46 Add MAG support for FURYF4 and FURYF4OSD targets 2019-09-05 17:00:47 -04:00
Bruce Luckcuck
e1f10b0430 Optimize ledstrip DMA buffer update to reduce task processing time
Previous logic was updating updating the DMA buffer for all possible LED positions (32) regardless of how many were used. Since there are 24 bytes per LED, this performed a lot of unnecessary processing in cases where the user had less than 32 LEDs configured.

Also includes a bug fix in that if the LED count was decreased (like making changed using the Configurator LED tab), the now unused LEDs at the end of the string would remain on at the last color applied. Now they will be properly turned off. The bug was minor as it was resolved by a reboot, but made setup using the Configurator confusing since changes made are reflected when the user clicked the "Save" button (which does not reboot).
2019-09-05 16:10:19 -04:00
IvoFPV
acc3198ada Remove dshot1200 in SPEEDYBEE F7 2019-09-05 20:08:33 +02:00
Michael Keller
ac5cf5a417
Merge pull request #8803 from azolyoung/add-speedybee-f7-target
add speedybee f7
2019-09-06 01:41:08 +12:00
Thorsten Laux
3d9541eea0 Allow rpm filter to be reinitialized with different settings 2019-09-06 01:13:19 +12:00
Michael Keller
44f0fb577c
Merge pull request #8816 from mikeller/add_scheduler_optimize_rate_auto
Added 'auto' setting for 'scheduler_optimize_rate'.
2019-09-06 01:11:42 +12:00
Thorsten Laux
b6b2b90f38 Fix serial esc telemetry with bitbang dshot 2019-09-05 11:13:25 +02:00
Tony Cabello
1406b068e2 Bugfix: Vario GPS and 3D Total Distance overflow 2019-09-05 09:33:01 +02:00
jflyper
eac1565987 Provide isMotorEnabled function pointer to motorIsEnabledNull for motorNullVTable
Also suppress call to this function from MSP_MOTOR when motors are not
present by inquiring motorIsEnabled first.
2019-09-05 16:24:52 +09:00
Miguel Angel Mulero Martinez
5f8919eb98 Add RPM Filter, FF and Iterm Relax values to the Blackbox header 2019-09-05 08:44:57 +02:00
mikeller
224e3e2c9a Added 'auto' setting for 'scheduler_optimize_rate'. 2019-09-05 15:25:22 +12:00
mikeller
3f0f3ab685 Added the parameters for RPM filtering to MSP. 2019-09-05 12:31:40 +12:00
TheIsotopes
077fed23ee
Remove DShot1200 Protocol Part2
has crept in with #8736
2019-09-04 17:04:46 +02:00
Michael Keller
75447ef2b8
Merge pull request #8736 from joelucid/ff2_1
various ff2_0 improvements
2019-09-05 02:14:23 +12:00
Michael Keller
d6c5b9824c
Removed Dshot1200 protocol. (#8806)
Removed Dshot1200 protocol.
2019-09-05 02:08:45 +12:00
Michael Keller
2432ed0356
Merge pull request #8804 from joelucid/no_transient
change transient throttle limit default to 0
2019-09-04 23:33:49 +12:00
Thorsten Laux
5855b275f4 various ff2_0 improvements
simplify

double period averaging

fix calc

ff changes

in between

fixes

clip * clip and cleanup

address review feedback

more review feedback

10 to 100
2019-09-04 23:08:02 +12:00
jflyper
adf6fd1764 DMA bit banging Dshot, first cut
F405 working (OMNIBUSF4SD target)
F411 not tested
F722 working, needs testing (OMNINXT7 target)
F74x not working

NOX target (temporary)

bb_dshot with telemetry on f4
bbshot f7 targets and fix crash due to missing debug pins

remove empty line

add empty lines

remove OMNIBUSF4 specific debug pins

add missing comma

add missing comma

Use separate bbTimerHardware array to fix unified targets

eliminate now unneeded timerGetByUsage

don't duplicate timer1 def

Add auto mode, rename dshot_bbshot to dshot_bitbang

remove newline

renamve various files

various changes to address feedback

address feedback

address feedback

add pacer timers to timer show

don't disable telemetry if dshot_bitbang is on or auto

Address feedback, add faster decode implementation based on bit banding, modify dma parameters to reduce required memory bandwidth on half

remove debug output

remove NOINLINE

Protect gpio direction change with critical sections

FIXWS_SAVE_INDEX

add static back in

no forward typedef

address review feedback

disallow proshot1000 with dshot bitbang

Extracted and plumbed up 'dbgPin'.
2019-09-04 16:06:48 +12:00
Michael Keller
37b059532f
Merge pull request #8792 from jflyper/bfdev-fix-servo-to-write-...
Write forward only servos
2019-09-03 23:59:24 +12:00
Michael Keller
dd8d7b0be2
Changed Unified Target custom defaults to use sector 0 memory. (#8797)
Changed Unified Target custom defaults to use sector 0 memory.
2019-09-03 23:34:10 +12:00
mikeller
802c053e4e Removed Dshot1200 protocol. 2019-09-03 23:00:01 +12:00
Thorsten Laux
1a4c42aabc change transient throttle limit to 0 2019-09-03 12:38:12 +02:00
jflyper
a5c4c8c21f Refactor tripcopter case 2019-09-03 15:10:06 +09:00
azolyoung
86e79b2216 add speedybee f7 2019-09-03 12:01:59 +08:00
mikeller
1c8cfbd241 Extended configuration status to accommodate custom defaults. 2019-09-03 09:57:43 +12:00
Dominic Clifton
8731e4a003 Use CCM_CODE for DMA handlers on F3.
This shaves a few cycles when handling the DSHOT telemetry responses.
Fewer invalid packets.
2019-09-02 18:40:13 +02:00
Dominic Clifton
105093211d Use CCM_CODE for pwmDshotSetDirectionInput andmotor_DMA_IRQHandler on
F3.

This reduces the cycles from 396 to 378 which results in 0% invalid
DSHOT telemetry packets!
2019-09-02 18:40:13 +02:00
Dominic Clifton
376441f89f F3 - Add support for code in CCM RAM. 2019-09-02 18:40:13 +02:00
Dominic Clifton
376d4c5294 Use FAST_CODE for motor_DMA_IRQHandler 2019-09-02 18:40:13 +02:00
Dominic Clifton
a722be1a15 Use FAST_CODE for pwmDshotSetDirectionInput. 2019-09-02 18:40:13 +02:00
mikeller
460c16d57d Changed Unified Target custom defaults to use sector 0 memory. 2019-09-02 21:16:26 +12:00
ctzsnooze
f61a940a05 Set default dyanmic notch range to medium
In 4.0x the dynamic notch range was set by default to AUTO mode.

This would set range to low, medium or high based on the dynamic lowpass max setting, which the user was supposed to configure to suit the maximum rpm of the quad.

In 4.1 we are moving the maximum value of the dynamic gyro lowpass very high whenever the rpm filter is enabled.  And, generally, it is OK to do this even on non-rpm quads.

The problem then becomes that the dynamic notch quietly shifts itself to HIGH mode, and that can cause it to not track ordinary frame and prop resonances like it should.

I think it will be better overall in medium mode, which works best for most quads out of the box.  Users of very high RPM quads can choose high.  XClass quads or machines with low frequency resonance should choose low, and should set the dyn_notch_min_hz value low enough to reach the resonant peak.
2019-09-02 15:50:10 +10:00
Michael Keller
227f6f76a2
Merge pull request #8769 from mikeller/add_custom_defaults_to_msp
Added support for resetting to custom defaults to MSP.
2019-09-02 08:50:29 +12:00
jflyper
e9c951ea51 Write forward only servos after gimbal servos
Servos marked as forwarded from RC channels and not written previously
should be written after gimbal servos and before forwarding by
FEATURE_CHANNEL_FORWARDING.
2019-09-02 02:34:18 +09:00
ctzsnooze
445122a997 FF defaults increased to 90's
Higher feed forward improves stick responsiveness and reduces bounce back on lower authority quads.

Feed forward defaults in 4.0 were slightly conservative even for typical quads.

In association with ff_boost and ff_max_rate_limit, overshoot with even higher feed forward is less of a problem than before.

I think these values should be about right for 4.1
2019-09-01 20:06:06 +12:00
mikeller
36dc7306e2 Merge branch 'fix_custom_defaults_addresses' into add_custom_defaults_to_msp 2019-09-01 20:03:57 +12:00
Michael Keller
1585b4a31a
Merge pull request #8784 from ctzsnooze/Static-lowpass1-to-match-min
Set default static lowpass1 gyro value to the same as default gyro lowpass1 min
2019-09-01 15:43:28 +12:00
Michael Keller
a835939ddd
Increase iTerm defaults slightly for 4.1 (#8785)
Increase iTerm defaults slightly for 4.1
2019-09-01 15:42:36 +12:00