pyastrobackend.ASCOM package¶
Submodules¶
pyastrobackend.ASCOM.Camera module¶
pyastrobackend.ASCOM.FilterWheel module¶
Pure ASCOM solution
-
class
pyastrobackend.ASCOM.FilterWheel.FilterWheel(backend=None)¶ Bases:
pyastrobackend.BaseBackend.BaseFilterWheel-
connect(name)¶ Connect to device.
- Parameters
name – Name of driver.
- Returns
True on success.
- Return type
bool
-
disconnect()¶ Disconnect from device.
-
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
-
has_chooser()¶ Test if a device chooser UI (ie., ASCOM) is available or not.
- Returns
True if chooser available, False otherwise.
- Return type
bool
-
is_connected()¶ Test if a device is connected.
- Returns
True if connected, False otherwise.
- Return type
bool
-
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.
-
show_chooser(last_choice)¶ Launch chooser for driver.
Use
has_chooser()to test if one is available for a given backend/camera.- Returns
True on success.
- Return type
bool
-
pyastrobackend.ASCOM.Focuser module¶
Pure ASCOM solution
-
class
pyastrobackend.ASCOM.Focuser.Focuser(backend=None)¶ Bases:
pyastrobackend.BaseBackend.BaseFocuser-
connect(name)¶ Connect to device.
- Parameters
name – Name of driver.
- Returns
True on success.
- Return type
bool
-
disconnect()¶ Disconnect from device.
-
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
-
has_chooser()¶ Test if a device chooser UI (ie., ASCOM) is available or not.
- Returns
True if chooser available, False otherwise.
- Return type
bool
-
is_connected()¶ Test if a device is connected.
- Returns
True if connected, False otherwise.
- Return type
bool
-
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
-
show_chooser(last_choice)¶ Launch chooser for driver.
Use
has_chooser()to test if one is available for a given backend/camera.- Returns
True on success.
- Return type
bool
-
stop()¶ Stop focuser motion..
- Returns
True on success.
- Return type
bool
-
pyastrobackend.ASCOM.Mount module¶
Pure ASCOM solution
-
class
pyastrobackend.ASCOM.Mount.Mount(backend=None)¶ Bases:
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
-
connect(name)¶ Connect to device.
- Parameters
name – Name of driver.
- Returns
True on success.
- Return type
bool
-
disconnect()¶ Disconnect from device.
-
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
-
has_chooser()¶ Test if a device chooser UI (ie., ASCOM) is available or not.
- Returns
True if chooser available, False otherwise.
- Return type
bool
-
is_connected()¶ Test if a device is connected.
- Returns
True if connected, False otherwise.
- 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
-
show_chooser(last_choice)¶ Launch chooser for driver.
Use
has_chooser()to test if one is available for a given backend/camera.- 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
-