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

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

#include "cfe.h"
#include "cfe_error.h"
#include "cfe_evs.h"
#include "cfe_sb.h"
#include "cfe_es.h"
#include "cfe_platform_cfg.h"
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <math.h>
#include <time.h>
#include "cognition_events.h"
#include "Icarous_msg.h"
#include "traffic_msg.h"
#include "trajectory_msg.h"
#include "geofence_msg.h"
#include "guidance_msg.h"
#include "Icarous_msgids.h"
#include "sch_msgids.h"
#include "traffic_msgids.h"
#include "trajectory_msgids.h"
#include "geofence_msgids.h"
#include "guidance_msgids.h"
#include "UtilFunctions.h"
#include "Guidance.h"
#include "Core/Cognition/Cognition.h"

Go to the source code of this file.

Classes

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

Macros

#define COGNITION_PIPE_NAME   "COGPIPE"
 
#define COGNITION_PIPE_DEPTH   100
 
#define SCH_COGNITION_PIPE_NAME   "SCH_COGNITION"
 

Functions

void COGNITION_AppMain (void)
 This is the main entry point for your application that will be used by cFS. More...
 
void COGNITION_AppInit (void)
 Initialize app data: set up pipes, subscribe to messages, read table, initialize data. More...
 
void COGNITION_AppInitData (void)
 
void COGNITION_AppCleanUp (void)
 
void COGNITION_ProcessSBData (void)
 Read data from software bus and send data to autopilot. More...
 
void COGNITION_GetADSBData (void)
 Read ADSB data from ADSB transponder and publish traffic data on software bus. More...
 
void COGNITION_DecisionProcess (void)
 
int32_t cognitionTableValidationFunc (void *TblPtr)
 
void COGNITION_SendGuidanceVelCmd (VelocityCommand cmd)
 
void COGNITION_SendGuidanceFlightPlan (FpChange cmd)
 
void COGNITION_SendGuidanceP2P (P2PCommand cmd)
 
void COGNITION_SendSpeedChange (SpeedChange cmd)
 
void COGNITION_SendAltChange (AltChange cmd)
 
void COGNITION_SendTakeoff (TakeoffCommand cmd)
 
void COGNITION_SendLand (LandCommand cmd)
 
void COGNITION_FindNewPath (FpRequest cmd)
 
void COGNITION_SendDitchRequest (DitchCommand cmd)
 
void COGNITION_SendRtlRequest (RtlCommand rtl_command)
 

Variables

EXTERN appdataCog_t appdataCog
 

Function Documentation

◆ COGNITION_AppCleanUp()

void COGNITION_AppCleanUp ( void  )

Clean up variables

◆ COGNITION_AppInit()

void COGNITION_AppInit ( void  )

Initialize app properties

◆ COGNITION_AppInitData()

void COGNITION_AppInitData ( void  )

Initialize app specific data

◆ COGNITION_AppMain()

void COGNITION_AppMain ( void  )

Entry point for app

◆ COGNITION_GetADSBData()

void COGNITION_GetADSBData ( void  )

Process ADSB data

◆ COGNITION_ProcessSBData()

void COGNITION_ProcessSBData ( void  )

Process data from the SB message

◆ cognitionTableValidationFunc()

int32_t cognitionTableValidationFunc ( void *  TblPtr)

Validate table data

Parameters
*TblPtrpointer to table