Skip to content

RemoteControl HTTP API - move function #3788

Closed Answered by zac-powers
zac-powers asked this question in Q&A
Discussion options

You must be logged in to vote

For anyone else, I found what I think is the answer in stellarium/plugins/RemoteControl/src/MainService.cpp line 88

double currentFov = mvmgr->getCurrentFov();
// the more it is zoomed, the lower the moving speed is (in angle)
//0.0004 is the default key move speed
double depl=0.0004 / 30 *deltaTime*1000*currentFov;

double deltaAz = moveX*depl;
double deltaAlt = moveY*depl;

mvmgr->panView(deltaAz,deltaAlt);

It still seemed a little off, so I adjusted it slightly, but this code just about does the trick, works best ~2deg fov, but obviously can be tuned slightly. Also I'm not 100% confident in the precision of my az/el rates, so take that with a grain of salt, the scaler may need to be a…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@zac-powers
Comment options

@gzotti
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by zac-powers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants