5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-05 15:38:29 -04:00
ardupilot/ArduPlane/mode_avoidADSB.cpp
2020-09-24 08:22:16 -07:00

24 lines
333 B
C++

#include "mode.h"
#include "Plane.h"
#if HAL_ADSB_ENABLED
bool ModeAvoidADSB::_enter()
{
return plane.mode_guided.enter();
}
void ModeAvoidADSB::update()
{
plane.mode_guided.update();
}
void ModeAvoidADSB::navigate()
{
// Zero indicates to use WP_LOITER_RAD
plane.update_loiter(0);
}
#endif // HAL_ADSB_ENABLED