Skip to content

Commit

Permalink
Don't allow drones to go underground
Browse files Browse the repository at this point in the history
  • Loading branch information
johncarl81 committed Feb 15, 2024
1 parent 4e604a2 commit b626224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/edu/unm/dragonfly/Drone.java
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public static class LatLonRelativeAltitude {
public LatLonRelativeAltitude(double latitude, double longitude, double relativeAltitude) {
this.latitude = latitude;
this.longitude = longitude;
this.relativeAltitude = relativeAltitude;
this.relativeAltitude = relativeAltitude > 0 ? relativeAltitude : 0;
}

public double getLatitude() {
Expand Down

0 comments on commit b626224

Please sign in to comment.