-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstkcmd.rkt
37 lines (28 loc) · 1000 Bytes
/
stkcmd.rkt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#lang racket
;(define(New-Demo id)
; (STKCmd id "New / Scenario Demo"))
(define(gen-Realtime-Position staname x y z)
(format "Realtime */Satellite/~a SetLookAhead HoldCBFPosition ~a ~a ~a" staname x y z))
;相机位置 实时
(define(gen-RT obj op . parameters)
(format "Realtime ~a ~a ~a" obj op (string-join parameters)))
;(gen-RT "*/Satellite/sta1" "SetLookAhead" "HoldCBFPosition 1550 60 28")
(define(gen-Position obj type coordinate . parameters)
(format "SetPosition ~a ~a ~a ~a"
obj type coordinate (string-join parameters " ")))
;;;;
;act AddArticulation
(define(gen-VO obj atname tranname starttime Duration StartValue-end)
(format "VO obj atname tranname starttime Duration StartValue-end"))
;(define(OpenSTK*)
; (Initcnn)
; (define-values (id fg)(OpenSTK "localhost:5001"))
; (if(= fg 0)
; id
; (error 'openstk "failed")))
;test
;(define id (OpenSTK*))
;(SetTimeOut id 50000)
;(define-values(info fg)(New-Demo id))
;(CloseSTK id)
;(Shutdowncnn)