dshot: improve performance by removing extra motor_buffer array

Reduces CPU load by almost 1.5% @ 2khz on F4 and F7.

This changes the motor ordering on boards where the timer ordering does
not match the order of the timer usage in the channels defintion.
Only omnibus f4sd is affected.
This commit is contained in:
Beat Küng
2021-08-16 13:30:56 +02:00
committed by Daniel Agar
parent afed10618b
commit f00f3d1a27
2 changed files with 12 additions and 41 deletions
+1 -1
View File
@@ -157,7 +157,7 @@
#define BOARD_ENABLE_CONSOLE_BUFFER
#define BOARD_CONSOLE_BUFFER_SIZE (1024*3)
#define BOARD_DSHOT_MOTOR_ASSIGNMENT {2, 3, 1, 0};
#define BOARD_DSHOT_MOTOR_ASSIGNMENT {0, 1, 3, 2};
__BEGIN_DECLS