CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/ArduPlane/AP_ExternalControl_Plane.cpp
Views: 1798
1
/*
2
external control library for plane
3
*/
4
5
6
#include "AP_ExternalControl_Plane.h"
7
#if AP_EXTERNAL_CONTROL_ENABLED
8
9
#include "Plane.h"
10
11
/*
12
Sets the target global position for a loiter point.
13
*/
14
bool AP_ExternalControl_Plane::set_global_position(const Location& loc)
15
{
16
17
// set_target_location already checks if plane is ready for external control.
18
// It doesn't check if flying or armed, just that it's in guided mode.
19
return plane.set_target_location(loc);
20
}
21
22
#endif // AP_EXTERNAL_CONTROL_ENABLED
23
24