Skip to content

Commit

Permalink
flight profiles: basic and mfd modules
Browse files Browse the repository at this point in the history
  • Loading branch information
vinteo committed Jun 6, 2024
1 parent e06a526 commit 69dd05d
Show file tree
Hide file tree
Showing 25 changed files with 94 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
a="« " b=" »" goto:pf+1
:cpf=a+"1. Blue "+b goto1
:cpf=a+"2. Red "+b goto1
:cpf=a+"3. Green"+b goto1
:cpf=a+"4. White"+b goto1
goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if:p1 thengoto2end if:p2 thengoto3end goto1
:TurtleRate=:tr1 :sense=:ss1 :p1=0 goto1
:TurtleRate=:tr2 :sense=:ss2 :p2=0 goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if:p3 thengoto2end if:p4 thengoto3end goto1
:TurtleRate=:tr3 :sense=:ss3 :p3=0 goto1
:TurtleRate=:tr4 :sense=:ss4 :p4=0 goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:pf=:pf+:npf-:ppf+(:pf<1)*4-(:pf>4)*4 goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
goto:pf+1
:css=:ss1 goto1
:css=:ss2 goto1
:css=:ss3 goto1
:css=:ss4 goto1
goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
goto:pf+1
:ss1=(:ss1+:psss)*(:ss1>=0)-:ss1>100 goto1
:ss2=(:ss2+:psss)*(:ss2>=0)-:ss2>100 goto1
:ss3=(:ss3+:psss)*(:ss3>=0)-:ss3>100 goto1
:ss4=(:ss4+:psss)*(:ss4>=0)-:ss4>100 goto1
goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
goto:pf+1
:ctr=:tr1 goto1
:ctr=:tr2 goto1
:ctr=:tr3 goto1
:ctr=:tr4 goto1
goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
goto:pf+1
:tr1=(:tr1+:ptrs)*(:tr1>=0)-:tr1>100 goto1
:tr2=(:tr2+:ptrs)*(:tr2>=0)-:tr2>100 goto1
:tr3=(:tr3+:ptrs)*(:tr3>=0)-:tr3>100 goto1
:tr4=(:tr4+:ptrs)*(:tr4>=0)-:tr4>100 goto1
goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:sense=(:sense+:sss)*(:sense>=0)-:sense>100 goto1
2 changes: 2 additions & 0 deletions others/modules/flight_profiles/basic/yolol/sloth_basic.yolol
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
if:sloth<1then:sense1=100 :sense2=-100 goto1end
:sense1=:sensitivity :sense2=-:sensitivity goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
if:Turtle<100then:Turtle=:TurtleRate end goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:TurtleRate=(:TurtleRate+:trs)*(:TurtleRate>=0)-:TurtleRate>100 goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if:p1 thengoto2end if:p2 thengoto3end goto1
:TurtleRate=:tr1 :sense=:ss1 :p1=0 goto1
:TurtleRate=:tr2 :sense=:ss2 :p2=0 goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if:p3 thengoto2end if:p4 thengoto3end goto1
:TurtleRate=:tr3 :sense=:ss3 :p3=0 goto1
:TurtleRate=:tr4 :sense=:ss4 :p4=0 goto1
13 changes: 13 additions & 0 deletions others/modules/flight_profiles/mfd/yolol/profile_mfd_basic.yolol
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
a="\n" b=a+a c=" " d="> " e="== Blue =="+a f="== Red =="+a
g="== Green =="+a h="== White =="+a i="Turtle"+a j="Sens."+a k="Back"
l=c+c m=l+l r=l+d u="%" if:ppg!=1thengoto3end n=:spg goton+9
:profiles=a+e+o+i+s+:tr1+u+a+p+j+t+:ss1+u+a+q+k goto3
:profiles=a+f+o+i+s+:tr2+u+a+p+j+t+:ss2+u+a+q+k goto3
:profiles=a+g+o+i+s+:tr3+u+a+p+j+t+:ss3+u+a+q+k goto3
:profiles=a+h+o+i+s+:tr4+u+a+p+j+t+:ss4+u+a+q+k goto3
goto3

o=d p=l q=l s=m t=m if:atr thens=r end goto:pf+3
o=l p=d q=l s=m t=m if:ass thent=r end goto:pf+3
o=l p=l q=d s=m t=m goto:pf+3
goto3
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
if:ppg!=1 or :atr or :ass thengoto1end
:spg=:spg+:npf-:ppf+(:spg<1)*3-(:spg>3)*3 :npf=0 :ppf=0 goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if:ppg!=1 or :spg!=2 or :ass!=1thengoto1end goto:pf+1
:ss1=(:ss1+:ppf-:npf)*(:ss1>=0)-:ss1>100 :npf=0 :ppf=0 goto1
:ss2=(:ss2+:ppf-:npf)*(:ss2>=0)-:ss2>100 :npf=0 :ppf=0 goto1
:ss3=(:ss3+:ppf-:npf)*(:ss3>=0)-:ss3>100 :npf=0 :ppf=0 goto1
:ss4=(:ss4+:ppf-:npf)*(:ss4>=0)-:ss4>100 :npf=0 :ppf=0 goto1
goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if:ppg!=1 or :spg!=1 or :atr!=1thengoto1end goto:pf+1
:tr1=(:tr1+:ppf-:npf)*(:tr1>=0)-:tr1>100 :npf=0 :ppf=0 goto1
:tr2=(:tr2+:ppf-:npf)*(:tr2>=0)-:tr2>100 :npf=0 :ppf=0 goto1
:tr3=(:tr3+:ppf-:npf)*(:tr3>=0)-:tr3>100 :npf=0 :ppf=0 goto1
:tr4=(:tr4+:ppf-:npf)*(:tr4>=0)-:tr4>100 :npf=0 :ppf=0 goto1
goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
a="\n" b=a+a c=" " d=">" e=" Blue"+a f=" Red"+a g=" Green"+a
h=" White"+a
if:ppg!=0thengoto3end goto:pf+3
:profiles=b+d+e+c+f+c+g+c+h goto3
:profiles=b+c+e+d+f+c+g+c+h goto3
:profiles=b+c+e+c+f+d+g+c+h goto3
:profiles=b+c+e+c+f+c+g+d+h goto3
goto3
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if:spf<1thengoto1end :spf=0 a=:spg goto:ppg+2
:spg=1 :ppg=1 goto1
ifa<2then:atr=:atr<1 goto1end ifa>2then:ppg=0 goto1end :ass=:ass<1
goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
if:ppg!=0thengoto1end :pf=:pf+:npf-:ppf+(:pf<1)*4-(:pf>4)*4
:npf=0 :ppf=0 goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:sense=(:sense+:sss)*(:sense>=0)-:sense>100 goto1
2 changes: 2 additions & 0 deletions others/modules/flight_profiles/mfd/yolol/sloth_basic.yolol
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
if:sloth<1then:sense1=100 :sense2=-100 goto1end
:sense1=:sensitivity :sense2=-:sensitivity goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
if:Turtle<100then:Turtle=:TurtleRate end goto1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:TurtleRate=(:TurtleRate+:trs)*(:TurtleRate>=0)-:TurtleRate>100 goto1

0 comments on commit 69dd05d

Please sign in to comment.