FlightGear
next
EnRouteController.hxx
Go to the documentation of this file.
1
/*
2
* SPDX-FileName: EnRouteController.hxx
3
* SPDX-FileComment: ATC Controller controlling Leg 4
4
* SPDX-FileCopyrightText: Copyright (C) 2025 Keith Paterson - keith.paterson@gmx.de
5
* SPDX-License-Identifier: GPL-2.0-or-later
6
*/
7
#pragma once
8
9
#include <
Airports/airports_fwd.hxx
>
10
11
#include <
ATC/ATCController.hxx
>
12
13
using
std::string;
14
15
class
EnRouteController
:
public
FGATCController
16
{
17
public
:
18
string
getTransponderCode
(
const
string
& fltRules);
19
20
int
getFrequency
();
21
void
announcePosition
(
int
id
,
22
FGAIFlightPlan
* intendedRoute,
int
currentRoute,
23
double
lat,
double
lon,
24
double
heading,
double
speed,
25
double
alt,
double
radius,
26
int
leg,
27
FGAIAircraft
* aircraft);
28
void
updateAircraftInformation
(
int
id
, SGGeod geod,
29
double
heading,
double
speed,
double
alt,
double
dt);
30
void
render
(
bool
);
31
std::string
getName
()
const
;
32
void
update
(
double
);
33
};
ATCController.hxx
airports_fwd.hxx
EnRouteController
Definition
EnRouteController.hxx:16
EnRouteController::announcePosition
void announcePosition(int id, FGAIFlightPlan *intendedRoute, int currentRoute, double lat, double lon, double heading, double speed, double alt, double radius, int leg, FGAIAircraft *aircraft)
Definition
EnRouteController.cxx:22
EnRouteController::getFrequency
int getFrequency()
Returns the frequency to be used.
Definition
EnRouteController.cxx:21
EnRouteController::updateAircraftInformation
void updateAircraftInformation(int id, SGGeod geod, double heading, double speed, double alt, double dt)
Definition
EnRouteController.cxx:51
EnRouteController::update
void update(double)
Definition
EnRouteController.cxx:55
EnRouteController::getName
std::string getName() const
Definition
EnRouteController.cxx:54
EnRouteController::getTransponderCode
string getTransponderCode(const string &fltRules)
Definition
EnRouteController.cxx:16
EnRouteController::render
void render(bool)
Definition
EnRouteController.cxx:53
FGAIAircraft
Definition
AIAircraft.hxx:27
FGAIFlightPlan
Definition
AIFlightPlan.hxx:124
FGATCController::FGATCController
FGATCController()
Definition
ATCController.cxx:51
src
ATC
EnRouteController.hxx
Generated on Tue Jun 3 2025 12:58:37 for FlightGear by
1.13.2