NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
failsafe.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <platform.h>
#include "debug.h"
#include "common/axis.h"
#include "drivers/system.h"
#include "rx/rx.h"
#include "io/beeper.h"
#include "config/config.h"
#include "flight/failsafe.h"
#include "../ninjaflight.h"
Include dependency graph for failsafe.c:

Functions

void failsafe_reset (struct failsafe *self)
 
void failsafe_init (struct failsafe *self, struct ninja *ninja, const struct config const *config)
 
failsafePhase_e failsafe_get_state (struct failsafe *self)
 
bool failsafe_is_monitoring (struct failsafe *self)
 
bool failsafe_is_active (struct failsafe *self)
 
void failsafe_start_monitoring (struct failsafe *self)
 
bool failsafe_is_receiving_rx (struct failsafe *self)
 
void failsafe_on_rx_suspend (struct failsafe *self, uint32_t usSuspendPeriod)
 
void failsafe_on_rx_resume (struct failsafe *self)
 
void failsafe_on_valid_data_received (struct failsafe *self)
 
void failsafe_on_valid_data_failed (struct failsafe *self)
 
void failsafe_update (struct failsafe *self)
 

Function Documentation

failsafePhase_e failsafe_get_state ( struct failsafe self)
void failsafe_init ( struct failsafe self,
struct ninja ninja,
const struct config const *  config 
)

Here is the call graph for this function:

bool failsafe_is_active ( struct failsafe self)
bool failsafe_is_monitoring ( struct failsafe self)
bool failsafe_is_receiving_rx ( struct failsafe self)
void failsafe_on_rx_resume ( struct failsafe self)
void failsafe_on_rx_suspend ( struct failsafe self,
uint32_t  usSuspendPeriod 
)
void failsafe_on_valid_data_failed ( struct failsafe self)
void failsafe_on_valid_data_received ( struct failsafe self)
void failsafe_reset ( struct failsafe self)
void failsafe_start_monitoring ( struct failsafe self)
void failsafe_update ( struct failsafe self)