This commit is contained in:
Zan
2024-05-10 10:43:54 -07:00
parent 829c151baf
commit 7b16bc9bbd
35 changed files with 488 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
:timeremaining=0 a=0 goto1+:timer
:timeremaining=:sleep-(a/300) goto(2+(a++>(:sleep*300)))*:timer
:estop=1 a=0 :timer=0 :timeremaining=0 goto1

View File

@@ -0,0 +1,20 @@
:gurl=((100-:bat/100)+(:bst*85)) :rdy=(:generator>=85) goto1
/// :gurl = Generator Unit Rate Limit
/// :bat = Slave Battery
/// :bst = Generator Boost Button
/// :rdy = Mining Laser Ready BUtton
/// :generator = Generator

View File

@@ -0,0 +1,20 @@
:crs=((:cruise==0)*5) :fuel=:fc1+:fc2 goto1
/// :crs = Cruise Button
/// :cruise = Cruise Lever Name

View File

@@ -0,0 +1,20 @@
a=1000 b=60 c=3600
rt="Infinite" rt=(:fuel)/(r-(:fuel)) r=(:fuel)
h=rt/c/a*a m=(rt-h*c)/b/a*a rt=h+"h "+m+"m"
pt="Infinite" pt=:propellant/(p-:propellant) p=:propellant
h=pt/c/a*a m=(pt-h*c)/b/a*a pt=h+"h "+m+"m"
:gentime="\n"+rt+"\n\n\n\nPropTime:\n"+pt goto2
/// :fuel = Fuel Chamber Fuel
/// :propellant = GasNetworkStoredResource
/// :gentime = Progress Pannel

View File

@@ -0,0 +1,6 @@
:calibrate=1
f=0.5 r=1 m=4 goto2+:Center
gp=:GyroPitch :FcuRotationalPitch=(gp<-r)*f-(gp>r)*f-gp*m
:FcuRotationalPitch=0 gpok=(gp<r)*(gp>-r)
gr=:GyroRoll :FcuRotationalRoll=(gr<-r)*f-(gr>r)*f-gr*m
:FcuRotationalRoll=0 grok=(gr<r)*(gr>-r) goto2

View File

@@ -0,0 +1,2 @@
ta=:Hover m=10 a=:H da=ta-a w=da/8 goto1+:HVR
sud=a-oa oa=a d=w-sud :FcuUpDown=(d*(a<999)*(a>0.1)*m)*(:h<50) goto1

View File

@@ -0,0 +1 @@
:h1=:HFL :h1-=(:h1-:HFR)*(:h1>:HFR) :h1-=(:h1-:HBL)*(:h1>:HBL) goto1

View File

@@ -0,0 +1 @@
:h=:h1 :h-=(:h-:HBR)*(:h>:HBR) :HoverT=((:Hover-:h)*:hvr) goto1

View File

@@ -0,0 +1,20 @@
goto1+:crwl+(:estop*2)
goto(2+(:crfd<10))*:crwl+:estop
:crwl=0 :cvg=0 :gud=0 :bst=0 :ml=0 :clct=0 :timer=0 goto1+(:estop*2)
// :crfl = Emergency RF On
// :crfd = Emergency RF Distance
// :crwl = Crawl Button
// :cvg = Mining Laser Converge Button
// :guide = Trench Guide
// :bst = Generator Boost Button
// :ml = Mining Lasers
// :clct = Collector On Button

View File

@@ -0,0 +1,20 @@
:szp=(:szp*:sz) goto1+(:szp*:sz)
:transponder=1 goto2+(c++>5)
:transponder=0 c=0
if :sz==0 then :estop=1 goto5end goto4*:szp
:FCUBackward=50*(:sz==0) :szp=0 goto5*(:sz==0)
// :szp = SafeZone Protection Button
// :sz = Renamed "insideSafeZone" field from transponder
// :estop = Emergency Stop (shuts down all mining systems)

View File

@@ -0,0 +1,17 @@
e=19 :sa5=:d8*(:d8>e)+:dsa*(:d8<e)+:d9*(:d9>e)+:dsa*(:d9<e) goto1
// sa(#) = Smart Average, used in DSA
// e = presset value or bias(?)

View File

@@ -0,0 +1,20 @@
e=19 :sa4=:d6*(:d6>e)+(:dsa*(:d6<e))+:d7*(:d7>e)+(:dsa*(:d7<e)) goto1
// sa(#) = Smart Average, used in DSA
// e = presset value or bias(?)

View File

@@ -0,0 +1,20 @@
e=19 :sa3=:d4*(:d4>e)+(:dsa*(:d4<e))+:d5*(:d5>e)+(:dsa*(:d5<e)) goto1
// sa(#) = Smart Average, used in DSA
// e = presset value or bias(?)

View File

@@ -0,0 +1,20 @@
e=19 :sa2=:d2*(:d2>e)+(:dsa*(:d2<e))+:d3*(:d3>e)+(:dsa*(:d3<e)) goto1
// sa(#) = Smart Average, used in DSA
// e = presset value or bias(?)

View File

@@ -0,0 +1,18 @@
e=19 :sa1=:d0*(:d0>e)+(:dsa*(:d0<e))+:d1*(:d1>e)+(:dsa*(:d1<e)) goto1
// sa(#) = Smart Average, used in DSA
// e = presset value or bias(?)

View File

@@ -0,0 +1,20 @@
:dsl=21.8 :md=21.8 b=1 a=0 :ta=:ts*(:dsa/:md) goto1
// :md-.75 so it reactes before the crawl script stops the ship-
// gives the laser a chance to destroy blockage, also
// allows for OS to slow down ship slightly before full hault.
// If Dsa is > md, rotate miners back to destroy debri-
// when true, script assumes the mining lasers are falling behind crwl
//md = mining distance
// dsa = Distance Smart Offset
// OS = Offset variable for crawl.