Skip to content

Commit

Permalink
Test bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
markmaker committed Aug 9, 2020
1 parent 3a94e82 commit 190b34b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/openpnp/gui/components/CameraView.java
Expand Up @@ -1361,7 +1361,7 @@ private void rotateToClick(MouseEvent e) {

double targetAngle = Utils2D.normalizeAngle(-(rotTargetHandleAngle + 90));
HeadMountable selectedTool = MainFrame.get().getMachineControls().getSelectedTool();

UiUtils.submitUiMachineTask(() -> {
Location location = selectedTool.getLocation();
location = location.derive(null, null, null, targetAngle);
Expand Down
Expand Up @@ -375,7 +375,6 @@ public void home(ReferenceMachine machine) throws Exception {
machine.fireMachineHeadActivity(machine.getDefaultHead());
}


@Override
public void setGlobalOffsets(ReferenceMachine machine, AxesLocation location)
throws Exception {
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/org/openpnp/spi/base/AbstractHeadMountable.java
Expand Up @@ -150,8 +150,9 @@ public void moveToSafeZ() throws Exception {

@Override
public void waitForCompletion(CompletionType completionType) throws Exception {
if (getHead().getMachine().isEnabled()) {
((ReferenceMachine) getHead().getMachine())
Machine machine = Configuration.get().getMachine();
if (machine.isEnabled() && machine instanceof ReferenceMachine) {
((ReferenceMachine) machine)
.getMotionPlanner().waitForCompletion(getHead() == null ? null : this, completionType);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/SampleJobTest.java
Expand Up @@ -35,7 +35,7 @@ public class SampleJobTest {
* So if the simulation tries to pick or place at the wrong location, the test fails.
*
* Unfortunately, it is terribly slow as some aspects (camera settling/vibration) need to be simulated in
* quasi real-time to be conclusive as a test.
* quasi real-time to be conclusive as a test. Takes about 2 min.
*
*/
final public static boolean imperfectMachine = false;
Expand Down

0 comments on commit 190b34b

Please sign in to comment.