From 256888730a503abe4d6fc3e5f87ef31dcea4b564 Mon Sep 17 00:00:00 2001 From: muramura Date: Thu, 2 May 2024 04:51:52 +0900 Subject: [PATCH] AP_Mission: Change the magic number to a defined value --- libraries/AP_Mission/AP_Mission.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Mission/AP_Mission.cpp b/libraries/AP_Mission/AP_Mission.cpp index f15e753e4a031..89691085d3b51 100644 --- a/libraries/AP_Mission/AP_Mission.cpp +++ b/libraries/AP_Mission/AP_Mission.cpp @@ -2553,7 +2553,7 @@ bool AP_Mission::distance_to_landing(uint16_t index, float &tot_distance, Locati } // run through remainder of mission to approximate a distance to landing - for (uint8_t i=0; i<255; i++) { + for (uint8_t i=0; i