Skip to content

Instantly share code, notes, and snippets.

View Elvinas's full-sized avatar

Elvinas Elvinas

View GitHub Profile
@JSchaenzle
JSchaenzle / AscomRubyExample1.rb
Created March 4, 2012 23:50
Controlling ASCOM devices from Ruby
require 'win32ole' # this allows us to create instances of Windows COM objects
# create instances of each of our drivers
$filt = WIN32OLE.new("ASCOM.Simulator.FilterWheel")
$foc = WIN32OLE.new("ASCOM.Simulator.Focuser")
$tele = WIN32OLE.new("ASCOM.Simulator.Telescope")
$cam = WIN32OLE.new("ASCOM.Simulator.Camera")
# a function that disconnects from each connected device
def DisconnectAllDevices()