RemoteControl HTTP API - move function #3788
-
For context, I am trying to use Stellarium to test some satellite tracking software, so I need to be able to control azimuth, elevation, azimuth rate, and elevation rate. I am trying to manually control the view speed using http requests through the remote control plugin. The move() function accepts an x value and y value the controls the direction and speed in the azimuth and elevation directions. My problem is that this speed seems to be defined in a weird way. It seems like it is dependent upon the fov. For example if you are zoomed out to a wide fov, using move(1,1) will move the view very fast, while if you are zoomed in to a small fov, the move speed will be slow. This behavior aligns with how using the arrow keys works, which I assume is what the function was built for. But for my purposes, I need to be able to input an azimuth or elevation rate in deg/sec, keeping a constant movement rate independent of the fov. Do you know if this is possible? If its not possible, there should be some theoretical fov such that using move(1,1) coincidentally corresponds with Here is my function that formats the http request. It is written using python, the for loop just moves for a certain amount of time.
I suppose another way to ask the question would be, for example if you click on a satellite and center on screen, what is Stellarium doing behind the scenes that controls the view, and is there a way to manually implement this using the http API tools. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I am afraid you are on you own to run your tests here. You can center the screen on objects like satellites. Those find their positions and center screen accordingly. But the RC plugin was not developed for things you want, but those that you assumed. See the regular HTTP web interface. |
Beta Was this translation helpful? Give feedback.
-
For anyone else, I found what I think is the answer in stellarium/plugins/RemoteControl/src/MainService.cpp line 88
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 adjusted some more (astropy seems to have a little trouble converting speed to Azimuth/Elevation).
I can post the full code in the future if anyone is curious on how to make their own telescope simulator. I currently have it working to where I can put in a TLE and it will track it pretty closely. |
Beta Was this translation helpful? Give feedback.
For anyone else, I found what I think is the answer in stellarium/plugins/RemoteControl/src/MainService.cpp line 88
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…