diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-04 19:15:54 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-04 19:48:11 +0100 |
commit | b89699c7551f768bf4ff47820543f8c7b8c794af (patch) | |
tree | c3a21ec23a40250ec54b97fe17b9035a932cfaf8 /proto-fg/ftnoir_protocol_fg.cpp | |
parent | 068e0c7d432ede0a388fe1478b5146fcf1809315 (diff) |
modules: make names unique
Diffstat (limited to 'proto-fg/ftnoir_protocol_fg.cpp')
-rw-r--r-- | proto-fg/ftnoir_protocol_fg.cpp | 6 |
1 files changed, 3 insertions, 3 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) |