FlightGear
next
StartupController.hxx
Go to the documentation of this file.
1
// Extracted from trafficcontrol.hxx - classes to manage AIModels based air traffic control
2
// Written by Durk Talsma, started September 2006.
3
//
4
// This program is free software; you can redistribute it and/or
5
// modify it under the terms of the GNU General Public License as
6
// published by the Free Software Foundation; either version 2 of the
7
// License, or (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
// General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with this program; if not, write to the Free Software
16
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
//
18
// $Id$
19
20
#pragma once
21
22
#include <
Airports/airports_fwd.hxx
>
23
24
#include <osg/Geode>
25
#include <osg/Geometry>
26
#include <osg/MatrixTransform>
27
#include <osg/Shape>
28
29
#include <simgear/compiler.h>
30
#include <simgear/constants.h>
31
#include <simgear/debug/logstream.hxx>
32
#include <simgear/structure/SGReferenced.hxx>
33
#include <simgear/structure/SGSharedPtr.hxx>
34
35
#include <
ATC/ATCController.hxx
>
36
#include <
ATC/trafficcontrol.hxx
>
37
38
/******************************************************************************
39
* class FGStartupController
40
* handle
41
*****************************************************************************/
42
43
class
FGStartupController
:
public
FGATCController
44
{
45
private
:
47
int
getFrequency();
48
49
public
:
50
FGStartupController
(
FGAirportDynamics
*
parent
);
51
virtual
~FGStartupController
();
52
53
virtual
void
announcePosition
(
int
id
,
FGAIFlightPlan
*intendedRoute,
int
currentRoute,
54
double
lat,
double
lon,
55
double
hdg,
double
spd,
double
alt,
double
radius,
int
leg,
56
FGAIAircraft
*aircraft);
57
virtual
void
updateAircraftInformation
(
int
id
, SGGeod geod,
58
double
heading,
double
speed,
double
alt,
double
dt);
59
60
virtual
void
render
(
bool
);
61
virtual
std::string
getName
()
const
;
62
virtual
void
update
(
double
dt);
63
};
ATCController.hxx
airports_fwd.hxx
FGAIAircraft
Definition
AIAircraft.hxx:27
FGAIFlightPlan
Definition
AIFlightPlan.hxx:124
FGATCController::parent
FGAirportDynamics * parent
Definition
ATCController.hxx:86
FGATCController::FGATCController
FGATCController()
Definition
ATCController.cxx:51
FGAirportDynamics
Definition
dynamics.hxx:61
FGStartupController::updateAircraftInformation
virtual void updateAircraftInformation(int id, SGGeod geod, double heading, double speed, double alt, double dt)
Definition
StartupController.cxx:118
FGStartupController::FGStartupController
FGStartupController(FGAirportDynamics *parent)
Definition
StartupController.cxx:66
FGStartupController::~FGStartupController
virtual ~FGStartupController()
Definition
StartupController.cxx:72
FGStartupController::update
virtual void update(double dt)
Definition
StartupController.cxx:424
FGStartupController::render
virtual void render(bool)
Definition
StartupController.cxx:223
FGStartupController::announcePosition
virtual void announcePosition(int id, FGAIFlightPlan *intendedRoute, int currentRoute, double lat, double lon, double hdg, double spd, double alt, double radius, int leg, FGAIAircraft *aircraft)
Definition
StartupController.cxx:76
FGStartupController::getName
virtual std::string getName() const
Definition
StartupController.cxx:420
trafficcontrol.hxx
src
ATC
StartupController.hxx
Generated on Tue Jun 3 2025 12:58:37 for FlightGear by
1.13.2