calculating target distance in Vizzy
Calculate distance using vector length or Euclidean formulas since target position is a 3D vector, not a scalar.
- Target position outputs a 3D vector and cannot be compared directly against a single scalar value
- Taking the length of nav target position calculates scalar distance for comparison conditions
- Replacing while loops with wait commands saves craft battery during execution
- Display blocks placed after wait steps help diagnose whether condition checks evaluate properly
- Calculating Euclidean distance manually requires finding the square root of squared differences across x, y, and z coordinates


