mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-01 13:40:38 +08:00
test(navigator): reserve capacity for rally points in RTL test setup
This commit is contained in:
1 parent
c4e66ad303
commit
c348557ed0
1 file changed
+1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user