Prevent DSHOT commands during protocol initialization/detection
commit5a9ce05ec0f030108f63d5f57c3e0a7f5a3db463
authorBruce Luckcuck <github@etracer.net>
Sat, 21 Sep 2019 21:24:33 +0000 (21 17:24 -0400)
committerBruce Luckcuck <github@etracer.net>
Sat, 21 Sep 2019 22:26:05 +0000 (21 18:26 -0400)
tree233ff28ea348e4ff160360b11e841c96aec42e30
parent031a21b9fce39525cf4d287e2db9f01239c819e6
Prevent DSHOT commands during protocol initialization/detection
Adds a fixed delay after the motors are enabled before DSHOT commands can be sent. Fixes a problem caused by sending DSHOT commands too soon and prevent the ESC from properly detecting the protocol.
src/main/drivers/dshot_command.c
src/main/drivers/dshot_command.h
src/main/drivers/motor.c
src/main/drivers/motor.h
src/main/fc/core.c