Improvements and gui to ascent script

This commit is contained in:
2026-05-21 01:32:58 -07:00
parent 6822923238
commit a314cdaa62
15 changed files with 405 additions and 226 deletions
+19
View File
@@ -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.
}