Line data Source code
1 : #include "mode.h" 2 : #include "Plane.h" 3 : 4 : #if HAL_ADSB_ENABLED 5 : 6 3 : bool ModeAvoidADSB::_enter() 7 : { 8 3 : return plane.mode_guided.enter(); 9 : } 10 : 11 3597 : void ModeAvoidADSB::update() 12 : { 13 3597 : plane.mode_guided.update(); 14 3597 : } 15 : 16 519 : void ModeAvoidADSB::navigate() 17 : { 18 : // Zero indicates to use WP_LOITER_RAD 19 519 : plane.update_loiter(0); 20 519 : } 21 : 22 : #endif // HAL_ADSB_ENABLED 23 :