FlightGear next
tcas.cxx File Reference
#include <config.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <cmath>
#include <string>
#include <sstream>
#include <simgear/constants.h>
#include <simgear/sg_inlines.h>
#include <simgear/debug/logstream.hxx>
#include <simgear/math/sg_geodesy.hxx>
#include <simgear/sound/soundmgr.hxx>
#include <simgear/sound/sample_group.hxx>
#include <simgear/structure/exception.hxx>
#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
#include "instrument_mgr.hxx"
#include "tcas.hxx"

Go to the source code of this file.

Macros

#define ADD_VOICE(Var, Sample, SayTwice)
 
#define AVAILABLE_RA(Options, Advisory)
 

Functions

static void calcRangeBearing (double lat1, double lon1, double lat2, double lon2, double &rangeNm, double &bearing)
 calculate range and bearing of lat2/lon2 relative to lat1/lon1
 
static bool checkTransponderLocal (const SGPropertyNode *pModel, float velocityKt, float &o_altFt)
 

Macro Definition Documentation

◆ ADD_VOICE

#define ADD_VOICE ( Var,
Sample,
SayTwice )
Value:
{ make_voice(&Var); \
append(Var, Sample); \
if (SayTwice) append(Var, Sample); }

Definition at line 144 of file tcas.cxx.

◆ AVAILABLE_RA

#define AVAILABLE_RA ( Options,
Advisory )
Value:
(Advisory == (Advisory & Options))

Definition at line 149 of file tcas.cxx.

Function Documentation

◆ calcRangeBearing()

static void calcRangeBearing ( double lat1,
double lon1,
double lat2,
double lon2,
double & rangeNm,
double & bearing )
static

calculate range and bearing of lat2/lon2 relative to lat1/lon1

Definition at line 170 of file tcas.cxx.

◆ checkTransponderLocal()

static bool checkTransponderLocal ( const SGPropertyNode * pModel,
float velocityKt,
float & o_altFt )
static

Definition at line 587 of file tcas.cxx.