ICAROUS
All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Modules Pages
Classes | Macros | Functions
flarm.h File Reference

function declarations, definitions of macros, datastructures and global variables for the FLARM application More...

#include "cfe.h"
#include "cfe_error.h"
#include "cfe_evs.h"
#include "cfe_sb.h"
#include "cfe_es.h"
#include "UtilFunctions.h"
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include "network_includes.h"
#include "flarm_events.h"
#include "msgdef/ardupilot_msg.h"
#include "msgdef/traffic_msg.h"
#include "msgids/ardupilot_msgids.h"
#include "msgids/scheduler_msgids.h"
#include "msgids/traffic_msgids.h"
#include "port_lib.h"
#include "pflaa.h"

Go to the source code of this file.

Classes

struct  FlarmAppData_t
 Structure to hold app data. More...
 

Macros

#define FLARM_PIPE_NAME   "FLARM_PIPE"
 
#define FLARM_PIPE_DEPTH   100
 
#define SCH_FLARM_PIPE1_NAME   "SCH_FLARM"
 

Functions

void FLARM_AppMain (void)
 This is the main entry point for your application that will be used by cFS. More...
 
void FLARM_AppInit (void)
 Initialize app data: set up pipes, subscribe to messages, read table, initialize data. More...
 
void FLARM_AppCleanUp (void)
 
void FLARM_InitializePorts ()
 Open ports to autopilot and intialize ports here. More...
 
void FLARM_ProcessData (void)
 Read data from the autopilot and construct software bus messages. More...
 
void FLARM_ProcessSBData (void)
 Read data from software bus and send data to autopilot. More...
 
bool logSentence (char *recvbuffer, nmea_pflaa_s *pflaa)
 Ensures read in serial data is full NMEA sentence. More...
 
void getFileTimeandDate (char **Filename)
 Ensures current time and date is captured. More...
 
int32_t FLARMTableValidationFunc (void *TblPtr)
 

Function Documentation

◆ FLARM_AppCleanUp()

void FLARM_AppCleanUp ( void  )

Clean up variables

◆ FLARM_AppInit()

void FLARM_AppInit ( void  )

Initialize app properties

◆ FLARM_AppMain()

void FLARM_AppMain ( void  )

Entry point for app

◆ FLARM_InitializePorts()

void FLARM_InitializePorts ( )

Initialize ports to the autopilot

◆ FLARM_ProcessData()

void FLARM_ProcessData ( void  )

Process data from the autopilot

◆ FLARM_ProcessSBData()

void FLARM_ProcessSBData ( void  )

Process data from the SB message

◆ FLARMTableValidationFunc()

int32_t FLARMTableValidationFunc ( void *  TblPtr)

Validate table data

Parameters
*TblPtrpointer to table

◆ getFileTimeandDate()

void getFileTimeandDate ( char **  Filename)

Obtains current time and date for filename

◆ logSentence()

bool logSentence ( char *  recvbuffer,
nmea_pflaa_s pflaa 
)

logs valid NMEA sentence