File: test-upvector.ssc

package info (click to toggle)
stellarium 24.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 911,396 kB
  • sloc: ansic: 317,377; cpp: 204,602; xml: 48,590; javascript: 26,348; python: 1,254; perl: 1,108; sh: 207; makefile: 190; pascal: 169
file content (17 lines) | stat: -rw-r--r-- 676 bytes parent folder | download
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);