You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
333 B

#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