Commit 452cab87 authored by Andrey Filippov's avatar Andrey Filippov

debugging

parent 6b79bd97
......@@ -6747,6 +6747,8 @@ if (MORE_BUTTONS) {
/* ======================================================================== */
if (label.equals("Load Equirectangular Maps")) {
DEBUG_LEVEL=MASTER_DEBUG_LEVEL;
// Reset existent pixel mapping (i.e. to reduce number of input files)
PIXEL_MAPPING=null;
if (PIXEL_MAPPING==null){
if (DEBUG_LEVEL>1) System.out.println("Creating new PixelMapping from equirectangular maps");
PIXEL_MAPPING=new PixelMapping((String)null,DEBUG_LEVEL); // ask for and load sensor calibration files
......
......@@ -2636,7 +2636,7 @@ public class CalibrationHardwareInterface {
throw new RuntimeException(msg);
}
while (true) {
enableMotors(true); // just in case?
// enableMotors(true); // just in case? - not here, test first
updateMotorsPosition(1); // wait one second before testing to decrease re-test frequency
if (updateStatus) {
double axialAngle=curpos[axialMotor]/this.stepsPerDegreeAxial;
......@@ -2655,6 +2655,7 @@ public class CalibrationHardwareInterface {
enableMotors(false);
return true;
}
enableMotors(true); // does not need to be enabled before
long nanoNow=System.nanoTime();
if ((stopRequested!=null) && (stopRequested.get()>1)){
enableMotors(false);
......
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