From b55e12839916c45c29e3844b2b3d4fd59711ea11 Mon Sep 17 00:00:00 2001 From: robot-to-society Date: Mon, 17 Jun 2024 15:03:44 +0900 Subject: [PATCH] Mission: add is_resume method --- libraries/AP_Mission/AP_Mission.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Mission/AP_Mission.h b/libraries/AP_Mission/AP_Mission.h index a06fa0012811fe..e76c3a638f5486 100644 --- a/libraries/AP_Mission/AP_Mission.h +++ b/libraries/AP_Mission/AP_Mission.h @@ -709,6 +709,9 @@ class AP_Mission _force_resume = force_resume; } + // returns true if configured to resume + bool is_resume() const { return _restart == 0 || _force_resume; } + // get a reference to the AP_Mission semaphore, allowing an external caller to lock the // storage while working with multiple waypoints HAL_Semaphore &get_semaphore(void)