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/mode_avoidADSB.cpp
Views: 1798
1
#include "mode.h"
2
#include "Plane.h"
3
4
#if HAL_ADSB_ENABLED
5
6
bool ModeAvoidADSB::_enter()
7
{
8
return plane.mode_guided.enter();
9
}
10
11
void ModeAvoidADSB::update()
12
{
13
plane.mode_guided.update();
14
}
15
16
void ModeAvoidADSB::navigate()
17
{
18
// Zero indicates to use WP_LOITER_RAD
19
plane.update_loiter(0);
20
}
21
22
#endif // HAL_ADSB_ENABLED
23
24
25