auto-disarm implementation, slight rewrite of HFMan commit 931478054e70cd6a51916ea943...
commiteea8f905954e0c788870ad56d8fdc700b6621501
authorPetr Ledvina <ledvinap@gmail.com>
Mon, 22 Dec 2014 13:39:50 +0000 (22 14:39 +0100)
committerPetr Ledvina <ledvinap@gmail.com>
Mon, 22 Dec 2014 13:39:50 +0000 (22 14:39 +0100)
tree13ff05f444e25f51daf01de65d24b0b3d89b229d
parentbebf43d5683c6986e06a51ed37f7ab9218b2a7f8
auto-disarm implementation, slight rewrite of HFMan commit 931478054e70cd6a51916ea9430f041f61b7f7ba

Added automatic disarm after 5 seconds when feature MOTOR_STOP is enabled (has no effect on
FIXED_WING configurations.)  Users that don't have a buzzer to warn when
board is armed and use feature MOTOR_STOP can forget to disarm the
board. For example after landing they pick up copter and then
accidentally move throttle up when trying to remove flight battery.

Configurable via CLI using 'set auto_disarm_board=x' where x is 0-60
seconds.  If zero, does not auto_disarm.
src/main/config/config.c
src/main/config/config_master.h
src/main/io/serial_cli.c
src/main/mw.c