class

Kozai::Rotator::Rotctld

Inherits Kozai::Rotator::Client < Reference < Object

A client for hamlib's rotctld.

rotator = Kozai::Rotator::Rotctld.new("127.0.0.1", 4533)
rotator.move(180.0, 45.0)
azimuth, elevation = rotator.position

Constants

DEFAULT_PORT = 4533

Default port rotctld listens on.

Constructors

new(host : String = "127.0.0.1", port : Int32 = DEFAULT_PORT, timeout : Time::Span = Hamlib::DEFAULT_TIMEOUT)
Source

Instance methods

close

Closes the connection.

Source
connected?

Whether a connection is currently open.

Source
move(azimuth : Float64, elevation : Float64) : Nil

Commands a move to azimuth and elevation, in degrees.

Source
park

Returns to the park position.

Source
position

Reads the current position as {azimuth, elevation} in degrees.

Source
stop

Stops all motion.

Source