Update copyright notice
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2013-2016 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
//
|
//
|
||||||
// DISCLAIMERS
|
// DISCLAIMERS
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2016 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
//
|
//
|
||||||
//DISCLAIMERS
|
//DISCLAIMERS
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2016 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
//
|
//
|
||||||
//DISCLAIMERS
|
//DISCLAIMERS
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2016 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
//
|
//
|
||||||
//DISCLAIMERS
|
//DISCLAIMERS
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2016 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
//
|
//
|
||||||
//DISCLAIMERS
|
//DISCLAIMERS
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2016 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
//
|
//
|
||||||
//DISCLAIMERS
|
//DISCLAIMERS
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2016 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
//
|
//
|
||||||
//DISCLAIMERS
|
//DISCLAIMERS
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2016 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
//
|
//
|
||||||
//DISCLAIMERS
|
//DISCLAIMERS
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//NOTICES:
|
//NOTICES:
|
||||||
// Copyright (c) 2013-2016 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
//
|
//
|
||||||
// DISCLAIMERS
|
// DISCLAIMERS
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//NOTICES:
|
//NOTICES:
|
||||||
// Copyright (c) 2013-2016 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
//
|
//
|
||||||
// DISCLAIMERS
|
// DISCLAIMERS
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//NOTICES:
|
//NOTICES:
|
||||||
// Copyright (c) 2013-2016 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
//
|
//
|
||||||
// DISCLAIMERS
|
// DISCLAIMERS
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ the next official release.
|
|||||||
|
|
||||||
|
|
||||||
### Notices
|
### Notices
|
||||||
Copyright ©2013-2017 United States Government as represented by the Administrator
|
Copyright ©2013-2018 United States Government as represented by the Administrator
|
||||||
of the National Aeronautics and Space Administration. All Rights Reserved.
|
of the National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
|
|
||||||
No Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY
|
No Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY
|
||||||
@@ -102,14 +102,14 @@ Software without restriction, including without limitation the rights to use,
|
|||||||
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
|
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
|
||||||
Software, and to permit persons to whom the Software is furnished to do so,
|
Software, and to permit persons to whom the Software is furnished to do so,
|
||||||
subject to the following conditions:
|
subject to the following conditions:
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright notice, this
|
* Redistributions of source code must retain the above copyright notice, this
|
||||||
list of conditions and the following disclaimer.
|
list of conditions and the following disclaimer.
|
||||||
* Neither the names of the authors nor that of X-Plane or Laminar Research may
|
* Neither the names of the authors nor that of X-Plane or Laminar Research may
|
||||||
be used to endorse or promote products derived from this software without
|
be used to endorse or promote products derived from this software without
|
||||||
specific prior written permission from the authors or Laminar Research,
|
specific prior written permission from the authors or Laminar Research,
|
||||||
respectively.
|
respectively.
|
||||||
|
|
||||||
X-Plane API SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
X-Plane API SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#ifndef CTRLTESTS_H
|
#ifndef CTRLTESTS_H
|
||||||
#define CTRLTESTS_H
|
#define CTRLTESTS_H
|
||||||
@@ -200,4 +200,4 @@ int testGETC_NonPlayer()
|
|||||||
float CTRL[7] = { 0.0F, 0.0F, 0.0F, 0.8F, 1.0F, 0.5F, -1.5F };
|
float CTRL[7] = { 0.0F, 0.0F, 0.0F, 0.8F, 1.0F, 0.5F, -1.5F };
|
||||||
return doGETCTest(CTRL, 2, CTRL);
|
return doGETCTest(CTRL, 2, CTRL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#ifndef DATATESTS_H
|
#ifndef DATATESTS_H
|
||||||
#define DATATESTS_H
|
#define DATATESTS_H
|
||||||
@@ -59,4 +59,4 @@ int testDATA()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#ifndef DREFTESTS_H
|
#ifndef DREFTESTS_H
|
||||||
#define DREFTESTS_H
|
#define DREFTESTS_H
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#ifndef POSITESTS_H
|
#ifndef POSITESTS_H
|
||||||
#define POSITESTS_H
|
#define POSITESTS_H
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#ifndef SIMUTESTS_H
|
#ifndef SIMUTESTS_H
|
||||||
#define SIMIUTESTS_H
|
#define SIMIUTESTS_H
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#include "Test.h"
|
#include "Test.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#ifndef TESTRUNNER_H
|
#ifndef TESTRUNNER_H
|
||||||
#define TESTRUNNER_H
|
#define TESTRUNNER_H
|
||||||
@@ -36,4 +36,4 @@ int compareArrays(float* expected[], int esizes[], float* actual[], int asizes[]
|
|||||||
int compareDoubleArray(double expected[], double actual[], int size);
|
int compareDoubleArray(double expected[], double actual[], int size);
|
||||||
int compareDoubleArrays(double* expected[], int esizes[], double* actual[], int asizes[], int count);
|
int compareDoubleArrays(double* expected[], int esizes[], double* actual[], int asizes[], int count);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#ifndef TEXTTESTS_H
|
#ifndef TEXTTESTS_H
|
||||||
#define TEXTTESTS_H
|
#define TEXTTESTS_H
|
||||||
@@ -29,4 +29,4 @@ int testTEXT()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#ifndef UDPTESTS_H
|
#ifndef UDPTESTS_H
|
||||||
#define UDPTESTS_H
|
#define UDPTESTS_H
|
||||||
@@ -52,4 +52,4 @@ int testCONN()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#ifndef VIEWTESTS_H
|
#ifndef VIEWTESTS_H
|
||||||
#define VIEWTESTS_H
|
#define VIEWTESTS_H
|
||||||
@@ -70,4 +70,4 @@ int testView()
|
|||||||
|
|
||||||
return doViewTest(XPC_VIEW_CHASE, XPC_VDREF_CHASE);
|
return doViewTest(XPC_VIEW_CHASE, XPC_VDREF_CHASE);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#ifndef WYPTTESTS_H
|
#ifndef WYPTTESTS_H
|
||||||
#define WYPTTESTS_H
|
#define WYPTTESTS_H
|
||||||
@@ -39,4 +39,4 @@ int testWYPT()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the
|
//Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
//National Aeronautics and Space Administration. All Rights Reserved.
|
//National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#include "Test.h"
|
#include "Test.h"
|
||||||
#include "UDPTests.h"
|
#include "UDPTests.h"
|
||||||
@@ -85,4 +85,3 @@ int main(int argc, const char * argv[]) {
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
//
|
//
|
||||||
// X-Plane API
|
// X-Plane API
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#ifndef XPCPLUGIN_DATAMANAGER_H_
|
#ifndef XPCPLUGIN_DATAMANAGER_H_
|
||||||
#define XPCPLUGIN_DATAMANAGER_H_
|
#define XPCPLUGIN_DATAMANAGER_H_
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
//
|
//
|
||||||
// X-Plane API
|
// X-Plane API
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#ifndef XPCPLUGIN_DRAWING_H_
|
#ifndef XPCPLUGIN_DRAWING_H_
|
||||||
#define XPCPLUGIN_DRAWING_H_
|
#define XPCPLUGIN_DRAWING_H_
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ namespace XPC
|
|||||||
|
|
||||||
std::fprintf(fd, "X-Plane Connect [Version %s]\n", version.c_str());
|
std::fprintf(fd, "X-Plane Connect [Version %s]\n", version.c_str());
|
||||||
std::fprintf(fd, "Compiled %s %s\n", __DATE__, __TIME__);
|
std::fprintf(fd, "Compiled %s %s\n", __DATE__, __TIME__);
|
||||||
std::fprintf(fd, "Copyright (c) 2013-2017 United States Government as represented by the\n");
|
std::fprintf(fd, "Copyright (c) 2013-2018 United States Government as represented by the\n");
|
||||||
std::fprintf(fd, "Administrator of the National Aeronautics and Space Administration.\n");
|
std::fprintf(fd, "Administrator of the National Aeronautics and Space Administration.\n");
|
||||||
std::fprintf(fd, "All Rights Reserved.\n\n");
|
std::fprintf(fd, "All Rights Reserved.\n\n");
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#ifndef XPCPLUGIN_LOG_H_
|
#ifndef XPCPLUGIN_LOG_H_
|
||||||
#define XPCPLUGIN_LOG_H_
|
#define XPCPLUGIN_LOG_H_
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
namespace XPC
|
namespace XPC
|
||||||
{
|
{
|
||||||
/// Handles logging for the plugin.
|
/// Handles logging for the plugin.
|
||||||
///
|
///
|
||||||
/// \details Provides functions to write lines to the XPC log file.
|
/// \details Provides functions to write lines to the XPC log file.
|
||||||
/// \author Jason Watkins
|
/// \author Jason Watkins
|
||||||
/// \version 1.1
|
/// \version 1.1
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#include "Message.h"
|
#include "Message.h"
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#ifndef XPCPLUGIN_MESSAGE_H_
|
#ifndef XPCPLUGIN_MESSAGE_H_
|
||||||
#define XPCPLUGIN_MESSAGE_H_
|
#define XPCPLUGIN_MESSAGE_H_
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
//
|
//
|
||||||
// X-Plane API
|
// X-Plane API
|
||||||
@@ -578,7 +578,7 @@ namespace XPC
|
|||||||
{
|
{
|
||||||
DataManager::SetGear(gear, true, aircraftNumber);
|
DataManager::SetGear(gear, true, aircraftNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (aircraftNumber > 0)
|
if (aircraftNumber > 0)
|
||||||
{
|
{
|
||||||
// Enable AI for the aircraftNumber we are setting
|
// Enable AI for the aircraftNumber we are setting
|
||||||
@@ -589,7 +589,7 @@ namespace XPC
|
|||||||
ai[aircraftNumber] = 1;
|
ai[aircraftNumber] = 1;
|
||||||
DataManager::Set(DREF_PauseAI, ai, 0, 20);
|
DataManager::Set(DREF_PauseAI, ai, 0, 20);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MessageHandlers::HandleSimu(const Message& msg)
|
void MessageHandlers::HandleSimu(const Message& msg)
|
||||||
@@ -621,7 +621,7 @@ namespace XPC
|
|||||||
else if ((v >= 200) && (v < 220))
|
else if ((v >= 200) && (v < 220))
|
||||||
{
|
{
|
||||||
DataManager::GetIntArray(DREF_Pause, value, 20);
|
DataManager::GetIntArray(DREF_Pause, value, 20);
|
||||||
value[v - 200] = 0;
|
value[v - 200] = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -633,7 +633,7 @@ namespace XPC
|
|||||||
|
|
||||||
// Set DREF
|
// Set DREF
|
||||||
DataManager::Set(DREF_Pause, value, 20);
|
DataManager::Set(DREF_Pause, value, 20);
|
||||||
|
|
||||||
if (v == 0)
|
if (v == 0)
|
||||||
{
|
{
|
||||||
Log::WriteLine(LOG_INFO, "SIMU", "Simulation resumed for all a/c");
|
Log::WriteLine(LOG_INFO, "SIMU", "Simulation resumed for all a/c");
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#ifndef XPCPLUGIN_MESSAGEHANDLERS_H_
|
#ifndef XPCPLUGIN_MESSAGEHANDLERS_H_
|
||||||
#define XPCPLUGIN_MESSAGEHANDLERS_H_
|
#define XPCPLUGIN_MESSAGEHANDLERS_H_
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
#include "UDPSocket.h"
|
#include "UDPSocket.h"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
#ifndef XPCPLUGIN_SOCKET_H_
|
#ifndef XPCPLUGIN_SOCKET_H_
|
||||||
#define XPCPLUGIN_SOCKET_H_
|
#define XPCPLUGIN_SOCKET_H_
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the
|
// Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
|
||||||
// National Aeronautics and Space Administration. All Rights Reserved.
|
// National Aeronautics and Space Administration. All Rights Reserved.
|
||||||
//
|
//
|
||||||
// DISCLAIMERS
|
// DISCLAIMERS
|
||||||
@@ -92,7 +92,7 @@ PLUGIN_API int XPluginStart(char* outName, char* outSig, char* outDesc)
|
|||||||
{
|
{
|
||||||
strcpy(outName, "X-Plane Connect [Version 1.2.1]");
|
strcpy(outName, "X-Plane Connect [Version 1.2.1]");
|
||||||
strcpy(outSig, "NASA.XPlaneConnect");
|
strcpy(outSig, "NASA.XPlaneConnect");
|
||||||
strcpy(outDesc, "X Plane Communications Toolbox\nCopyright (c) 2013-2017 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved.");
|
strcpy(outDesc, "X Plane Communications Toolbox\nCopyright (c) 2013-2018 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved.");
|
||||||
|
|
||||||
#if (__APPLE__)
|
#if (__APPLE__)
|
||||||
int (*_abs)( int ) = & std::abs; // Needed to resolve ambiguity for OS X compilation
|
int (*_abs)( int ) = & std::abs; // Needed to resolve ambiguity for OS X compilation
|
||||||
@@ -147,7 +147,7 @@ PLUGIN_API int XPluginEnable(void)
|
|||||||
XPC::Log::FormatLine(LOG_INFO, "EXEC", "Benchmarking Enabled (Verbosity: %i)", benchmarkingSwitch);
|
XPC::Log::FormatLine(LOG_INFO, "EXEC", "Benchmarking Enabled (Verbosity: %i)", benchmarkingSwitch);
|
||||||
}
|
}
|
||||||
XPC::Log::FormatLine(LOG_INFO, "EXEC", "Debug Logging Enabled (Verbosity: %i)", LOG_LEVEL);
|
XPC::Log::FormatLine(LOG_INFO, "EXEC", "Debug Logging Enabled (Verbosity: %i)", LOG_LEVEL);
|
||||||
|
|
||||||
float interval = -1; // Call every frame
|
float interval = -1; // Call every frame
|
||||||
void* refcon = NULL; // Don't pass anything to the callback directly
|
void* refcon = NULL; // Don't pass anything to the callback directly
|
||||||
XPLMRegisterFlightLoopCallback(XPCFlightLoopCallback, interval, refcon);
|
XPLMRegisterFlightLoopCallback(XPCFlightLoopCallback, interval, refcon);
|
||||||
|
|||||||
Reference in New Issue
Block a user