Index: /trunk/FACT++/scripts/Main.js
===================================================================
--- /trunk/FACT++/scripts/Main.js	(revision 17402)
+++ /trunk/FACT++/scripts/Main.js	(revision 17403)
@@ -683,4 +683,5 @@
 // ----------------------------------------------------------------
 dim.log("Entering main loop.");
+console.out("");
 
 var run = -2; // getObservation never called
@@ -696,4 +697,7 @@
         return false;
 
+    if (irq.toUpperCase()=="RESCHEDULE")
+        return true;
+
     if (irq.toUpperCase()=="OFF")
     {
@@ -750,5 +754,4 @@
     if (lastId!=obs.id) // !Object.isEqual(obs, nextObs)
     {
-        console.out("");
         dim.log("Starting new observation ["+obs.start.toUTCString()+", id="+obs.id+"]");
 
@@ -939,5 +942,7 @@
 
     case "OVTEST":
-        dim.send("DRIVE_CONTROL/PARK");
+        var park = Sun.horizon(-27).isUp;
+        if (park)
+            dim.send("DRIVE_CONTROL/PARK");
         dim.send("FEEDBACK/STOP");
 
@@ -945,6 +950,9 @@
         CloseLid();
 
-        console.out("Waiting for telescope to park. This may take a while.");
-        dim.wait("DRIVE_CONTROL", "Locked", 3000);
+        if (park)
+        {
+            console.out("Waiting for telescope to park. This may take a while.");
+            dim.wait("DRIVE_CONTROL", "Locked", 3000);
+        }
 
         // Check if DRS calibration is necessary
@@ -1172,8 +1180,5 @@
 
     if (nextObs!=undefined && sub==obs.length-1)
-    {
         dim.log("Next observation will start at "+nextObs.start.toUTCString()+" [id="+nextObs.id+"]");
-        console.out("");
-    }
 
     sub++;
