2019-01-15 13:46:13 -04:00
|
|
|
#include "mode.h"
|
|
|
|
#include "Plane.h"
|
|
|
|
|
2020-09-22 14:00:39 -03:00
|
|
|
#if HAL_ADSB_ENABLED
|
|
|
|
|
2019-01-15 13:46:13 -04:00
|
|
|
bool ModeAvoidADSB::_enter()
|
|
|
|
{
|
|
|
|
return plane.mode_guided.enter();
|
|
|
|
}
|
|
|
|
|
|
|
|
void ModeAvoidADSB::update()
|
|
|
|
{
|
|
|
|
plane.mode_guided.update();
|
|
|
|
}
|
|
|
|
|
2020-08-19 04:51:00 -03:00
|
|
|
void ModeAvoidADSB::navigate()
|
2020-07-29 12:01:34 -03:00
|
|
|
{
|
2020-08-11 07:54:28 -03:00
|
|
|
// Zero indicates to use WP_LOITER_RAD
|
|
|
|
plane.update_loiter(0);
|
2020-07-29 12:01:34 -03:00
|
|
|
}
|
|
|
|
|
2020-09-22 14:00:39 -03:00
|
|
|
#endif // HAL_ADSB_ENABLED
|
|
|
|
|