I was hoping that someone here could help me.
I am writing a telescope server application in C# that will act as a proxy between ASCOM and Stellarium. I am a total newbie at C# (I know some C++) and I am struggling at send the scope's position to Stellarium.
I found an example of how to do this in C++ here: https://svn.code.sf.net/p/stellarium/code/trunk/telescope_server/src/Connection.cpp (all at the bottom) but for the live of me cannot figure out how to convert that code to C#.
I already have the telescope coords from ASCOM, connect to Stellarium and can issue GoTo's, but I just cant get the reticle to show up.
Could anyone help me with sending the proper bytes to Stellarium so that the reticle shows up?
Thanks
Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2014-07-21
Thanks for pointing me to the new code. There's no difference in the code that sends the position that makes me understand it better to be able to translate it to C#.
Thanks
Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2014-07-22
Well the shifting wasn't the problem, it was getting it into a byte array in the proper manner. But I have figured it out now, everything works :-)
Thanks for the links and the help.
Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all
I was hoping that someone here could help me.
I am writing a telescope server application in C# that will act as a proxy between ASCOM and Stellarium. I am a total newbie at C# (I know some C++) and I am struggling at send the scope's position to Stellarium.
I found an example of how to do this in C++ here:
https://svn.code.sf.net/p/stellarium/code/trunk/telescope_server/src/Connection.cpp (all at the bottom) but for the live of me cannot figure out how to convert that code to C#.
I already have the telescope coords from ASCOM, connect to Stellarium and can issue GoTo's, but I just cant get the reticle to show up.
Could anyone help me with sending the proper bytes to Stellarium so that the reticle shows up?
Thanks
Martin
This code is old, please use Bazaar repo of Stellarium: http://bazaar.launchpad.net/~stellarium/stellarium/trunk/view/head:/plugins/TelescopeControl/src/servers/Connection.cpp
Thanks for pointing me to the new code. There's no difference in the code that sends the position that makes me understand it better to be able to translate it to C#.
Thanks
Martin
http://msdn.microsoft.com/en-us/library/6a71f45d.aspx
http://www.blackwasp.co.uk/CSharpShiftOperators.aspx
?
Well the shifting wasn't the problem, it was getting it into a byte array in the proper manner. But I have figured it out now, everything works :-)
Thanks for the links and the help.
Martin