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:

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

BEAMWIDTH
GET_DT
MAX_AZ
MAX_EL
MIN_AZ
MIN_EL
ROT_SETTLETIME_GET
ROT_SETTLETIME_SET
SERIAL_PORT_TIMEOUT
SET_DT
SET_REGULARLY
SLEW_TIMEOUT
STALE_TIME
STOWED_AZ
STOWED_EL
az
azel
cmd_az
cmd_el
el
name