Ignore:
Timestamp:
11/07/15 20:53:00 (9 years ago)
Author:
tbretz
Message:
Adapted drive control states.
File:
1 edited

Legend:

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

    r18283 r18372  
    937937    // otherwise it is difficult to allow e.g. the STARTUP at the beginning of the night
    938938    var power_states = sun.isUp || !system_on ? [ "DriveOff", "SystemOn" ] : [ "SystemOn" ];
    939     var drive_states = sun.isUp || !system_on ? undefined : [ "Armed", "Tracking", "OnTrack" ];
     939    var drive_states = sun.isUp || !system_on ? undefined : [ "Initialized", "Tracking", "OnTrack" ];
    940940
    941941    // A scheduled task was found, lets check if all servers are
     
    11361136        // the new OnTrack state later and not the old one
    11371137        dim.send("DRIVE_CONTROL/STOP");
    1138         dim.wait("DRIVE_CONTROL", "Armed", 15000);
     1138        dim.wait("DRIVE_CONTROL", "Initialized", 15000);
    11391139
    11401140        // The lid must be open
     
    12131213        // the new OnTrack state later and not the old one
    12141214        dim.send("DRIVE_CONTROL/STOP");
    1215         dim.wait("DRIVE_CONTROL", "Armed", 15000);
     1215        dim.wait("DRIVE_CONTROL", "Initialized", 15000);
    12161216
    12171217        if (obs[sub].rstype=="dark-bias-off")
     
    12371237            dim.send("DRIVE_CONTROL/MOVE_TO", obs[sub].zd, obs[sub].az);
    12381238            v8.sleep(3000);
    1239             dim.wait("DRIVE_CONTROL", "Armed", 150000); // 110s for turning and 30s for stabilizing
     1239            dim.wait("DRIVE_CONTROL", "Initialized", 150000); // 110s for turning and 30s for stabilizing
    12401240        }
    12411241        else
     
    13301330        // the new OnTrack state later and not the old one
    13311331        dim.send("DRIVE_CONTROL/STOP");
    1332         dim.wait("DRIVE_CONTROL", "Armed", 15000);
     1332        dim.wait("DRIVE_CONTROL", "Initialized", 15000);
    13331333
    13341334        // Ramp bias if needed
     
    13491349        dim.send("DRIVE_CONTROL/MOVE_TO", obs[sub].zd, obs[sub].az);
    13501350        v8.sleep(3000);
    1351         dim.wait("DRIVE_CONTROL", "Armed", 150000); // 110s for turning and 30s for stabilizing
     1351        dim.wait("DRIVE_CONTROL", "Initialized", 150000); // 110s for turning and 30s for stabilizing
    13521352
    13531353        // Now tracking stable, switch voltage to nominal level and wait
     
    14381438            // the new OnTrack state later and not the old one
    14391439            dim.send("DRIVE_CONTROL/STOP");
    1440             dim.wait("DRIVE_CONTROL", "Armed", 15000);
    1441 
     1440            dim.wait("DRIVE_CONTROL", "Initialized", 15000);
     1441
     1442            //dim.send("DRIVE_CONTROL/MOON");
    14421443            dim.send("DRIVE_CONTROL/TRACK_WOBBLE", wobble, obs[sub].source);
    14431444
Note: See TracChangeset for help on using the changeset viewer.