TauLabs/TauLabs — pull request #1004 by peabody124 (2013-10-30 23:39:42+00:00)
Title: SanityCheck: prevent unsafe forms of arming

This prevents a problem that caused an unsafe start of his
system.

Arming while in autonomous modes (e.g. RTH, PH, AH) can
allow unexpected behavior and is certainly an untested
path. This patch creates an error condition when in those
modes and disarmed or arming to prevent arming. In this
case one should switch to a traditional manual mode, arm,
and then engage the AP functionality.