ardupilot/libraries/AP_ExternalControl/AP_ExternalControl.cpp

25 lines
358 B
C++

#include "AP_ExternalControl.h"
#if AP_EXTERNAL_CONTROL_ENABLED
// singleton instance
AP_ExternalControl *AP_ExternalControl::singleton;
AP_ExternalControl::AP_ExternalControl()
{
singleton = this;
}
namespace AP
{
AP_ExternalControl *externalcontrol()
{
return AP_ExternalControl::get_singleton();
}
};
#endif // AP_EXTERNAL_CONTROL_ENABLED