2023-08-08 21:28:00 -03:00
|
|
|
#include "AP_ExternalControl.h"
|
|
|
|
|
|
|
|
#if AP_EXTERNAL_CONTROL_ENABLED
|
|
|
|
|
|
|
|
// singleton instance
|
|
|
|
AP_ExternalControl *AP_ExternalControl::singleton;
|
|
|
|
|
2024-11-13 15:46:21 -04:00
|
|
|
bool AP_ExternalControl::arm(AP_Arming::Method method, bool do_arming_checks)
|
|
|
|
{
|
|
|
|
return AP::arming().arm(method, do_arming_checks);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool AP_ExternalControl::disarm(AP_Arming::Method method, bool do_disarm_checks)
|
|
|
|
{
|
|
|
|
return AP::arming().disarm(method, do_disarm_checks);
|
|
|
|
}
|
|
|
|
|
2023-08-08 21:28:00 -03:00
|
|
|
AP_ExternalControl::AP_ExternalControl()
|
|
|
|
{
|
|
|
|
singleton = this;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
namespace AP
|
|
|
|
{
|
|
|
|
|
|
|
|
AP_ExternalControl *externalcontrol()
|
|
|
|
{
|
|
|
|
return AP_ExternalControl::get_singleton();
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // AP_EXTERNAL_CONTROL_ENABLED
|