test(navigator): reserve capacity for rally points in RTL test setup

This commit is contained in:
Anil Kircaliali committed 2026-11-25 16:53:48 +01:00
1 parent c4e66ad303
commit c348557ed0
1 file changed
+1
+1
View File
@@ -3701,6 +3701,7 @@ protected:
publishHomePosition(makePositionYawSetpointFromOffset(kBaseLat, kBaseLon, home_north_m, 0.f, kAlt));
primeNavigatorState();
std::vector<mission_item_s> items;
items.reserve(rally_points.size());
for (const PositionYawSetpoint &rally_point : rally_points) {
items.push_back(makeSafePointItem(rally_point.lat, rally_point.lon, rally_point.alt, NAV_FRAME_GLOBAL));