nomis Posted September 5, 2016 Report Share Posted September 5, 2016 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 More sharing options...
lukepower Posted September 5, 2016 Report Share Posted September 5, 2016 Hooray to all undocumented features in Autoslew. I honestly don't know of such a feature. It could be interesting in several ways. It would also be interesting if one could control the fan speed in a similar way. I truly dunno... Link to comment Share on other sites More sharing options...
nomis Posted September 5, 2016 Author Report Share Posted September 5, 2016 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 More sharing options...
Corpze Posted September 5, 2016 Report Share Posted September 5, 2016 We should really add these commands under the wiki-site, for those who want to script etc. /Daniel Link to comment Share on other sites More sharing options...
lukepower Posted September 5, 2016 Report Share Posted September 5, 2016 Agreed.@nomis: Could you send me the list of commands that you know are working? I would add them on the Wiki Link to comment Share on other sites More sharing options...
nomis Posted September 7, 2016 Author Report Share Posted September 7, 2016 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 More sharing options...
lukepower Posted September 7, 2016 Report Share Posted September 7, 2016 Nomis, would you mind to add it into the wiki? Here: http://asauser.cosmonorr.se/index.php?title=Autoslew#Scripting_Interface Link to comment Share on other sites More sharing options...
nomis Posted September 8, 2016 Author Report Share Posted September 8, 2016 it seems you already did it. Let me know if you want me to add more information. And in fact, as i just noticed, it seems these commands were mentioned in 5.1.1.7 release notes (mentioned, not really documented ...) Link to comment Share on other sites More sharing options...
lukepower Posted September 8, 2016 Report Share Posted September 8, 2016 If you want to add more info you're welcome. I just did a quick edit to keep the info somewhere before I forget Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now