scripting: waitFor function

Bug #1051858 reported by Khalid AlAjaji
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stellarium
Fix Released
Medium
Alexander Wolf

Bug Description

The WaitFor script function calculates the waiting time wrongly.

Ex:

core.setDate("2012:05:01T01:00:00","local");

// wait for time 5 days later

core.waitFor("2012:05:06T01:00:00","local");

// Now move view direction south and up
core.moveToAltAzi(25,90,2);

Time difference between setDate and waitFor is 5 days and waitFor function treats it as 5 seconds.

Please see my question: https://answers.launchpad.net/stellarium/+question/207795

This bug is old and I think it appeared after 0.10.4

Tags: scripting

Related branches

Changed in stellarium:
importance: Undecided → Medium
status: New → Triaged
tags: added: scripting
Revision history for this message
Alexander Wolf (alexwolf) wrote :

Default time speed for waitFor is one JD per second and example work correct. In really we have other "bug" - time not synchronized for scripts and for GUI.

If set other time speed (core.setTimeRate()) then script will be work not correct.

Possible ways for solution: we can set time speed for waitFor as real time and remove time rate (set value for rate as 1).

Changed in stellarium:
milestone: none → 0.12.0
status: Triaged → Opinion
Changed in stellarium:
milestone: 0.12.0 → none
Changed in stellarium:
status: Opinion → Confirmed
Revision history for this message
Alexander Wolf (alexwolf) wrote :

A fix has been committed as revision 7849 of the trunk branch of Stellarium's Bazaar repository at Launchpad: http://bazaar.launchpad.net/~stellarium/stellarium/trunk/revision/7849

Changed in stellarium:
milestone: none → 0.14.0
assignee: nobody → Alexander Wolf (alexwolf)
status: Confirmed → 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.