AP_ExternalControl: external control library for MAVLink,lua and DDS

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Co-authored-by: Andrew Tridgell <tridge60@gmail.com>
This commit is contained in:
Andrew Tridgell
2023-08-22 18:21:23 +10:00
co-authored by Andrew Tridgell
parent 37a3f85a9a
commit 0f624089f8
3 changed files with 77 additions and 0 deletions
@@ -0,0 +1,24 @@
#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