FlightGear next
transponder.cxx File Reference
#include <config.h>
#include "transponder.hxx"
#include <simgear/compiler.h>
#include <simgear/sg_inlines.h>
#include <simgear/debug/logstream.hxx>
#include <Main/fg_props.hxx>
#include <cstdio>

Go to the source code of this file.

Functions

static int extractCodeDigit (int code, int index)
 
static int modifyCodeDigit (int code, int index, int digitValue)
 

Variables

const double IDENT_TIMEOUT = 18.0
 
const int INVALID_ALTITUDE = -9999
 
const int INVALID_AIRSPEED = -9999
 
const float INVALID_MACH_NUM = -1.0
 
const int INVALID_ID = -9999
 
static int powersOf10 [4] = {1, 10, 100, 1000}
 

Function Documentation

◆ extractCodeDigit()

static int extractCodeDigit ( int code,
int index )
static

Definition at line 268 of file transponder.cxx.

◆ modifyCodeDigit()

static int modifyCodeDigit ( int code,
int index,
int digitValue )
static

Definition at line 273 of file transponder.cxx.

Variable Documentation

◆ IDENT_TIMEOUT

const double IDENT_TIMEOUT = 18.0

Definition at line 64 of file transponder.cxx.

◆ INVALID_AIRSPEED

const int INVALID_AIRSPEED = -9999

Definition at line 66 of file transponder.cxx.

◆ INVALID_ALTITUDE

const int INVALID_ALTITUDE = -9999

Definition at line 65 of file transponder.cxx.

◆ INVALID_ID

const int INVALID_ID = -9999

Definition at line 68 of file transponder.cxx.

◆ INVALID_MACH_NUM

const float INVALID_MACH_NUM = -1.0

Definition at line 67 of file transponder.cxx.

◆ powersOf10

int powersOf10[4] = {1, 10, 100, 1000}
static

Definition at line 266 of file transponder.cxx.