Improvements and gui to ascent script
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
core:part:getmodule("kOSProcessor"):doevent("Open Terminal").
|
||||
|
||||
set tr to ship:partstagged("tailRotor")[0].
|
||||
set rm to tr:getModule("ModuleRoboticServoRotor").
|
||||
set rpmMax to 410.
|
||||
|
||||
set pid to pidLoop(0.0025, 0, 0, rpmMax, rpmMax).
|
||||
set pid:setpoint to 0.
|
||||
|
||||
until false {
|
||||
set L_z to ship:angularMomentum:z.
|
||||
set rpmLimit to pid:update(time:seconds, L_z).
|
||||
rm:setfield("rpm limit", rpmLimit).
|
||||
|
||||
clearscreen.
|
||||
print "Lz : " + round(L_z, 2) at (5, 5).
|
||||
print "RPM Limit : " + round(rpmLimit, 2) at (5, 6).
|
||||
wait 0.
|
||||
}
|
||||
Reference in New Issue
Block a user