mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Formatting
This commit is contained in:
@@ -65,7 +65,7 @@ using namespace BlackCore::Vatsim;
|
|||||||
|
|
||||||
namespace BlackCore
|
namespace BlackCore
|
||||||
{
|
{
|
||||||
CAirspaceMonitor::CAirspaceMonitor(BlackMisc::Simulation::IOwnAircraftProvider *ownAircraftProvider, INetwork *network, QObject *parent)
|
CAirspaceMonitor::CAirspaceMonitor(IOwnAircraftProvider *ownAircraftProvider, INetwork *network, QObject *parent)
|
||||||
: QObject(parent),
|
: QObject(parent),
|
||||||
COwnAircraftAware(ownAircraftProvider),
|
COwnAircraftAware(ownAircraftProvider),
|
||||||
CIdentifiable(this),
|
CIdentifiable(this),
|
||||||
|
|||||||
@@ -26,7 +26,6 @@
|
|||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
|
||||||
using namespace BlackMisc;
|
|
||||||
using namespace BlackMisc::Aviation;
|
using namespace BlackMisc::Aviation;
|
||||||
using namespace BlackMisc::Geo;
|
using namespace BlackMisc::Geo;
|
||||||
using namespace BlackMisc::Network;
|
using namespace BlackMisc::Network;
|
||||||
@@ -52,10 +51,10 @@ namespace BlackMisc
|
|||||||
// from WGS is slow, so static const (only 1 time init)
|
// from WGS is slow, so static const (only 1 time init)
|
||||||
// https://dev.vatsim-germany.org/issues/322#note-2
|
// https://dev.vatsim-germany.org/issues/322#note-2
|
||||||
static const CCoordinateGeodetic geoPos = CCoordinateGeodetic::fromWgs84("48° 21′ 13″ N", "11° 47′ 09″ E", CAltitude(index, CLengthUnit::ft()));
|
static const CCoordinateGeodetic geoPos = CCoordinateGeodetic::fromWgs84("48° 21′ 13″ N", "11° 47′ 09″ E", CAltitude(index, CLengthUnit::ft()));
|
||||||
QString cs = QString("%1_TWR").arg(index);
|
const QString cs = QString("%1_TWR").arg(index);
|
||||||
QString usr = QString("Joe %1").arg(index);
|
const QString usr = QString("Joe %1").arg(index);
|
||||||
QString id = QString("00000%1").arg(index).right(6);
|
const QString id = QString("00000%1").arg(index).right(6);
|
||||||
double f = 118.0 + (index % 30) * 0.25;
|
const double f = 118.0 + (index % 30) * 0.25;
|
||||||
|
|
||||||
const QDateTime dtFrom = QDateTime::currentDateTimeUtc();
|
const QDateTime dtFrom = QDateTime::currentDateTimeUtc();
|
||||||
const QDateTime dtUntil = dtFrom.addSecs(60 * 60); // 1 hour
|
const QDateTime dtUntil = dtFrom.addSecs(60 * 60); // 1 hour
|
||||||
@@ -109,8 +108,8 @@ namespace BlackMisc
|
|||||||
for (int i = 0; i < number; i++)
|
for (int i = 0; i < number; i++)
|
||||||
{
|
{
|
||||||
const char cc = 65 + (i % 26);
|
const char cc = 65 + (i % 26);
|
||||||
QString icao = QString("EXX%1").arg(QLatin1Char(cc));
|
const QString icao = QString("EXX%1").arg(QLatin1Char(cc));
|
||||||
BlackMisc::Aviation::CAirport a(icao);
|
CAirport a(icao);
|
||||||
a.setPosition(CCoordinateGeodetic(i, i, i));
|
a.setPosition(CCoordinateGeodetic(i, i, i));
|
||||||
list.push_back(a);
|
list.push_back(a);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user