mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 19:40:31 +03:00
Send motor data and then immediately decode prior telemetry data for bitbanged DSHOT (#12685)
* Send motor data and then immediately decode prior telemetry data for bitbanged DSHOT F4 can't handle 8K PID loop * Fix missing cfg_pms.version * Limit G4 to 4K PID rate as per F4
This commit is contained in:
parent
fea097a893
commit
e8126dd6dd
16 changed files with 143 additions and 95 deletions
|
@ -218,7 +218,7 @@ void dshotCommandWrite(uint8_t index, uint8_t motorCount, uint8_t command, dshot
|
|||
|
||||
#ifdef USE_DSHOT_TELEMETRY
|
||||
timeUs_t timeoutUs = micros() + 1000;
|
||||
while (!motorGetVTable().updateStart() &&
|
||||
while (!motorGetVTable().decodeTelemetry() &&
|
||||
cmpTimeUs(timeoutUs, micros()) > 0);
|
||||
#endif
|
||||
for (uint8_t i = 0; i < motorDeviceCount(); i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue