moveFpc

Move the telescope using FPC coordinates (x1,y1) (x2,y2)

usage: moveFpc: [-h, --help] x1 y1 x2 y2 [-n]

-h , --help

show this help message and exit

x1

Origin x coordinate

y1

Origin y coordinate

x2

Destination x coordinate

y2

Destination y coordinate

-n

Do not move, only display required offset

#! @KPYTHON@

import argparse
from KCWI import Procs

description = "Move the telescope using FPC coordinates (x1,y1) (x2,y2)"
parser = argparse.ArgumentParser(description=description)
parser.add_argument('x1',help='Origin x coordinate', type=float, nargs='?')
parser.add_argument('y1',help='Origin y coordinate', type=float,  nargs='?')
parser.add_argument('x2',help='Destination x coordinate', type=float,  nargs='?')
parser.add_argument('y2',help='Destination y coordinate', type=float,  nargs='?')
parser.add_argument('-n',help='Do not move, only display required offset',required=False,action='store_true',default=False)

        
if __name__ == '__main__':

   args = parser.parse_args()

   Procs.moveFpc(x1=args.x1,y1=args.y1,x2=args.x2,y2=args.y2, nomove=args.n)