org.minetti.astrodevice.server.plugin.telescope
Interface UsbEquatorialTelescope

All Superinterfaces:
DeviceDriver

public interface UsbEquatorialTelescope
extends DeviceDriver

Interface for manage an equatorial telescope by USB.

Author:
Jean-Philippe MINETTI

Method Summary
 EquatorialTelescopeInfo getInfo()
          Returns the device information for equatorial telescope.
 long getMotorValue(EquatorialMotorType motor)
          Returns the value assigned to the current position of a motor.
 void initMotorValue(long raValue, long decValue)
          Initializes the values assigned to the current position of RA and DEC motors.
 void setMotorValue(EquatorialMotorType motor, long value)
          Changes the value assigned to the current position of a motor.
 
Methods inherited from interface org.minetti.astrodevice.server.plugin.driver.DeviceDriver
close, getPlugin, isOpened, open
 

Method Detail

getInfo

EquatorialTelescopeInfo getInfo()
Returns the device information for equatorial telescope.

Returns:
Device information for equatorial telescope.

initMotorValue

void initMotorValue(long raValue,
                    long decValue)
                    throws AstroDevicePluginException
Initializes the values assigned to the current position of RA and DEC motors.

Parameters:
raValue - New value assigned to the current position of right ascension motor (RA).
decValue - New value assigned to the current position of declination motor (DEC).
Throws:
AstroDevicePluginException - Exception if an error occurred.

getMotorValue

long getMotorValue(EquatorialMotorType motor)
                   throws AstroDevicePluginException
Returns the value assigned to the current position of a motor.

Parameters:
motor - Motor (RA or DEC).
Returns:
Position value of motor.
Throws:
AstroDevicePluginException - Exception if an error occurred.

setMotorValue

void setMotorValue(EquatorialMotorType motor,
                   long value)
                   throws AstroDevicePluginException
Changes the value assigned to the current position of a motor.

Parameters:
motor - Motor (RA or DEC).
value - New value assigned to the current position of a motor.
Throws:
AstroDevicePluginException - Exception if an error occurred.


Copyright © 2012 astroDevice. All Rights Reserved.