Commit 4667c49d authored by Andrey Filippov's avatar Andrey Filippov

working on goniometer manual control

parent 80f959fc
...@@ -105,8 +105,8 @@ horizontal axis: ...@@ -105,8 +105,8 @@ horizontal axis:
private final String [] options={ private final String [] options={
"Move to specified position", "Move to specified position",
"Move home", "Move home",
"Tilt to target 85 degrees", "Tilt up (from target) 85 degrees",
"Tilt from target 85 degrees", "Tilt down (to target) 85 degrees",
"Rotate to clockwise 200 degrees", "Rotate to clockwise 200 degrees",
"Rotate to counter-clockwise 200 degrees", "Rotate to counter-clockwise 200 degrees",
"set current position as new home"}; "set current position as new home"};
...@@ -133,8 +133,8 @@ horizontal axis: ...@@ -133,8 +133,8 @@ horizontal axis:
GenericDialog gd = new GenericDialog("User interrupt"); GenericDialog gd = new GenericDialog("User interrupt");
gd.addRadioButtonGroup("Select action", options, 7, 1, options[0]); gd.addRadioButtonGroup("Select action", options, 7, 1, options[0]);
gd.addNumericField("Goniometer tilt angle", currentTilt, 1,5,"degrees"); gd.addNumericField("Goniometer tilt angle", currentTilt, 1,5,"\u00b0 (positive - look up)");
gd.addNumericField("Goniometer axial angle", currentAxial, 1,5,"degrees"); gd.addNumericField("Goniometer axial angle", currentAxial, 1,5,"\u00b0 (positive - CCW)");
gd.addCheckbox("Initialize goniometer motor driver",needsInit); gd.addCheckbox("Initialize goniometer motor driver",needsInit);
gd.showDialog(); gd.showDialog();
if (gd.wasCanceled()) return false; if (gd.wasCanceled()) return false;
...@@ -183,11 +183,11 @@ horizontal axis: ...@@ -183,11 +183,11 @@ horizontal axis:
act=MOT_ACT.MOVE_SPEC; act=MOT_ACT.MOVE_SPEC;
break; break;
case RCW200: case RCW200:
targetAxial=200.0; targetAxial=-200.0;
act=MOT_ACT.MOVE_SPEC; act=MOT_ACT.MOVE_SPEC;
break; break;
case RCCW200: case RCCW200:
targetAxial=-200.0; targetAxial=200.0;
act=MOT_ACT.MOVE_SPEC; act=MOT_ACT.MOVE_SPEC;
break; break;
default: default:
...@@ -208,7 +208,8 @@ horizontal axis: ...@@ -208,7 +208,8 @@ horizontal axis:
axialMotorPosition, axialMotorPosition,
stopRequested, stopRequested,
updateStatus); updateStatus);
return OK; if (!OK) System.out.println("motorsMove()->false");
return true; // OK; // So will re-open dialog even after abort
} }
public boolean scanAndAcquire( public boolean scanAndAcquire(
double targetAngleHorizontal, double targetAngleHorizontal,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment