#!/bin/csh -f
#+
# en -- move the telescope east and north
#
# Purpose:
#	Move the telescope a given number of arcseconds east and north
#	relative to the current position.
#
# Usage:
#	en x y
# 
# Arguments:
#	x = number of arcseconds to move EAST; negative values indicate
#	WEST movement
#	y = number of arcseconds to move NORTH; negative values indicate
#	SOUTH movement
# 
# Exit values:
#	 0 = normal completion
#	 1 = wrong number of arguments
#
# Example:
#	1) move the telescope east 10 arcsec and south 20 arcsec:
#		en 10 -20
#-
# Modification history:
#	Date unknown	RWG	Original version
#	2000-Jul-05	GDW	Added documentation
#-----------------------------------------------------------------------

# check args...
if (${#argv} != 2) then
  echo "Usage: en x y"
  exit 1
endif

# grab the current value of autpause...
set autresum = `wftel -p`

# execute move...
modify -s dcs silent raoff=$1 decoff=$2 rel2curr=t

# wait for guider update...
wftel -v $autresum
exit