libgs.hardware.GS232B¶
-
class
libgs.hardware.GS232B(url_or_dev, name=None, serial_conf={}, **kwargs)[source]¶ This Rotator class implements a subset of the Yaesu GS232-B protocol.
It can be used directly to control rotators either directly connected via USB or serial port as a local tty or remotely over the ethernet. The initialiser url_or_dev is used to specify how to connect.
See https://pythonhosted.org/pyserial/url_handlers.html for the syntax.
Available configuration parameters are all of RotatorBase as well as the following additional parameters
Parameter Description STALE_TIME Time before azel reading is considered stale (default = 3 seconds) SERIAL_PORT_TIMEOUT Timeout delay waiting for serial port comms (default = 0.1 seconds) ROT_SETTLETIME_GET Delay after getting position from rotator (default = 0 seconds) ROT_SETTLETIME_SET Delay after setting position from rotator (default = 0.75 seconds) SET_DT Time interval to wait before re-issuing a position command (default = 10 seconds, ignored if SET_REGULARLY = False) GET_DT Time delay to wait between consecutive attempts to get position (default = 0 seconds) SET_REGULARLY Whether to continuously issue set commands to rotators, or only on request. (Default=True) Parameters: - url_or_dev – URL or device of serial port (TTY)
- serial_conf – Dictionary representing serial port configuration (see See https://pythonhosted.org/pyserial/url_handlers.html )
- **kwargs – Any available configuration parameter (see above)
Methods
azel_err(az, el)azel_to_antenna_angles(pdat[, cont_track_method])From a table of az/el pointings, compute a new table that minimises the amount of movements while keeping the off-pointing within the antenna beamwidth get_azel()get_azel_rate()in_pos([az, el])Check if antenna is in position set_azel(az, el, *args, **kwargs)set_azel_rate(az, el, block)start()stop()stow([block])Stow antenna Attributes
BEAMWIDTHGET_DTMAX_AZMAX_ELMIN_AZMIN_ELROT_SETTLETIME_GETROT_SETTLETIME_SETSERIAL_PORT_TIMEOUTSET_DTSET_REGULARLYSLEW_TIMEOUTSTALE_TIMESTOWED_AZSTOWED_ELazazelcmd_azcmd_elelname