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

function definitions for FLARM app More...

#include "Icarous_msg.h"
#include "Interfaces.h"
#include <stdbool.h>
#include "flarm.h"
#include "flarm_version.h"
#include "flarm_tbl.c"
#include "pflaa.h"

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_InitializePorts ()
 Open ports to autopilot and intialize ports here. More...
 
void FLARM_ProcessData ()
 Read data from the autopilot and construct software bus messages. 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...
 
void FLARM_ProcessSBData ()
 Read data from software bus and send data to autopilot. More...
 
void FLARM_AppCleanUp ()
 
int32_t FLARMTableValidationFunc (void *TblPtr)
 

Variables

bool firstpass_FLAG = true
 
FILE * flarminput
 
CFE_EVS_BinFilter_t FLARM_EventFilters []
 Event filter definition for ardupilot. More...
 
FlarmAppData_t flarmAppData
 

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

Variable Documentation

◆ FLARM_EventFilters

CFE_EVS_BinFilter_t FLARM_EventFilters[]
Initial value:
=
{
{FLARM_STARTUP_INF_EID, 0x0000},
{FLARM_COMMAND_ERR_EID, 0x0000},
}