Weird behaviour of StelMovementMgr.setFlagTracking(true)

Asked by Rene Nyffenegger

I have a a problem with the following script:

-------------->8--------->8--------->8--------->8----------
core.setObserverLocation(
   8 + 36/60 + 25.85/60/60, // longitude
  47 + 32/60 + 21.48/60/60, // latitude
   0, // Altitude
   0 // Duration
);

core.setDate(
  '2014-07-11T01:15:00',
  'local' , // or 'utc'
   true // enable Delta T correction
);

StelMovementMgr.zoomTo(1, 0.01);

//core.setTimeRate(0);
core.wait(0.01);
core.selectObjectByName("Barnard's star");
core.setSelectedObjectInfo("ShortInfo");

// core.selectObjectByName("HIP 87937", true);

// Following line causes Problem
StelMovementMgr.setFlagTracking(true);
-------------->8--------->8--------->8--------->8----------

When the script runs
    StelMovementMgr.setFlagTracking(true);
it makes very rapid movemens on the screen so that it is impossible to follow the selected star.

These movements stop after about a second. Although a minor thing I'd appreciate if I could turn that off.

Question information

Language:
English Edit question
Status:
Solved
For:
Stellarium Edit question
Assignee:
No assignee Edit question
Solved by:
Alexander Wolf
Solved:
Last query:
Last reply:
Revision history for this message
Best Alexander Wolf (alexwolf) said :
#1

I don't understand - where is problem? Latest line in script - StelMovementMgr.setFlagTracking(true); - just set tracking the star. She will be at center of the screen if you increase rate of the time or will use stepped time changes.

For example you want see movement the star of Barndard in next 1000 years - just add this code at end of the script:

core.setMountMode("equatorial");
for(i=0;i<1000;$i++)
{
 core.setDate("+1 year");
 core.wait(0.1);
}

Revision history for this message
Rene Nyffenegger (rene-nyffenegger) said :
#2

core.setMoundMode("equatorial") did half of the trick, thank you very much! But is there a possibility also to have the first "moving second" disappear?

Revision history for this message
Alexander Wolf (alexwolf) said :
#3

core.wait(0.1); before core.setMountMode("equatorial"); ?

Revision history for this message
Rene Nyffenegger (rene-nyffenegger) said :
#4

Thanks Alexander Wolf, that solved my question.