mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
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:
co-authored by
Andrew Tridgell
parent
37a3f85a9a
commit
0f624089f8
@@ -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
|
||||
Reference in New Issue
Block a user