#!/bin/csh -f
#+
#
# Y y
#
# moves the telescope y arcsec in detector coordinates.
#
#-
#
# 20051122 - MB: added -noask flag to wfao
#

# Boiler plate for "-h" support for command autohelp.

if ("$1" == "-h") then
    help $0 | more
    exit $status
endif

# Boilerplate for syncheck.
# Note that the boiler plate should be transparent for all usages,
# but to make correct use of syncheck you will need to specify the
# correct pattern.

 set noglob
 set CheckStatus = `syncheck -command $0 $* -pattern float` 
 unset noglob

if ("$CheckStatus" != "OK") then
    help $0 | more
    exit 2
endif

# End of help/syncheck boiler plate.

if (${#argv} == 1) then
  wfao -noask
  modify -s dcs silent instxoff=0 instyoff=$1 rel2curr=t
  sleep 3
  waitfor -s dcs axestat=tracking
else
  echo "Usage: Y y"
endif