Skip to content

Commit

Permalink
Additional cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
momcilo78 committed Mar 28, 2022
1 parent 08ea8ea commit f13ca4e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/main/Waypoints/WaypointManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class WaypointManager {
static private Double z;
static private Double selfX;
static private Double selfZ;

public static void transfer(){
String model = PortListenerThread.getPlaneModel();

Expand Down Expand Up @@ -71,7 +72,6 @@ public static boolean saveWaypointSuccessful(){
z = PortListenerThread.getZ();
selfX = PortListenerThread.getSelfX();
selfZ = PortListenerThread.getSelfZ();

if(latitude != null && longitude != null && elevation != null){
Hemisphere latHem;
Hemisphere longHem;
Expand All @@ -86,7 +86,6 @@ public static boolean saveWaypointSuccessful(){
longHem = Hemisphere.EAST;
}
var point = new Point(latitude.replace("-", ""), longitude.replace("-", ""), elevation, latHem, longHem, x, z);
System.out.println(point);
waypoints.add(point);
return true;
}
Expand Down

0 comments on commit f13ca4e

Please sign in to comment.