Satellite Object Info from script

Bug #1670412 reported by gzotti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stellarium
Fix Released
Wishlist
gzotti

Bug Description

Suggestion from SF forum https://sourceforge.net/p/stellarium/discussion/278769/thread/f7afc02d/

.. if I may:
SatData = core.getObjectPosition("ISS (ZARYA)");
SatAlt = SatData["subpoint"];
core.output(SatAlt);

Is there a name for the "subpoint" Key to get that Information?, e.g. to a text file?

--> GZ:

We could add some optional extra fields to StelMainScriptAPI::GetObjectInfo() for additional info even for general/plugin objects. (add virtual getObjectInfoMap() to StelObject, fill in if required, add result to StelMainScriptAPI::GetObjectInfo(). Or even cleaner, most of what is now StelMainScriptAPI::getObjectInfo(obj) should become StelObject::getObjectInfoMap(), and subclasses can add data fields as required/useful.)

Related branches

Revision history for this message
gzotti (georg-zotti) wrote :

r9161 brings a solution to extend scripting capabilities to satellites and other objects.
For your case:

satLat=SatData["subpoint-lat"];
satLong=SatData["subpoint-long"];

Changed in stellarium:
status: In Progress → Fix Committed
Changed in stellarium:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.