Add some debugging.
This commit is contained in:
parent
dd6f3d528b
commit
a795564f95
|
@ -1,5 +1,6 @@
|
||||||
copypath("0:/helicopter/ui", "1:/init").
|
copypath("0:/helicopter/init", "1:/init").
|
||||||
copypath("0:/helicopter/hover", "1:/hover").
|
copypath("0:/helicopter/hover", "1:/hover").
|
||||||
|
copypath("0:/debug", "1:/debug").
|
||||||
|
|
||||||
CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal").
|
CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal").
|
||||||
run "1:/init".
|
run "1:/init".
|
||||||
|
|
|
@ -7,7 +7,7 @@ deletepath("/boot/rocket").
|
||||||
// Install software.
|
// Install software.
|
||||||
compile "0:/lib/navigation" to "1:/lib/navigation".
|
compile "0:/lib/navigation" to "1:/lib/navigation".
|
||||||
compile "0:/lib/throttle" to "1:/lib/throttle".
|
compile "0:/lib/throttle" to "1:/lib/throttle".
|
||||||
compile "0:/rocket/ui" to "1:/init".
|
compile "0:/rocket/init" to "1:/init".
|
||||||
compile "0:/rocket/launch" to "1:/launch".
|
compile "0:/rocket/launch" to "1:/launch".
|
||||||
copypath("0:/rocket/execnode", "1:/execnode").
|
copypath("0:/rocket/execnode", "1:/execnode").
|
||||||
|
|
||||||
|
|
19
debug/vecrender.ks
Normal file
19
debug/vecrender.ks
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
@lazyglobal off.
|
||||||
|
|
||||||
|
local draws is list().
|
||||||
|
|
||||||
|
function DrawVectorWithComponents {
|
||||||
|
parameter vec.
|
||||||
|
|
||||||
|
set draws to list().
|
||||||
|
local d is 0.
|
||||||
|
|
||||||
|
set d to VecDraw(V(0,0,0), vec, WHITE, "v", 1.0, true).
|
||||||
|
list:add(d).
|
||||||
|
set d to VecDraw(V(0,0,0), V(vec:X,0,0), RED, "x", 1.0, true).
|
||||||
|
list:add(d).
|
||||||
|
set d to VecDraw(V(0,0,0), V(0,vec:Y,0), GREEN, "y", 1.0, true).
|
||||||
|
list:add(d).
|
||||||
|
set d to VecDraw(V(0,0,0), V(0,0,vec:Z), BLUE, "z", 1.0, true).
|
||||||
|
list:add(d).
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user