pyastrobackend.Alpaca package¶
Submodules¶
pyastrobackend.Alpaca.AlpacaDevice module¶
pyastrobackend.Alpaca.Camera module¶
pyastrobackend.Alpaca.FilterWheel module¶
-
class
pyastrobackend.Alpaca.FilterWheel.
FilterWheel
(backend)¶ Bases:
pyastrobackend.Alpaca.AlpacaDevice.AlpacaDevice
,pyastrobackend.BaseBackend.BaseFilterWheel
-
get_names
()¶ Get names of all filter positions.
- Returns
List of filter names.
- Return type
list
-
get_num_positions
()¶ Get number of filter positions.
- Returns
Number of filter positions
- Return type
int
-
get_position
()¶ Get position of filter wheel. First position is 0!
- Returns
Position of filter wheel.
- Return type
int
-
get_position_name
()¶ Get name of filter at current position.
- Returns
Name of current filter.
- Return type
str
-
is_moving
()¶ Check if filter wheel is moving.
- Returns
True if filter wheel is moving.
- Return type
bool
-
set_position
(pos)¶ Sends request to driver to move filter wheel position
This DOES NOT wait for filter to move into position!
Use is_moving() method to check if its done.
-
set_position_name
(name)¶ Sends request to driver to move filter wheel position
This DOES NOT wait for filter to move into position!
Use is_moving() method to check if its done.
-
pyastrobackend.Alpaca.Focuser module¶
-
class
pyastrobackend.Alpaca.Focuser.
Focuser
(backend)¶ Bases:
pyastrobackend.Alpaca.AlpacaDevice.AlpacaDevice
,pyastrobackend.BaseBackend.BaseFocuser
-
get_absolute_position
()¶ Get absolute position of focuser.
- Returns
Absolute position of focuser.
- Return type
int
-
get_current_temperature
()¶ Get temperature from focuser.
- Returns
Temperature (C).
- Return type
float
-
get_max_absolute_position
()¶ Get maximum possible absolute position of focuser.
- Returns
Absolute maximum possible position of focuser.
- Return type
int
-
is_moving
()¶ Check if focuser is moving.
- Returns
True if focuser is moving.
- Return type
bool
-
move_absolute_position
(abspos)¶ Move focuser to absolute position.
- Parameters
abspos – Target position for focuser.
- Returns
True on success.
- Return type
bool
-
stop
()¶ Stop focuser motion..
- Returns
True on success.
- Return type
bool
-
pyastrobackend.Alpaca.Mount module¶
-
class
pyastrobackend.Alpaca.Mount.
Mount
(backend)¶ Bases:
pyastrobackend.Alpaca.AlpacaDevice.AlpacaDevice
,pyastrobackend.BaseBackend.BaseMount
-
abort_slew
()¶ Abort slew.
- Returns
True on success.
- Return type
bool
-
can_park
()¶ Test if a mount can park.
- Returns
True if mount can park.
- Return type
bool
-
get_pier_side
()¶ Returns backend specific pier side information. NOTE: NOT recommended for use as ASCOM and INDI may give different results for different drivers - not tested extensively at all so use with caution.
- Returns
‘EAST’, ‘WEST’ or None if unknown.
-
get_position_altaz
()¶ Returns tuple of (alt, az) in degrees
-
get_position_radec
()¶ Returns tuple of (ra, dec) with ra in decimal hours and dec in degrees
-
get_side_physical
()¶ Get physical side of mount. NOTE: NOT tested extensively with all INDI drivers so it is recommended to test results for ‘normal’ and ‘through the pole’ positions on both side of the pier with a given mount driver!
- Returns
‘EAST’, ‘WEST’ or None if unknown.
-
get_side_pointing
()¶ Get side of meridian where mount is pointing. NOTE may not be same as result from get_side_physical() if counterweights are pointing up, etc! NOTE: NOT tested extensively with all INDI drivers so it is recommended to test results for ‘normal’ and ‘through the pole’ positions on both side of the pier with a given mount driver!
- Returns
‘EAST’, ‘WEST’ or None if unknown.
-
get_tracking
()¶ Get mount tracking state.
- Returns
True if tracking.
- Return type
bool
-
is_parked
()¶ Test if mount is parked.
- Returns
True if mount is parked.
- Return type
bool
-
is_slewing
()¶ Test if mount is slewing.
- Returns
True if mount is slewing.
- Return type
bool
-
park
()¶ Park mount.
- Returns
True on success.
- Return type
bool
-
set_tracking
(onoff)¶ Enable/disable mount tracking.
- Parameters
onoff – Flag to turn tracking on/off.
- Returns
True on success.
- Return type
bool
-
slew
(ra, dec)¶ Slew to ra/dec with ra in decimal hours and dec in degrees
-
sync
(ra, dec)¶ Sync to ra/dec with ra in decimal hours and dec in degrees
-
unpark
()¶ Unark mount.
- Returns
True on success.
- Return type
bool
-