2003-02-06 10:42:43 +00:00
|
|
|
// Implementation of FGATC - ATC subsystem base class.
|
2002-03-01 17:39:52 +00:00
|
|
|
//
|
|
|
|
// Written by David Luff, started February 2002.
|
|
|
|
//
|
|
|
|
// Copyright (C) 2002 David C Luff - david.luff@nottingham.ac.uk
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License as
|
|
|
|
// published by the Free Software Foundation; either version 2 of the
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful, but
|
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
#include "ATC.hxx"
|
|
|
|
|
|
|
|
FGATC::~FGATC() {
|
|
|
|
}
|
|
|
|
|
|
|
|
void FGATC::Update() {
|
|
|
|
}
|
|
|
|
|
2002-04-03 23:54:44 +00:00
|
|
|
void FGATC::AddPlane(string pid) {
|
|
|
|
}
|
|
|
|
|
|
|
|
int FGATC::RemovePlane() {
|
2002-04-04 20:48:21 +00:00
|
|
|
return 0;
|
2002-04-03 23:54:44 +00:00
|
|
|
}
|
|
|
|
|
2002-03-01 17:39:52 +00:00
|
|
|
void FGATC::SetDisplay() {
|
|
|
|
}
|
|
|
|
|
|
|
|
void FGATC::SetNoDisplay() {
|
|
|
|
}
|
|
|
|
|
|
|
|
atc_type FGATC::GetType() {
|
|
|
|
return INVALID;
|
2002-04-03 23:54:44 +00:00
|
|
|
}
|
|
|
|
|
2003-02-06 10:42:43 +00:00
|
|
|
void FGATC::SetData(ATCData* d) {
|
|
|
|
lon = d->lon;
|
|
|
|
lat = d->lat;
|
|
|
|
elev = d->elev;
|
|
|
|
x = d->x;
|
|
|
|
y = d->y;
|
|
|
|
z = d->z;
|
|
|
|
range = d->range;
|
|
|
|
ident = d->ident;
|
|
|
|
name = d->name;
|
|
|
|
freq = d->freq;
|
|
|
|
}
|
|
|
|
|
2002-04-03 23:54:44 +00:00
|
|
|
ostream& operator << (ostream& os, atc_type atc) {
|
|
|
|
switch(atc) {
|
|
|
|
case(INVALID):
|
|
|
|
return(os << "INVALID");
|
|
|
|
case(ATIS):
|
|
|
|
return(os << "ATIS");
|
|
|
|
case(GROUND):
|
|
|
|
return(os << "GROUND");
|
|
|
|
case(TOWER):
|
|
|
|
return(os << "TOWER");
|
|
|
|
case(APPROACH):
|
|
|
|
return(os << "APPROACH");
|
|
|
|
case(DEPARTURE):
|
|
|
|
return(os << "DEPARTURE");
|
|
|
|
case(ENROUTE):
|
|
|
|
return(os << "ENROUTE");
|
|
|
|
}
|
|
|
|
return(os << "ERROR - Unknown switch in atc_type operator << ");
|
|
|
|
}
|