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:

Methods

get_azel() Get current az, el pointing
set_azel(az, el[, block]) Set new az, el pointing
start()
stop()

Attributes

GET_DT Time delay to wait between consecutive attempts to get position (if smaller than _POLL_DT (default 0.1), _POLL_DT will win)
ROT_SETTLETIME_GET Delay after getting position from rotator
ROT_SETTLETIME_SET Delay after setting position from rotator
SERIAL_PORT_TIMEOUT Timeout delay waiting for serial port comms
SET_DT Time interval to wait before re-issuing a position command
SET_REGULARLY Whether to continuously issue set commands to rotators, or only on request.
STALE_TIME Time 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
BEAMWIDTH
MAX_AZ
MAX_EL
MIN_AZ
MIN_EL
SLEW_TIMEOUT
STOWED_AZ
STOWED_EL
az Return / Set current azimuth
azel Return / Set current (azimuth, elevation).
cmd_az Return / Set commanded azimuth
cmd_el Return / Set commanded elevation
el Return / Set current elevation
name Property for getting/setting the radio name.