mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 18:25:42 +08:00
Initial commit
This commit is contained in:
61
blacklib/include/blackcore/fsd_protocol.h
Normal file
61
blacklib/include/blackcore/fsd_protocol.h
Normal file
@@ -0,0 +1,61 @@
|
||||
//! Copyright (C) 2013 Roland Winklmeier
|
||||
//! This Source Code Form is subject to the terms of the Mozilla Public
|
||||
//! License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
//! file, You can obtain one at http://mozilla.org/MPL/2.0/
|
||||
|
||||
#ifndef FSD_PROTOCOL_H
|
||||
#define FSD_PROTOCOL_H
|
||||
|
||||
#include <QString>
|
||||
|
||||
namespace FSD
|
||||
{
|
||||
enum SimulatorType {
|
||||
SIM_UNKNOWN = -1,
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
Query_FP,
|
||||
Query_Frequency,
|
||||
Query_Server,
|
||||
Query_RealName,
|
||||
Query_isATC,
|
||||
Query_Capabilities,
|
||||
Query_IP
|
||||
} TQueryType;
|
||||
|
||||
typedef enum {
|
||||
TMode_Standby = 'S',
|
||||
TMode_Charly = 'N',
|
||||
TMode_Ident = 'Y'
|
||||
} TTransponderMode;
|
||||
|
||||
typedef struct {
|
||||
TTransponderMode transponderMode;
|
||||
quint16 squawk;
|
||||
quint8 rating;
|
||||
double latitude;
|
||||
double longitude;
|
||||
qint32 altitude;
|
||||
qint32 groundSpeed;
|
||||
double pitch;
|
||||
double bank;
|
||||
double heading;
|
||||
qint32 diffPressureTrueAlt;
|
||||
} TPositionMessage;
|
||||
|
||||
|
||||
const QString Headers[] = {
|
||||
"@",
|
||||
"%",
|
||||
"#AA",
|
||||
"#AP",
|
||||
"#DA",
|
||||
"#DP",
|
||||
"#TM"
|
||||
};
|
||||
|
||||
#define MAX_FSD_HEADERS 7
|
||||
}
|
||||
|
||||
#endif // FSD_PROTOCOL_H
|
||||
Reference in New Issue
Block a user