I did a major refactoring to TelescopePlugin, particularly removing ConnectionType enum (replacing it with a class), moving most type specific code to interface implementations, cleaning up user interface, removed the "local" connection type (it was TCP too, as i understood, just with localhost as hostname).
This way adding wiimote "telescope" class was much easier.
I'll have to add a disclaimer somewhere, anyway for wiimote "slew" of course doesn't actually move anything, instead it just realign wiimote current position to the desired one.

It's still quite work in progress (lots of cleanup to be done), but you can review my work here: http://gulinux.no-ip.org/~marco/stellarium-telescopeplugin.git/ (git repository, gitview at http://gulinux.no-ip.org/gitweb/?p=stellarium-telescopeplugin.git;a=summary ).

I'd need lots of feedback, as i don't have one of the previously supported telescopes to be able to check regressions.

On Fri, Aug 3, 2012 at 1:54 PM, Marco Gulino <marco.gulino@gmail.com> wrote:
Thanks, it works!
Now I have to study a much better way to track wiimote movements, as I'm getting too much drift.

Also, I would like to add wiimote support to TelescopePlugin, instead of developing a new one, as I noticed it's doing mostly what I need to.
It needs a lot of refactoring though, I'll post result as i'm done.

On Thu, Aug 2, 2012 at 4:54 PM, Alexander Wolf <alex.v.wolf@gmail.com> wrote:

>I was also trying moveToJ2000, translating AltAz coordinates with
StelCore::altAzToJ2000, but as these methods are not well documented i'm
stuck at understanding what paramters do they accept (Vector3, meaning Alt,
Az and....? also, it's radians? deg?)

Please try it:

StelMovementMgr* mvmgr = GETSTELMODULE(StelMovementMgr);

Vec3d aim;
double dAlt = StelUtils::getDecAngle(alt);
double dAzi = M_PI - StelUtils::getDecAngle(azi);

StelCore::RefractionOff), 1);

With best regards, Alexander

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Stellarium-pubdevel mailing list