Skip to content

Commit

Permalink
Uses now StartAzimuth instead of ConstantAzimuth for bearing to other…
Browse files Browse the repository at this point in the history
… ship
  • Loading branch information
ChristianDenker committed Dec 14, 2020
1 parent d3b1ff0 commit 478ccfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/simulator/ApplicationCPA.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static void main(String[] args) {
System.out.println("## Ship Simulation ##");

double freq = 1;
double simulationSpeed = 1;
double simulationSpeed = 100;
Scheduler scheduler = new Scheduler(new SchedulerConfiguration(freq, simulationSpeed));

/** Ship A **/
Expand Down Expand Up @@ -58,7 +58,7 @@ public static void main(String[] args) {
geoCalc.setEndGeographicPoint(position2.getY(), position2.getX());

double distance = geoCalc.getGeodesicDistance();
double azi = geoCalc.getConstantAzimuth();//ConstantAzimuth();
double azi = geoCalc.getStartingAzimuth();
azi = (azi + 540 + 180) % 360;
azi = Math.toRadians(azi);

Expand Down

0 comments on commit 478ccfc

Please sign in to comment.