Jump to content

Autoslew - Stop the Motors from external program


nomis

Recommended Posts

Hello all,

 

I was wondering if any of you know if it is possible to send a command (from an external program) to Autoslew to stop the motors (and to turn them ON)?

 

I know I can set, in the settings of Autoslew, the possibility to stop the motors when we stop tracking, but that won't work for our case.

 

I would like to send the command from an ACP script ideally or through the ASCOM driver.

 

Using the AstrooptikServer.Telescope, there is already the possibility to update the azimuth and altitude of the Polaraxis in real-time:

(Note that we asked and paid the developers to add these two additional actions for our project). They never got documented anywhere though (not even present in the supportedActions list of the driver).

 

double az, al;

myDDM160t = new Telescope("AstrooptikServer.Telescope");

myDDM160.Action("Telescope:UpdatePolarAxisAz", az.ToString());
myDDM160.Action("Telescope:UpdatePolarAxisAl", al.ToString());
 
 
Now I would also like to have the possibility to do the following or something similar:
myDDM160.Action("Telescope:SetMotorsOFF", 0);
myDDM160.Action("Telescope:SetMotorsON", 0);
 
 
Anyone knows of such functionality ?
 
Note that I am currently using Autoslew version 5.2.1.9
 
Link to comment
Share on other sites

I reply to my own question ... the following commands are working as expected.....


 


Why the hell could they not list all the available functions in the supported actions as any normal driver would .... mhhh DAMN ASA


 


 


myDDM160 = new Telescope("AstrooptikServer.Telescope");


myDDM160.Action("Telescope:MotorOff", "");

myDDM160.Action("Telescope:MotorOn", "");
Link to comment
Share on other sites

Hello!

 

There are 3 commands I know of that were not listed in the file you gave in the other topic:

 

(1 & 2): These 2 commands were developed upon our request. I am not sure they will be of much use for others. (We have the telescope on a high tower which tends to socillate with temperature changes, so we needed the possibility to update the polaraxis parmaeter in autoslew accordinfg to the oscillation(inclination) of our tower to correct the pointing model.)

 

3 This commands allow to change the pointing model in use. Note that I think autoSlew should be restarted afterward in order to take into account the new file.

 

 

public static void updatePolarAxisParams(double az, double al) {  

            myDDM160_Mount.Action("Telescope:UpdatePolarAxisAz", az.ToString());

            myDDM160_Mount.Action("Telescope:UpdatePolarAxisAl", al.ToString());

        }

 

        //Original

        public static void updatePolarAxisParams(int az, int al)

        {

            myDDM160_Mount.Action("Telescope:UpdatePolarAxisAz", az.ToString());

            myDDM160_Mount.Action("Telescope:UpdatePolarAxisAl", al.ToString());

        }

 

        public static void changePointingModel(string fullPath) {

            myDDM160_Mount.Action("Telescope:SetNewConfig",fullPath);

        }

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...