Changeset 17538 for trunk


Ignore:
Timestamp:
01/28/14 10:37:28 (11 years ago)
Author:
tbretz
Message:
It is not always necesary to stop the feedback anymore; get some more infor in the log stream; do not try to park the telescope if it is locked already.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/Main.js

    r17403 r17538  
    260260        // ramping and will reject the command to switch the
    261261        // voltage off
    262         dim.send("FEEDBACK/STOP");
    263         dim.wait("FEEDBACK", "Calibrated", 3000);
     262        //dim.send("FEEDBACK/STOP");
     263        //dim.wait("FEEDBACK", "Calibrated", 3000);
    264264
    265265        // Make sure we are not in Ramping anymore
    266         dim.wait("BIAS_CONTROL", "VoltageOn", 3000);
     266        //dim.wait("BIAS_CONTROL", "VoltageOn", 3000);
    267267
    268268        // Switch voltage off
     
    401401    }
    402402
    403     v8.timeout(150000, func);
     403    try { v8.timeout(150000, func); }
     404    catch (e)
     405    {
     406        var p = sub.get();
     407        dim.log('Park position not reached? Telescope at Zd='+p.obj['Zd']+' Az='+p.obj['Az']);
     408    }
    404409
    405410    /*
     
    713718    }
    714719
    715     console.log("IRQ "+irq+" unhandled... stopping script.");
     720    dim.log("IRQ "+irq+" unhandled... stopping script.");
    716721    return true;
    717722}
     
    942947
    943948    case "OVTEST":
    944         var park = Sun.horizon(-27).isUp;
    945         if (park)
     949        var locked = dim.state("DRIVE_CONTROL").name=="Locked";
     950        if (!locked)
    946951            dim.send("DRIVE_CONTROL/PARK");
     952
    947953        dim.send("FEEDBACK/STOP");
    948954
    949         // The lid must be closes
     955        // The lid must be closed
    950956        CloseLid();
    951957
    952         if (park)
    953         {
    954             console.out("Waiting for telescope to park. This may take a while.");
     958        if (!locked)
     959        {
     960            //console.out("Waiting for telescope to park. This may take a while.");
    955961            dim.wait("DRIVE_CONTROL", "Locked", 3000);
     962            dim.send("DRIVE_CONTROL/UNLOCK");
    956963        }
    957964
Note: See TracChangeset for help on using the changeset viewer.