Changeset 18372 for trunk/FACT++
- Timestamp:
- 11/07/15 20:53:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/Main.js
r18283 r18372 937 937 // otherwise it is difficult to allow e.g. the STARTUP at the beginning of the night 938 938 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" ]; 940 940 941 941 // A scheduled task was found, lets check if all servers are … … 1136 1136 // the new OnTrack state later and not the old one 1137 1137 dim.send("DRIVE_CONTROL/STOP"); 1138 dim.wait("DRIVE_CONTROL", " Armed", 15000);1138 dim.wait("DRIVE_CONTROL", "Initialized", 15000); 1139 1139 1140 1140 // The lid must be open … … 1213 1213 // the new OnTrack state later and not the old one 1214 1214 dim.send("DRIVE_CONTROL/STOP"); 1215 dim.wait("DRIVE_CONTROL", " Armed", 15000);1215 dim.wait("DRIVE_CONTROL", "Initialized", 15000); 1216 1216 1217 1217 if (obs[sub].rstype=="dark-bias-off") … … 1237 1237 dim.send("DRIVE_CONTROL/MOVE_TO", obs[sub].zd, obs[sub].az); 1238 1238 v8.sleep(3000); 1239 dim.wait("DRIVE_CONTROL", " Armed", 150000); // 110s for turning and 30s for stabilizing1239 dim.wait("DRIVE_CONTROL", "Initialized", 150000); // 110s for turning and 30s for stabilizing 1240 1240 } 1241 1241 else … … 1330 1330 // the new OnTrack state later and not the old one 1331 1331 dim.send("DRIVE_CONTROL/STOP"); 1332 dim.wait("DRIVE_CONTROL", " Armed", 15000);1332 dim.wait("DRIVE_CONTROL", "Initialized", 15000); 1333 1333 1334 1334 // Ramp bias if needed … … 1349 1349 dim.send("DRIVE_CONTROL/MOVE_TO", obs[sub].zd, obs[sub].az); 1350 1350 v8.sleep(3000); 1351 dim.wait("DRIVE_CONTROL", " Armed", 150000); // 110s for turning and 30s for stabilizing1351 dim.wait("DRIVE_CONTROL", "Initialized", 150000); // 110s for turning and 30s for stabilizing 1352 1352 1353 1353 // Now tracking stable, switch voltage to nominal level and wait … … 1438 1438 // the new OnTrack state later and not the old one 1439 1439 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"); 1442 1443 dim.send("DRIVE_CONTROL/TRACK_WOBBLE", wobble, obs[sub].source); 1443 1444
Note:
See TracChangeset
for help on using the changeset viewer.