Merge pull request #85 from PAMGuard/main

Fix vector error
This commit is contained in:
Douglas Gillespie 2024-07-16 10:58:25 +01:00 committed by GitHub
commit a3f41e22e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -905,7 +905,7 @@ public class PamVector implements Serializable, Cloneable, PamCoordinate, Manage
} }
double[] angs = new double[3]; double[] angs = new double[3];
angs[0] = vectors[0].getHeading(); angs[0] = vectors[0].getHeading();
angs[1] = vectors[1].getPitch(); angs[1] = vectors[0].getPitch();
if (vectors.length >= 2) { if (vectors.length >= 2) {
angs[2] = vectors[1].getPitch(); angs[2] = vectors[1].getPitch();
} }