File: test-upvector.ssc

package info (click to toggle)
stellarium 25.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,307,224 kB
  • sloc: ansic: 317,377; cpp: 214,435; xml: 48,592; javascript: 26,073; python: 2,113; perl: 734; sh: 247; makefile: 192; pascal: 169
file content (17 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Name: Up vector test
// Author: Georg Zotti
// License: Public Domain
// Description: This script tests a move by the script command 
// core.moveToAltAzi(90,180,1), i.e., a move within 1 second 
// towards 90 degrees altitude (zenith), with south at the screen bottom.
// This move is dangerous as the view UP vector would usually fall parallel 
// to the view direction vector, causing either black screen or orientation disorder.
// The mitigation is storing the final UP vector when the move is set up and setting it 
// explicitly at the end of the move.

// Run these tests by marking single lines!

core.moveToAltAzi(90, 180, 1);

core.moveToRaDec("12h", "90", 2);