NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
blackbox.h File Reference
Include dependency graph for blackbox.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  blackboxMainState_s
 
struct  blackboxGpsState_s
 
struct  blackboxSlowState_s
 
struct  blackbox_xmit_state
 
struct  blackbox
 

Macros

#define BLACKBOX_FIRST_HEADER_SENDING_STATE   BLACKBOX_STATE_SEND_HEADER
 
#define BLACKBOX_LAST_HEADER_SENDING_STATE   BLACKBOX_STATE_SEND_SYSINFO
 

Typedefs

typedef enum BlackboxState BlackboxState
 
typedef struct blackboxMainState_s blackboxMainState_t
 
typedef struct blackboxGpsState_s blackboxGpsState_t
 

Enumerations

enum  BlackboxState {
  BLACKBOX_STATE_DISABLED = 0, BLACKBOX_STATE_STOPPED, BLACKBOX_STATE_PREPARE_LOG_FILE, BLACKBOX_STATE_SEND_HEADER,
  BLACKBOX_STATE_SEND_MAIN_FIELD_HEADER, BLACKBOX_STATE_SEND_GPS_H_HEADER, BLACKBOX_STATE_SEND_GPS_G_HEADER, BLACKBOX_STATE_SEND_SLOW_HEADER,
  BLACKBOX_STATE_SEND_SYSINFO, BLACKBOX_STATE_PAUSED, BLACKBOX_STATE_RUNNING, BLACKBOX_STATE_SHUTTING_DOWN
}
 

Functions

struct blackboxSlowState_s __attribute__ ((__packed__)) blackboxSlowState_t
 
void blackbox_init (struct blackbox *self, struct ninja *owner, const struct config *config)
 
void blackboxLogEvent (struct blackbox *self, FlightLogEvent event, flightLogEventData_t *data)
 
void blackbox_update (struct blackbox *self)
 
void blackbox_start (struct blackbox *self)
 
void blackbox_stop (struct blackbox *self)
 
bool blackbox_is_running (struct blackbox *self)
 

Variables

uint16_t flightModeFlags
 
uint8_t stateFlags
 
uint8_t failsafePhase
 
bool rxSignalReceived
 
bool rxFlightChannelsValid
 
struct blackbox_xmit_state __attribute__
 

Macro Definition Documentation

#define BLACKBOX_FIRST_HEADER_SENDING_STATE   BLACKBOX_STATE_SEND_HEADER
#define BLACKBOX_LAST_HEADER_SENDING_STATE   BLACKBOX_STATE_SEND_SYSINFO

Typedef Documentation

Enumeration Type Documentation

Enumerator
BLACKBOX_STATE_DISABLED 
BLACKBOX_STATE_STOPPED 
BLACKBOX_STATE_PREPARE_LOG_FILE 
BLACKBOX_STATE_SEND_HEADER 
BLACKBOX_STATE_SEND_MAIN_FIELD_HEADER 
BLACKBOX_STATE_SEND_GPS_H_HEADER 
BLACKBOX_STATE_SEND_GPS_G_HEADER 
BLACKBOX_STATE_SEND_SLOW_HEADER 
BLACKBOX_STATE_SEND_SYSINFO 
BLACKBOX_STATE_PAUSED 
BLACKBOX_STATE_RUNNING 
BLACKBOX_STATE_SHUTTING_DOWN 

Function Documentation

struct blackboxSlowState_s __attribute__ ( (__packed__)  )
void blackbox_init ( struct blackbox self,
struct ninja owner,
const struct config config 
)
bool blackbox_is_running ( struct blackbox self)
void blackbox_start ( struct blackbox self)
void blackbox_stop ( struct blackbox self)
void blackbox_update ( struct blackbox self)
void blackboxLogEvent ( struct blackbox self,
FlightLogEvent  event,
flightLogEventData_t data 
)

Variable Documentation

uint8_t failsafePhase
uint16_t flightModeFlags
bool rxFlightChannelsValid
bool rxSignalReceived
uint8_t stateFlags