Skip to content

salvage: fix HelloDrone image path when getImages empty (credit @webshared #4658)#9784

Open
Bartok9 wants to merge 1 commit into
microsoft:mainfrom
Bartok9:salvage/hello-drone-image-save-4658-20260716
Open

salvage: fix HelloDrone image path when getImages empty (credit @webshared #4658)#9784
Bartok9 wants to merge 1 commit into
microsoft:mainfrom
Bartok9:salvage/hello-drone-image-save-4658-20260716

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 16, 2026

Copy link
Copy Markdown

Summary

salvage: Fix inverted response.size() guard in HelloDrone/main.cpp so the image save path prompt runs when images were received.

credit @webshared #4658 — rebased / re-applied on current main (2026-07-16).

Motivation

Original condition used if (!response.size()) before prompting to save, so success path was inverted (prompt on empty captures). Small example quality fix for first-run HelloDrone demos.

Test plan

  • Diff matches author intent (+ exchange polarity only)
  • Build HelloDrone when UE toolchain available (docs-level logic review OK offline)

Notes

Does not change flight, geofences, or arming. Example client only.

Invert empty-check so HelloDrone asks for a save path when
simGetImages actually returned frames (not when the vector is empty).

Salvage of microsoft#4658 by @webshared — rebased onto
current main and re-verified (CRLF preserved).

Spec: tools/aerial-drone-pr-campaign/specs/airsim/2026-07-16-salvage.md
@Bartok9
Bartok9 force-pushed the salvage/hello-drone-image-save-4658-20260716 branch from d29b50c to 0ef0ce1 Compare July 16, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant