/ lx200 / LXGPS.py / LXGPS
LX200 class for GPS and properties
TO DO: implement the NAK wait
Methods
|
|
|
GPS_on
|
GPS_on ( self )
Turn on GPS power
|
|
get_GPS_time
|
get_GPS_time ( self )
Powers up the GPS and updates the system time from the GPS stream.
The process my take several minutes to complete.
During GPS update, normal handbox operations are interrupted. [LX200gps only]
Returns: 0 In the event that the user interrupts the process, or the GPS times out.
Returns: 1 After successful updates
|
|
get_firmware_num
|
get_firmware_num ( self )
Get Telescope Firmware Number
Returns: dd.d#
Exceptions
|
|
LX200Error( "unsupported model: " + self.model + " for version" )
|
|
|
set_guide_rate
|
set_guide_rate ( self, r )
Programmable Guiding Rates
R - Slew Rate Commands
|
|
enable_DEC_PEC
|
enable_DEC_PEC ( self )
Dec PEC Enable
|
|
sleep
|
sleep ( self, t=None )
LX200GPS only: Sleep Telescope. Power off motors, encoders, displays and lights. Scope
remains in minimum power mode until a keystroke is received or a wake command is sent.
Takes optional param time in seconds h - Home Position Commands
|
|
get_firmware_time
|
get_firmware_time ( self )
Get Telescope Firmware Time
returns: HH:MM:SS#
Exceptions
|
|
LX200Error( "unsupported model: " + self.model + " for version" )
|
|
|
__init__
|
__init__ (
self,
comPort,
debug=False,
)
Constructor.
|
|
set_dec_backlash
|
set_dec_backlash ( self, seconds )
Set Altitude/Dec Antibacklash
Returns Nothing
Exceptions
|
|
LX200Error( "unsupported model: " + self.model + " for active backlash " )
|
|
|
get_product_name
|
get_product_name ( self )
Get Telescope Product Name
Returns: #
Exceptions
|
|
LX200Error( "unsupported model: " + self.model + " for version" )
|
|
|
disable_DEC_PEC
|
disable_DEC_PEC ( self )
disable Dec/Alt PEC [LX200gps only]
Returns: Nothing
|
|
toggle_smart_PEC
|
toggle_smart_PEC ( self )
Toggles Smart Drive PEC on and off for both axis
Returns: Nothing
Not supported on Autostar Q- Smart Drive Control
|
|
reticule_duty
|
reticule_duty ( self, n )
Programmable Reticule Duty Cycle
|
|
init_scope
|
init_scope ( self )
Initialize Telescope
|
|
get_firmware_date
|
get_firmware_date ( self )
Get Telescope Firmware Date
Returns: mmm dd yyyy#
Exceptions
|
|
LX200Error( "unsupported model: " + self.model + " for version" )
|
|
|
get_GPS_data
|
get_GPS_data ( self )
LX200GPS Only - Turns on NMEA GPS data stream.
Returns: The next string from the GPS in standard NEMA format followed by a # key
|
|
set_DEC_backlash
|
set_DEC_backlash ( self, dd )
Set Altitude/Dec Antibacklash
|
|
update_time
|
update_time ( self )
Updates Time of Day from GPS
|
|
GPS_off
|
GPS_off ( self )
Turn off GPS power
|
|
version_info
|
version_info ( self )
Exceptions
|
|
LX200Error( "unsupported model: " + self.model + " for version" )
|
|
|
TO_DO
|
TO_DO ( self )
Stream GPS data
|
|
deisable_DEC_PEC
|
deisable_DEC_PEC ( self )
Dec PEC Disable
|
|
enable_RA_PEC
|
enable_RA_PEC ( self )
RA PEC Enable
|
|
wake
|
wake ( self )
LX200 GPS Only: Wake up sleeping telescope.
|
|
disable_RA_PEC
|
disable_RA_PEC ( self )
RA PEC Disable
|
|
restart
|
restart ( self )
LX200 GPS Only - Causes the telescope to cease current operations
and restart at its power on initialization.
I - Initialize Telescope Command
|
|
GPS
|
GPS (
self,
state="on",
data=None,
)
g - GPS/Magnetometer commands
|
|
set_ra_backlash
|
set_ra_backlash ( self, seconds )
Set Azimuth/RA Antibacklash
Returns Nothing
Exceptions
|
|
LX200Error( "unsupported model: " + self.model + " for active backlash " )
|
|
|
set_DEC_slew_rate
|
set_DEC_slew_rate ( self, r )
Programmable Slew Rates
|
|
auto_align
|
auto_align ( self )
Automatically align scope
Appendix A: LX200GPS Command Extensions
|
|
version_info_list
|
version_info_list ( self )
|
|
__repr__
|
__repr__ ( self )
Return a representation string.
|
|
set_RA_backlash
|
set_RA_backlash ( self, dd )
Set Azimuth/RA Antibacklash
|
|
set_baud_rate
|
set_baud_rate ( self, r )
Set Baud Rate
|
|
set_RA_slew_rate
|
set_RA_slew_rate ( self, r )
Programmable Slew Rates
|
|
|