Jump to content

Script for telescope parking


lukepower

Recommended Posts

Hi there,

 

I am considering right now how to use the "Script" command of AAG CloudWatcher: The idea would be to signal Autoslew (in case it is running) to park the scope, so that the roll-off roof can be closed. I'd like to program it in the simpolest possible fashion, so that if other parts fail (example: ACP) the system can still reach a "safe" state. 

I do have a sensor signaling if the scope is parked (done with a light sensor), and the AAG Weather Sensor has a relay signaling an unsafe weather situation. I would "only" need to tell Autoslew to get the scope parked. Has anyone a script doing that? :)

 

Thank you

Link to comment
Share on other sites

Alright, in case somebody needs it:

Telescope = new ActiveXObject("AstrooptikServer.Telescope");
Telescope.Connected = true;
Telescope.Tracking = true;
Telescope.Park();
Telescope.Connected = false;

This starts Autoslew if needed, issues a Park command, and closes it :) Save it as "scriptname.js" and it should run on Windows.

Link to comment
Share on other sites

  • 2 weeks later...

A friend  of mine, Antonio Perez (ASA user also) wrote this script for use with AAGCloudwatcher as a script in order to park my DDM85 when skies are going cloudy :-).

 

I hope his can be useful to you , Lukas..

 

BR 

Antonio

 

 
' Create telescope object
 
Set Scope = CreateObject("AstroOptikServer.Telescope")
 
' Connect to the object
 
scope.Connected = True
If Not scope.connected Then
wscript.echo "Failed to connect the scope."
Quit
End If
 
Scope.Park
scope.connected = False
If scope.connected Then
     wscript.echo "Failed to disconnect the scope"
     Quit
End If
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...