mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
fix dshot_600
This commit is contained in:
parent
db66284567
commit
f9da3ea755
2 changed files with 52 additions and 46 deletions
|
@ -199,7 +199,8 @@ extern uint32_t bbOutputBuffer[MOTOR_DSHOT_BUFFER_SIZE * MAX_SUPPORTED_MOTOR_POR
|
|||
// <sampling period> = 0.44us
|
||||
// <slack> = 10%
|
||||
// (30 + 26 + 3) / 0.44 = 134
|
||||
#define DSHOT_BITBANG_PORT_INPUT_BUFFER_LENGTH 134
|
||||
// In some cases this was not enough, so we add 6 extra samples
|
||||
#define DSHOT_BITBANG_PORT_INPUT_BUFFER_LENGTH 140
|
||||
extern uint16_t bbInputBuffer[DSHOT_BITBANG_PORT_INPUT_BUFFER_LENGTH * MAX_SUPPORTED_MOTOR_PORTS];
|
||||
|
||||
void bbGpioSetup(bbMotor_t *bbMotor);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue