dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sanitycheck.c File Reference

Utilities to validate a flight configuration. More...

#include "openpilot.h"
#include "taskmonitor.h"
#include <pios_board_info.h>
#include "flightstatus.h"
#include "sanitycheck.h"
#include "manualcontrolsettings.h"
#include "stabilizationsettings.h"
#include "stateestimation.h"
#include "systemalarms.h"
#include "systemsettings.h"
#include "systemident.h"
#include "pios_sensors.h"

Go to the source code of this file.

Functions

static int32_t check_safe_to_arm ()
 Check it is safe to arm in this position. More...
 
static int32_t check_stabilization_settings (int index, bool multirotor)
 Check a stabilization mode switch position for safety. More...
 
static int32_t check_stabilization_rates ()
 Check a stabilization mode switch position for safety. More...
 
static int32_t check_safe_autonomous ()
 Check the system is safe for autonomous flight. More...
 
bool lqg_sysident_check ()
 
int32_t configuration_check ()
 
 DONT_BUILD_IF (MANUALCONTROLSETTINGS_STABILIZATION1SETTINGS_NUMELEM!=MANUALCONTROLSETTINGS_STABILIZATION2SETTINGS_NUMELEM, StabSettingsNumElem)
 
 DONT_BUILD_IF (MANUALCONTROLSETTINGS_STABILIZATION1SETTINGS_NUMELEM!=MANUALCONTROLSETTINGS_STABILIZATION3SETTINGS_NUMELEM, StabSettingsNumElem2)
 
void set_config_error (SystemAlarmsConfigErrorOptions error_code)
 

Detailed Description

Utilities to validate a flight configuration.

Author
dRonin, http://dRonin.org/, Copyright (C) 2015-2016
Tau Labs, http://taulabs.org, Copyright (C) 2012-2015
See Also
The GNU Public License (GPL) Version 3

Definition in file sanitycheck.c.