From 578023483c3d35c4ed69e70d9e971086afb27a03 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 19 Jun 2019 07:39:00 +0900 Subject: [PATCH] AC_Avoidance: Dijkstra's expanding arrays use 32 elements per chunk --- libraries/AC_Avoidance/AP_OADijkstra.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AC_Avoidance/AP_OADijkstra.cpp b/libraries/AC_Avoidance/AP_OADijkstra.cpp index 3c08e87484..8f96e2b54a 100644 --- a/libraries/AC_Avoidance/AP_OADijkstra.cpp +++ b/libraries/AC_Avoidance/AP_OADijkstra.cpp @@ -16,7 +16,7 @@ #include "AP_OADijkstra.h" #include -#define OA_DIJKSTRA_EXPANDING_ARRAY_ELEMENTS_PER_CHUNK 20 // expanding arrays for inner polygon fence and paths to destination will grow in increments of 20 elements +#define OA_DIJKSTRA_EXPANDING_ARRAY_ELEMENTS_PER_CHUNK 32 // expanding arrays for inner polygon fence and paths to destination will grow in increments of 20 elements #define OA_DIJKSTRA_POLYGON_SHORTPATH_NOTSET_IDX 255 // index use to indicate we do not have a tentative short path for a node /// Constructor