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:
STALE_TIME, SERIAL_PORT_TIMEOUT, ROT_SETTLETIME_GET, ROT_SETTLETIME_SET, SET_DT, GET_DT, SET_REGULARLY
See attribute help for details about these.
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
get_azel()Get current az, el pointing set_azel(az, el[, block])Set new az, el pointing start()stop()Attributes
GET_DTTime delay to wait between consecutive attempts to get position (if smaller than _POLL_DT (default 0.1), _POLL_DT will win) ROT_SETTLETIME_GETDelay after getting position from rotator ROT_SETTLETIME_SETDelay after setting position from rotator SERIAL_PORT_TIMEOUTTimeout delay waiting for serial port comms SET_DTTime interval to wait before re-issuing a position command SET_REGULARLYWhether to continuously issue set commands to rotators, or only on request. STALE_TIMETime before azel reading is considered stale Inherited from base class
azel_err(az, el)Returns the error in degrees between the current pointing and a specified 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 in_pos([az, el])Check if antenna is in position. stow([block])Stow antenna BEAMWIDTHMAX_AZMAX_ELMIN_AZMIN_ELSLEW_TIMEOUTSTOWED_AZSTOWED_ELazReturn / Set current azimuth azelReturn / Set current (azimuth, elevation). cmd_azReturn / Set commanded azimuth cmd_elReturn / Set commanded elevation elReturn / Set current elevation nameProperty for getting/setting the radio name.