libgs.hardware.RotCtld

class libgs.hardware.RotCtld(addr, port, name=None, persist=True, **kwargs)[source]

Interface to hamlib rotators using Rotctld

This class will continously poll hamlibs rotctld over TCP and store the position. Requests to get_azel will return this stored position rather than trigger a request to hamlib. This makes the class thread-safe.

Note

For rotators that support the GS232B protocol, use the GS232B class instead of RotCtld. It does not depend on hamlib and is more actively maintained than this class.

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() Return the most current AZ,EL.
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)
stow([block]) Stow antenna

Attributes

BEAMWIDTH
MAX_AZ
MAX_EL
MIN_AZ
MIN_EL
SLEW_TIMEOUT
STOWED_AZ
STOWED_EL
az
azel
cmd_az Commanded azimuth position
cmd_el Commanded elevation
el
name