Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/ArduPlane/mode_avoidADSB.cpp
9317 views
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