Revise data structures for DSHOT telemetry stats to avoid high CPU load
commit0b420d5a49487e9d328d839940e1b257d268a373
authorBruce Luckcuck <github@etracer.net>
Sat, 4 May 2019 18:40:06 +0000 (4 14:40 -0400)
committerBruce Luckcuck <github@etracer.net>
Sat, 4 May 2019 21:37:50 +0000 (4 17:37 -0400)
treec3b67488c077f1c2d739dadd2075243eb709c57d
parentde1c1d537710a02058c13921486146053c47e232
Revise data structures for DSHOT telemetry stats to avoid high CPU load
Having the stats data structures incorporated into the `dmaMotors[]` array structure was causing excessive CPU load on F4. The actual cause is unknown, but likely some kind of negative cache interaction. Moving the stats to a standalone array separate from `dmaMotors[]` solves the problem.
src/main/drivers/pwm_output.h
src/main/drivers/pwm_output_dshot_shared.c