Skip to content

Commit

Permalink
ArpaoExecutive: Fixed speed of generated maneuvers.
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinto committed Mar 7, 2018
1 parent 69241ca commit 93a2560
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src-backseat/pt/lsts/autonomy/ArpaoExecutive.java
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ public PlanSpecification ccalib() {
PopUp popup = new PopUp();
popup.lat = Math.toRadians(pos[0]);
popup.lon = Math.toRadians(pos[1]);
popup.speed = (float) Math.min(MIN_SPEED, speed_for_generated_maneuvers);
popup.speed = (float) Math.max(MIN_SPEED, speed_for_generated_maneuvers);
popup.speed_units = SpeedUnits.METERS_PS;
popup.flags.add(FLAGS.FLG_CURR_POS);
popup.duration = 30;
Expand Down Expand Up @@ -456,7 +456,7 @@ public PlanSpecification imu() {
PopUp popup = new PopUp();
popup.lat = Math.toRadians(pos[0]);
popup.lon = Math.toRadians(pos[1]);
popup.speed = (float) Math.min(MIN_SPEED, speed_for_generated_maneuvers);
popup.speed = (float) Math.max(MIN_SPEED, speed_for_generated_maneuvers);
popup.speed_units = SpeedUnits.METERS_PS;
popup.flags.add(FLAGS.FLG_CURR_POS);
popup.duration = 30;
Expand Down Expand Up @@ -499,7 +499,7 @@ public PlanSpecification imu() {
Goto man1 = new Goto();
man1.lat = Math.toRadians(loc1[0]);
man1.lon = Math.toRadians(loc1[1]);
man1.speed = (float) Math.min(MIN_SPEED, speed_for_generated_maneuvers);
man1.speed = (float) Math.max(MIN_SPEED, speed_for_generated_maneuvers);
man1.speed_units = SpeedUnits.METERS_PS;
man1.z = 0;
man1.z_units = ZUnits.DEPTH;
Expand Down

0 comments on commit 93a2560

Please # to comment.