From 147b1284c99a49b6ceed048a363ea353e43f0ed2 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 3 Jan 2022 12:51:29 +0900 Subject: [PATCH] Rover: guided mode fix for reached_destination during wpnav --- Rover/mode_guided.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rover/mode_guided.cpp b/Rover/mode_guided.cpp index a80527904d..b05519dd89 100644 --- a/Rover/mode_guided.cpp +++ b/Rover/mode_guided.cpp @@ -244,7 +244,7 @@ bool ModeGuided::reached_destination() const { switch (_guided_mode) { case Guided_WP: - return _reached_destination; + return g2.wp_nav.reached_destination(); case Guided_HeadingAndSpeed: case Guided_TurnRateAndSpeed: case Guided_Loiter: