Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "std.h"
#include <stdarg.h>
Go to the source code of this file.
Data Structures | |
struct | preflight_result_t |
struct | preflight_check_t |
Typedefs | |
typedef void(* | preflight_check_f) (struct preflight_result_t *result) |
Functions | |
void | preflight_check_register (struct preflight_check_t *check, preflight_check_f func) |
Register a preflight check and add it to the linked list. More... | |
bool | preflight_check (void) |
Perform all the preflight checks. More... | |
void | preflight_error (struct preflight_result_t *result, const char *fmt,...) |
Register a preflight error used inside the preflight checking functions. More... | |
void | preflight_warning (struct preflight_result_t *result, const char *fmt,...) |
Register a preflight warning used inside the preflight checking functions. More... | |
void | preflight_success (struct preflight_result_t *result, const char *fmt,...) |
Register a preflight success used inside the preflight checking functions. More... | |
void | preflight_checks_log_bypass (bool bypass) |
Variables | |
bool | preflight_bypass |
bool | preflight_ground_done |
Definition in file preflight_checks.h.
struct preflight_result_t |
struct preflight_check_t |
Definition at line 43 of file preflight_checks.h.
Data Fields | ||
---|---|---|
preflight_check_f | func | |
struct preflight_check_t * | next |
typedef void(* preflight_check_f) (struct preflight_result_t *result) |
Definition at line 41 of file preflight_checks.h.
bool preflight_check | ( | void | ) |
Perform all the preflight checks.
Definition at line 83 of file preflight_checks.c.
References DefaultChannel, DefaultDevice, preflight_result_t::fail_cnt, preflight_check_t::func, get_sys_time_float(), preflight_result_t::max_len, preflight_result_t::message, preflight_check_t::next, pprzlog_tp, PREFLIGHT_CHECK_INFO_TIMEOUT, PREFLIGHT_CHECK_MAX_MSGBUF, PREFLIGHT_CHECK_SEPERATOR, preflight_error(), preflight_ground_done, preflight_head, preflight_success(), preflight_result_t::success_cnt, and preflight_result_t::warning_cnt.
Referenced by autopilot_arming_motors_on(), and autopilot_set_motors_on().
void preflight_check_register | ( | struct preflight_check_t * | check, |
preflight_check_f | func | ||
) |
Register a preflight check and add it to the linked list.
check | The check to add containing a linked list |
func | The function to register for the check |
Definition at line 68 of file preflight_checks.c.
References preflight_check_t::func, preflight_check_t::next, and preflight_head.
Referenced by agl_dist_init(), electrical_init(), gps_init(), imu_heater_init(), ms45xx_i2c_init(), pfc_actuators_init(), sdlog_chibios_init(), and stateInit().
void preflight_checks_log_bypass | ( | bool | bypass | ) |
Definition at line 263 of file preflight_checks.c.
References DefaultChannel, DefaultDevice, msg, pprzlog_tp, and preflight_bypass.
void preflight_error | ( | struct preflight_result_t * | result, |
const char * | fmt, | ||
... | |||
) |
Register a preflight error used inside the preflight checking functions.
result | Where the error gets registered |
fmt | A formatted string describing the error used in a vsnprintf |
... | The arguments for the vsnprintf |
Definition at line 173 of file preflight_checks.c.
References preflight_result_t::fail_cnt, preflight_result_t::max_len, preflight_result_t::message, and PREFLIGHT_CHECK_SEPERATOR.
Referenced by pfc_actuators_cb(), and preflight_check().
void preflight_success | ( | struct preflight_result_t * | result, |
const char * | fmt, | ||
... | |||
) |
Register a preflight success used inside the preflight checking functions.
result | |
<strong>attribute</strong> | |
... |
Definition at line 257 of file preflight_checks.c.
References preflight_result_t::success_cnt.
Referenced by pfc_actuators_cb(), and preflight_check().
void preflight_warning | ( | struct preflight_result_t * | result, |
const char * | fmt, | ||
... | |||
) |
Register a preflight warning used inside the preflight checking functions.
result | Where the error gets registered |
fmt | A formatted string describing the error used in a vsnprintf |
... | The arguments for the vsnprintf |
Definition at line 215 of file preflight_checks.c.
References preflight_result_t::max_len, preflight_result_t::message, PREFLIGHT_CHECK_SEPERATOR, and preflight_result_t::warning_cnt.
|
extern |
Definition at line 57 of file preflight_checks.c.
Referenced by autopilot_arming_motors_on(), autopilot_set_motors_on(), and preflight_checks_log_bypass().
|
extern |
Definition at line 58 of file preflight_checks.c.
Referenced by preflight_check().