/** ****************************************************************************** * @addtogroup OpenPilot System OpenPilot System * @{ * @addtogroup OpenPilot Libraries OpenPilot System Libraries * @{ * @file sanitycheck.c * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2012. * @brief Utilities to validate a flight configuration * @see The GNU Public License (GPL) Version 3 * *****************************************************************************/ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "openpilot.h" #include "sanitycheck.h" #include "hwsettings.h" #include "taskinfo.h" #include "manualcontrolsettings.h" #include "systemalarms.h" /** * Run a preflight check over the hardware configuration * and currently active modules */ int32_t configuration_check() { // TODO: Check manual control settings for any modes that can be accessed without the // necessary module running AlarmsSet(SYSTEMALARMS_ALARM_SYSTEMCONFIGURATION, SYSTEMALARMS_ALARM_CRITICAL); return 0; }