diff options
Diffstat (limited to 'proto-fg')
-rw-r--r-- | proto-fg/ftnoir_protocol_fg.cpp | 6 | ||||
-rw-r--r-- | proto-fg/ftnoir_protocol_fg.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/proto-fg/ftnoir_protocol_fg.cpp b/proto-fg/ftnoir_protocol_fg.cpp index 599a4d2c..3df51c3e 100644 --- a/proto-fg/ftnoir_protocol_fg.cpp +++ b/proto-fg/ftnoir_protocol_fg.cpp @@ -13,7 +13,7 @@ // For Todd and Arda Kutlu -void FTNoIR_Protocol::pose(const double* headpose) { +void flightgear::pose(const double* headpose) { FlightData.x = headpose[TX] * 1e-2; FlightData.y = headpose[TY] * 1e-2; FlightData.z = headpose[TZ] * 1e-2; @@ -30,9 +30,9 @@ void FTNoIR_Protocol::pose(const double* headpose) { (void) outSocket.writeDatagram(reinterpret_cast<const char*>(&FlightData), sizeof(FlightData), destIP, static_cast<quint16>(destPort)); } -bool FTNoIR_Protocol::correct() +bool flightgear::correct() { return outSocket.bind(QHostAddress::Any, 0, QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint); } -OPENTRACK_DECLARE_PROTOCOL(FTNoIR_Protocol, FGControls, FTNoIR_ProtocolDll) +OPENTRACK_DECLARE_PROTOCOL(flightgear, FGControls, flightgearDll) diff --git a/proto-fg/ftnoir_protocol_fg.h b/proto-fg/ftnoir_protocol_fg.h index 3cacf1a5..070ca571 100644 --- a/proto-fg/ftnoir_protocol_fg.h +++ b/proto-fg/ftnoir_protocol_fg.h @@ -31,7 +31,7 @@ struct settings : opts { {} }; -class FTNoIR_Protocol : public IProtocol +class flightgear : public IProtocol { public: bool correct(); @@ -61,7 +61,7 @@ private slots: void doCancel(); }; -class FTNoIR_ProtocolDll : public Metadata +class flightgearDll : public Metadata { public: QString name() { return QString("FlightGear"); } |