initial
This commit is contained in:
19
Reference/EGOTech/rocker/yolol/approach_pid_basic.yolol
Normal file
19
Reference/EGOTech/rocker/yolol/approach_pid_basic.yolol
Normal file
@@ -0,0 +1,19 @@
|
||||
s=10 m=1000 ib=5 t=20 g=0.200 p=0 i=0 x=ib+s u=0
|
||||
if:Ap*(:M<m)then:Range=1 goto3+:insideSafeZone end goto1
|
||||
Kp=0.035 Ki=0.001 Kd=5.0 h=0.50 l=1-h p=:M-s goto5 //NSZ
|
||||
Kp=0.056 Ki=0.001 Kd=5.4 h=0.50 l=1-h p=:M-s goto5 //SZ
|
||||
e=:M-s d=(p-e)*Kd*h+d*l i+=e*Ki*(:M<x) o=Kp*e+i f=u/t u+=u<t p=e
|
||||
z/=:Ap*(:M<m)*(d*d>g+e*e>1) :fcuforward=o*f :fcubackward=(d-i)*f goto5
|
||||
if(d*d>g+e*e>1)==0then:Ap=0end :fcuforward=0 :fcubackward=0 goto1
|
||||
|
||||
//Improved PID - Approximated Profiled Motion PID - VER 1.1
|
||||
// by: Darkyshadow
|
||||
// github.com/GameName-Darkyshadow/Starbase
|
||||
// tips by in game mail are not necessary but appreciated
|
||||
// Tuning Parameters explained on Github with Manual
|
||||
|
||||
//Large Ship Example Tunings
|
||||
//Kp=0.056 Ki=0.001 Kd=5.4 h=0.50 //t=20 //Super Conservative
|
||||
//Kp=0.080 Ki=0.001 Kd=5.8 h=0.50 //t=20 //Conservative
|
||||
//Medium Ship Example Tunings
|
||||
//Kp=0.090 Ki=0.001 Kd=5.8 h=0.98 //t=10 //Medium Aggressive
|
||||
@@ -0,0 +1 @@
|
||||
:GenRate=:MinEPS*:Min_EPS+(10000-:Battery)/50 goto1
|
||||
4
Reference/EGOTech/rocker/yolol/load_back_basic.yolol
Normal file
4
Reference/EGOTech/rocker/yolol/load_back_basic.yolol
Normal file
@@ -0,0 +1,4 @@
|
||||
if:load3<1thengoto1end if:cb1>0 or :cb2>0then:load3=0 goto1end :beam=1
|
||||
if:tb_loc<1thengoto1end :tb_pos=6.1 :Approach=0
|
||||
if:tb_for>100thengoto3end :tb_rot+=30 if:tb_rot<180thengoto3end
|
||||
if:tb_for>100thengoto4end :cb3=1 :beam=0 :tb_rot=0 :load3=0 goto1
|
||||
6
Reference/EGOTech/rocker/yolol/load_basic.yolol
Normal file
6
Reference/EGOTech/rocker/yolol/load_basic.yolol
Normal file
@@ -0,0 +1,6 @@
|
||||
if:load<1thengoto1end :Approach=1 :Scan=1
|
||||
if:cb1<1 and :cb2<1 and :cb3<1then:load3=1 :load=0 goto1end
|
||||
if:cb1<1 and :cb2<1then:load2=1 :load=0 goto1end
|
||||
if:cb4<1 and :cb5<1then:load4=1 :load=0 goto1end
|
||||
if:cb1<1then:load1=1 :load=0 goto1end
|
||||
if:cb5<1then:load5=1 :load=0 goto1end
|
||||
@@ -0,0 +1,4 @@
|
||||
if:load4<1thengoto1end if:cb5>0then:load4=0 goto1end :beam=1
|
||||
if:tb_loc<1thengoto1end :tb_pos=6.1 :Approach=0
|
||||
if:tb_for>100thengoto3end :tb_rot-=30 if:tb_rot>-120thengoto3end
|
||||
if:tb_for>100thengoto4end :cb4=1 :beam=0 :tb_rot=0 :load4=0 goto1
|
||||
@@ -0,0 +1,4 @@
|
||||
if:load5<1thengoto1end :beam=1
|
||||
if:tb_loc<1thengoto1end :tb_pos=6.1 :Approach=0
|
||||
if:tb_for>100thengoto3end :tb_rot-=30 if:tb_rot>-60thengoto3end
|
||||
if:tb_for>100thengoto4end :cb5=1 :beam=0 :tb_rot=0 :load5=0 goto1
|
||||
2
Reference/EGOTech/rocker/yolol/load_position_basic.yolol
Normal file
2
Reference/EGOTech/rocker/yolol/load_position_basic.yolol
Normal file
@@ -0,0 +1,2 @@
|
||||
if:tb_loc>0thengoto1end a=:l_pos b=(:cb1<1)*(:cb2<1)*(a>0)*a
|
||||
c=90*(b+(:cb4<1)*(:cb5<1)*(a<0)*a) :l_pos*=c!=0 :tb_rot=c goto1
|
||||
@@ -0,0 +1,4 @@
|
||||
if:load2<1thengoto1end if:cb1>0then:load2=0 goto1end :beam=1
|
||||
if:tb_loc<1thengoto1end :tb_pos=6.1 :Approach=0
|
||||
if:tb_for>100thengoto3end :tb_rot+=30 if:tb_rot<120thengoto3end
|
||||
if:tb_for>100thengoto4end :cb2=1 :beam=0 :tb_rot=0 :load2=0 goto1
|
||||
@@ -0,0 +1,4 @@
|
||||
if:load1<1thengoto1end :beam=1
|
||||
if:tb_loc<1thengoto1end :tb_pos=6.1 :Approach=0
|
||||
if:tb_for>100thengoto3end :tb_rot+=30 if:tb_rot<60thengoto3end
|
||||
if:tb_for>100thengoto4end :cb1=1 :beam=0 :tb_rot=0 :load1=0 goto1
|
||||
@@ -0,0 +1,5 @@
|
||||
s=1728 o=" Ore" c=" Crystal" i=0 if:scan<1thengoto1end :scn=1 :vt=0
|
||||
ifi<:sr then:ix=i :vt+=:vl goto3+i end ifi>0thengoto5end goto1
|
||||
:v1=:vl/s :m1=:mt-c-o i++ goto2
|
||||
:v2=:vl/s :m2=:mt-c-o i++ goto2
|
||||
:scan=0 :reset=1 goto1
|
||||
@@ -0,0 +1,12 @@
|
||||
p="\n" q=p+p s=" stks"+q k="k" a="Ajatite" b="Bastium" c="Charodium"
|
||||
i="Ice" n="Nhurgite" v="Valkite" o="Vokarium" ab="Aegisium"
|
||||
ac="Exorium" r=q+"NO RESULT" u=1000 d=.544 e=.87 f=3.81 g=.816
|
||||
h=2.721 j=.544 l=.979 m=1.588 ad=2.503 ae=4.354
|
||||
if:m1=="" or :m2==""thengoto11end if:vt<1thengoto12end
|
||||
:Material=q+:m1+p+:v1+s+:m2+p+:v2+s x=:m1 y=:m2 z=x==a w=x==i
|
||||
cr=:v1*(z*d+w*g+(x==v)*j)
|
||||
cr+=:v2*((y==b)*e+(y==c)*f+(y==n)*h+(y==o)*l+(y==ab)*ad+(y==ac)*ae)
|
||||
t=:vt/u cr*=m :Credits=p+cr+k+q+"Volume:"+p+t+"Mv" goto5
|
||||
|
||||
:Material=r :Credits=r goto5
|
||||
aa=q+"Scanning..." :Material=aa :Credits=aa goto5
|
||||
@@ -0,0 +1 @@
|
||||
:MinEPS=(:MinEPS+:mes)*(:MinEPS>=0)-:MinEPS>100 goto1
|
||||
@@ -0,0 +1,2 @@
|
||||
:Sensitivity=(:Sensitivity+:sss)*(:Sensitivity>=0)-:Sensitivity>100
|
||||
goto1
|
||||
2
Reference/EGOTech/rocker/yolol/sloth_basic.yolol
Normal file
2
Reference/EGOTech/rocker/yolol/sloth_basic.yolol
Normal file
@@ -0,0 +1,2 @@
|
||||
if:sloth<1then:sense1=100 :sense2=-100 goto1end
|
||||
:sense1=:sensitivity :sense2=-:sensitivity goto1
|
||||
12
Reference/EGOTech/rocker/yolol/timer_advanced.yolol
Normal file
12
Reference/EGOTech/rocker/yolol/timer_advanced.yolol
Normal file
@@ -0,0 +1,12 @@
|
||||
n="\n" p="Clear panel value to reset" q="y" j="w" k="d" l="h" o="m"
|
||||
u="s" g="Reseting..." a=60 b=a*a c=b*24 e=c*7 f=c*365 x=1000
|
||||
if:Timer==""then:ts=0 z=n+n+g end :Timer=z
|
||||
t=:ts s=t%a t-=s m=t%b/a t-=m*a h=t%c/b t-=h*b d=t%e/c t-=d*c w=t%f/e
|
||||
t-=w*e y=t/f z=n ify>0thenz+=y+q end r=w%1 d+=r*7 ifd>6thenw++ d-=7end
|
||||
ifw>0thenz+=w/x*x+j end v=d%1 ifv==0.999thend+=0.001end // rounding
|
||||
ifd>0thenz+=d+k+n elsez+=n end z+=h+l+m+o+s+u+n+n+p :ts++ goto3
|
||||
|
||||
// Outputs:
|
||||
// :Timer - Global for text panel
|
||||
// Inputs:
|
||||
// :ts - store timer in seconds, put in memory chip or device
|
||||
1
Reference/EGOTech/rocker/yolol/turtle_basic.yolol
Normal file
1
Reference/EGOTech/rocker/yolol/turtle_basic.yolol
Normal file
@@ -0,0 +1 @@
|
||||
if:Turtle<100then:Turtle=:TurtleRate end goto1
|
||||
@@ -0,0 +1 @@
|
||||
:TurtleRate=(:TurtleRate+:trs)*(:TurtleRate>=0)-:TurtleRate>100 goto1
|
||||
2
Reference/EGOTech/rocker/yolol/unload_basic.yolol
Normal file
2
Reference/EGOTech/rocker/yolol/unload_basic.yolol
Normal file
@@ -0,0 +1,2 @@
|
||||
if:unload<1thengoto1end :cb1=0 :cb2=0 :cb3=0 :cb4=0 :cb5=0
|
||||
:unload=0 goto1
|
||||
Reference in New Issue
Block a user