Add guard time between dshot beacon and arming/disarming
commit1e6e9e719f94403a0f4cafaa4198b91b49e91614
authorBruce Luckcuck <github@etracer.net>
Sat, 9 Jun 2018 22:44:37 +0000 (9 18:44 -0400)
committerBruce Luckcuck <github@etracer.net>
Sat, 9 Jun 2018 22:59:59 +0000 (9 18:59 -0400)
treeba885a3f6d8a265be58021629cb394383a2c5680
parent504b1479fb17cac2e15efea7b7fbaf614c74d2f9
Add guard time between dshot beacon and arming/disarming
Tries to prevent DSHOT beacon commands from interfering with commands to set the motor direction.

Adds a 2 second delay after disarming before DSHOT beacon commands will be sent. This attempts to prevent the beacon commands from interfering with the motor direction reset that happens after using crash flip mode.

During arming if a DSHOT beacon command has been sent within 2 seconds the arming will be delayed until the 2 seconds have passed. This attempts to prevent interference with the motor direction commands sent at arming.
src/main/fc/fc_core.c
src/main/fc/fc_core.h
src/main/fc/rc_controls.c
src/main/io/beeper.c
src/main/io/beeper.h
src/test/unit/rc_controls_unittest.cc