#pragma once
#include "AP_ExternalControl_config.h"
#if AP_EXTERNAL_CONTROL_ENABLED
#include <AP_Arming/AP_Arming.h>
#include <AP_Common/Location.h>
#include <AP_Math/AP_Math.h>
class AP_ExternalControl
{
public:
AP_ExternalControl();
virtual bool set_linear_velocity_and_yaw_rate(const Vector3f &linear_velocity, float yaw_rate_rads) WARN_IF_UNUSED {
return false;
}
virtual bool set_global_position(const Location& loc) WARN_IF_UNUSED {
return false;
}
virtual bool arm(AP_Arming::Method method, bool do_arming_checks) WARN_IF_UNUSED;
virtual bool disarm(AP_Arming::Method method, bool do_disarm_checks) WARN_IF_UNUSED;
static AP_ExternalControl *get_singleton(void) WARN_IF_UNUSED {
return singleton;
}
protected:
~AP_ExternalControl() {}
private:
static AP_ExternalControl *singleton;
};
namespace AP
{
AP_ExternalControl *externalcontrol();
};
#endif