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

152 commits

Author SHA1 Message Date
Bruce Luckcuck
27e4dddeef Fix erroneous dshot motor frame between multiple queued dshot commands
In the case of multiple queued non-blocking dshot commands, a single motor command frame would get erroneously sent in the idle time between the commands when arming. This change contains some workarounds to prevent this behavior.
2019-04-06 20:40:53 -04:00
Bruce Luckcuck
4c274bd06a Fix F1 compile errors 2019-03-30 18:56:54 -04:00
mikeller
9e50bae9ef Fixed PWM beeper. 2019-03-29 01:44:23 +13:00
Thorsten Laux
5a759c56ef avoid dshot telemetry collisions
actually use calculated deadtime

fix whitespace and return value

fix ws

Address review feedback

fix ws
2019-03-26 21:51:25 +13:00
Bruce Luckcuck
9622b83278 DSHOT command non-blocking motor selection fix
Fixes a logic error that would send non-blocking DSHOT commands to all motors regardless of the selected motor index.
2019-03-17 17:01:44 -04:00
Thorsten Laux
7859e6d540 Add dshot command queue and limit max notch filter frequency 2019-01-12 12:25:30 +01:00
Thorsten Laux
816da6cbf5 Dshot erpm telemetry on the signal line 2019-01-03 14:42:52 +01:00
jflyper
5d7f6b6c3d Initialize timers assigned to servos appropriately 2018-09-02 01:02:26 +09:00
mikeller
f067324844 Fixed extra repeat. 2018-06-17 03:07:10 +12:00
mikeller
7f107e2d9b Added updating of scheduled command time when motors become idle. 2018-06-17 01:45:10 +12:00
mikeller
d49948f1fd Stop Dshot commands from running when ESCs not disarmed. 2018-06-17 00:37:57 +12:00
Michael Keller
1aa78531f7 Fixes from review. 2018-06-14 12:24:30 +12:00
mikeller
906a4bcb78 Fixed Dshot command check on non-F7. 2018-06-14 01:46:24 +12:00
mikeller
51763a40f9 Made Dshot commands work in a non-blocking way. 2018-06-01 21:56:11 +12:00
Bryce Johnson
0045b36320 Added blocked dshot commands, Added post command delay
Moved the dshotcommand to happen in pwm_output_dshot.
Simplified the timing and repeats to happen on a group basis instead works better for dshotburst
2018-06-01 21:56:11 +12:00
Andrey Mironov
d8dd6f29f8 Set FAST_RAM to go into .fastram_data by default. Added FAST_RAM_NOINIT 2018-05-23 14:40:33 +03:00
blckmn
aad6efdf03 Timer clean up in preparation for configurable timers 2018-05-06 06:55:17 +10:00
blckmn
a9f74cd6df Removed excess trailing spaces before new lines on licenses. 2018-04-25 20:58:00 +10:00
jflyper
e87d14fe46 White space tidy & add braces 2018-04-24 08:11:27 +09:00
jflyper
37cd0404e5 Prevent channel.ccr to be deferenced if timer failed to initialize 2018-04-24 07:42:46 +09:00
blckmn
46fe22b4bd Direct license replacement 2018-04-22 09:22:46 +10:00
Andrey Mironov
bf984f39b1 F7 optimizations (#5674)
* Revert "Revert "Rewritten F7 dshot to LL (draft)" (#5430)"

This reverts commit aa42a69d2f.

* Reworked F7 linker scripts to maximize performance of both F74x and F72x

* Some comments and changes from original F7 HAL DSHOT

* Prohibit inlining of some functions to place them in ITCM-RAM

* Fixed usartTargetConfigure implicit declaration

* Moved back to SRAM1 as main RAM

* Added SRAM2 attribute

* Fixed LL DSHOT FOR SPRF7DUAL and probably other adv TIM users

* Fixed SPRF7DUAL rev. A motor order

* Enabled CCM for data on F40x

* Fixed F7 startup assembly symbols

* Fixed KISSFCV2F7 linker script

* Added a quick way of building F7 targets only

* Got rid of the useless F7 target script

* Added NOINLINE and got rid of useless __APPLE__ define

* Added some important functions to ITCM

* Added NOINLINE macro for tests

* Copy to ITCM before passing execution into it

* Minimized cache footprint of motor output code

* Evicted low-impact functions from ITCM

* Switched MATEKF722 and SPRACINGF7DUAL to burst DSHOT

* Switched CLRACINGF7 to burst DSHOT

* Moved UART RX&TX buffers to DTCM-RAM to avoid cache incoherency

* Marked taskMainPidLoop for ITCM-RAM, disallowed inlining per-function

* Revert "Added a quick way of building F7 targets only"

This reverts commit 2294518998.
2018-04-20 08:37:32 +12:00
jflyper
416495e17a Convert BEEPER to USE_ scheme (#5433) 2018-03-11 09:28:08 +13:00
Michael Keller
9bcc6aca8e
Revert "BEEPER Conversion to use USE_ scheme" (#5368) 2018-03-04 09:40:17 +13:00
jflyper
bf11921dc0
Merge pull request #5285 from jflyper/bfdev-convert-beeper-to-USE_-scheme
BEEPER Conversion to use USE_ scheme
2018-03-03 23:22:56 +09:00
jflyper
ea0db878bf Convert to USE_ scheme 2018-03-02 22:29:40 +09:00
Bruce Luckcuck
ecc0125672 Fix compilation error for F1 targets 2018-02-25 15:59:11 -05:00
jflyper
1bc2e756f5 Do full IOConfigGPIOAF instead of IOConfigGPIO 2018-02-15 03:40:11 +09:00
jflyper
9475988218 Make burst and non-burst runtime configurable 2018-02-11 23:24:07 +09:00
Martin Budden
3747d6742b Whitespace tidy 2018-01-10 16:56:54 +00:00
jflyper
9f04705130 Use striding loadDmaBuffer to avoid buffer copy 2017-12-26 18:17:32 +09:00
jflyper
446606d9e6 Consolidate IOInit calls 2017-12-23 18:24:40 +09:00
Michael Keller
7ddf1e856d
Merge pull request #3996 from jflyper/bfdev-fix-motor-nchannel
Fix Motor N-Channel handling (Non-F7)
2017-11-07 07:58:37 +13:00
jflyper
70ba36ca0e Fix N-Channel handling for motors (non-F7) 2017-11-06 15:38:17 +09:00
Sami Korhonen
7c58d6d896 fix badly used outputinverter 2017-10-15 10:08:41 +03:00
mikeller
05a8141139 Enable only DMA for channels that are used. 2017-08-25 16:12:52 +12:00
mikeller
91ffa4b88c Fixed Dshot command sending to all motors. 2017-08-23 01:59:34 +12:00
Martin Budden
8dd4a584c1 Fixed whitespace 2017-08-17 08:32:37 +01:00
Michael Keller
a9da874d83 Fixed naming of function prototypes in 'pwm_output.h'. 2017-07-31 18:38:23 +08:00
Michael Keller
dcc600a78b Merge pull request #2727 from DieHertz/camera-control
Camera OSD control
2017-07-18 06:47:57 +08:00
Faduf
1f809048df remove beeper dependency in pwm output 2017-07-16 09:45:02 +02:00
DieHertz
cc358dc405 Implemented Camera Control using Hardware and Software PWM 2017-07-16 02:23:31 +03:00
Faduf
d6b9350c74 Add specific configuration depending on hardware revisions of the YupiF4 2017-07-15 19:41:48 +02:00
blckmn
f0bdc93a25 Fix motor twitch when unarmed and using synced protocols. 2017-07-15 14:51:59 +10:00
Martin Budden
8b36027d65 pwmWriteDshotCommand fix 2017-07-06 09:01:56 +01:00
Martin Budden
87ae1616d6 Further better use of pwmAreMotorsEnabled 2017-07-06 08:55:26 +01:00
Martin Budden
3cdbaaf14d Remove duplication in motor enable/disable 2017-07-06 08:55:26 +01:00
Martin Budden
a86ac89448 Whitespace tidy 2017-07-05 09:34:44 +01:00
Martin Budden
3d4f0bb137 Whitespace tidy 2017-07-05 06:36:22 +01:00
blckmn
40167bc134 Adding some padding for the synced option. 2017-06-30 20:58:19 +10:00