R-89A/B

View previous topic View next topic Go down

R-89A/B

Post by Echo_Delta_Oscar on Wed May 02, 2012 4:55 pm

This is another flying wing I made after I discovered the stabilising effect of a rear propeller. It features Elevons, "Duckerons", a rich instrument panel plus a couple of warning messages in case of engine failure. I designed these planes to be used with unbreakable OFF, so they can and will brake if pushed too hard, exspecially with variable pitch propeller.
Since the least powerful of the two has a cruising speed od over 130 kts at 65% throttle, there is no need to overheat the engine... unless at take-off.



R-89A (2-in-1 Engines, 30° sweepback)

Code:

Val
{
   RollE(default=0,min=-25,max=25,step=4)
   RollW(default=0,min=-25,max=25,step=4)
   ViewA(default=0,min=-150,max=150)
   ViewB(default=0,min=-15,max=15)
   PBar(default=0,min=-30,max=30,step=4)
   Pitch(default=-4,min=-30,max=30)
   Yaw(default=0, min=-20, max=20, step=2)
   DuckE(min=0, max=20)
   DuckW(min=-20, max=0)
   TailE(min=-55, max=55)
   TailW(min=-55, max=55)
   Rudd(default=0, min=-20, max=20, step=0)
   Ster(default=0, min=-20, max=20)
   Trim(default=0, min=-360, max=360, step=0)
   Throttle(default=0, min=0, max=198000, step=0)
   Engine1(default=0, min=0, max=200000, step=0)
   Chocke1(default=0, min=0, max=2000, step=0)
   Prop1(default=45, min=45, max=90)
   Feat1(default=45, min=0, max=45)
   SO1(default=0)
   Gear(default=0, min=0, max=1, step=0)
   Gear1(default=-30, min=-30, max=0)
   Gear2(default=0, min=-180, max=0)
   Gear3(default=40, min=0, max=40)
   Gear4(default=-90, min=-180, max=-90)
   Flap()
   FLP(default=165, max=180, min=165)
   ALVL(default=0, min=0, max=1, step=0)
   AALT(default=0, min=0, max=1, step=0)
   EB1(max=100, step=100)
   Ypar(default=0)
   BRK(default=0, min=0, max=200, step=200)
   EX1(default=0, min=0, max=10000)
   Smoke(default=1, min=1, max=4)
   Col1(default=#808080)
   Col1C(default=#ffffff)
   Col2(default=#800000)
   Col2C(default=#aa0000)
   Timer()

   
}

Key
{

   7:Yaw(step=-2)
   9:Yaw(step=2)
   2:ViewA(step=5)
   3:ViewA(step=-5)
   0:ViewB(step=-1)
   1:ViewB(step=1)
   16:BRK(step=10), ABR(step=-15)
   
   
   
   
   
}

Body {
   Core(){

      N:Frame(angle=ViewB, option=1){S:RudderF(angle=ViewA, option=1){
      S:Frame(angle=160, option=1){S:Frame(angle=-160, option=1){
      S:TrimF(angle=90, option=1){N:RudderF(angle=Gear1, option=1){N:RudderF(angle=Gear2, option=1){

      N:Cowl(angle=180, option=5, color=Col2){}

      N:TrimF(angle=Ster, option=1){N:Wheel(angle=180, brake=Gear, effect=2){}}}}}
      N:weight(name=Nose, option=5, color=Col2C){

      N:Cowl(angle=-150, effect=#a000){E:Cowl(angle=-92, option=4, effect=#a000){}w:Cowl(angle=-92, option=3, effect=#a000){}
      N:Cowl(angle=-30, effect=#a000){
      E:Cowl(angle=-92, effect=#a000){N:Cowl(angle=-20, color=Col1){}}
      W:Cowl(angle=-92, effect=#a000){N:Cowl(angle=-20, color=Col1){}}
      N:Cowl(angle=-20, color=Col1){}}}
      N:Cowl(angle=150, Color=Col2){E:Cowl(angle=92, option=4, effect=#a000){}w:Cowl(angle=92, option=3, effect=#a000){}
      N:Cowl(angle=30, Color=Col1){E:Cowl(angle=92, option=4, color=Col1){}w:Cowl(angle=92, option=3, color=Col1){}
      N:Cowl(angle=20, color=Col1){}}}

      E:RudderF(angle=40, color=Col1C){N:Chip(angle=FLP, color=Col1C){}

      S:Cowl(color=Col1){}

      E:Frame(color=Col1C){N:Chip(angle=FLP, color=Col1C){}

      S:Cowl(color=Col1){S:Cowl(color=Col1){}}

      E:Frame(color=Col1C){N:Chip(angle=FLP, color=Col1C){}

      S:Cowl(color=Col1){S:Cowl(option=3, color=Col1){}}

      E:Chip(color=Col1C){W:Frame(angle=Gear4, option=1){E:TrimF(angle=-Gear3, option=1){E:Wheel(brake=BRK, effect=2){}

      W:Cowl(angle=-179, option=5, color=Col2){}}}

      S:Chip(angle=DuckE, color=Col2C){}S:Chip(angle=-DuckE, color=Col2C){}
      E:Chip(name=EW, color=Col1C){

      E:Cowl(color=Col1){E:Cowl(color=Col1){E:Cowl(option=3, color=Col1){S:Cowl(option=3, color=Col1){}}}}

      S:Chip(angle=TailE, color=Col2C){E:Chip(color=Col2C){E:Chip(color=Col2C){}}}}}}}}
      W:RudderF(angle=-40, color=Col1C){N:Chip(angle=FLP, color=Col1C){}

      S:Cowl(color=Col1){}

      W:Frame(color=Col1C){N:Chip(angle=FLP, color=Col1C){}

      S:Cowl(color=Col1){S:Cowl(color=Col1){}}

      W:Frame(color=Col1C){N:Chip(angle=FLP, color=Col1C){}

      S:Cowl(color=Col1){S:Cowl(option=4, color=Col1){}}

      W:Chip(color=Col1C){E:Frame(angle=Gear4, option=1){W:TrimF(angle=Gear3, option=1){W:Wheel(brake=BRK, effect=2){}

      E:Cowl(angle=-179, option=5, color=Col2){}}}

      S:Chip(angle=DuckW, color=Col2C){}S:Chip(angle=-DuckW, color=Col2C){}
      W:Chip(name=WW, color=Col1C){

      W:Cowl(color=Col1){W:Cowl(color=Col1){W:Cowl(option=4, color=Col1){S:Cowl(option=4, color=Col1){}}}}

      S:Chip(angle=TailW, color=Col2C){W:Chip(color=Col2C){W:Chip(color=Col2C){}}}}}}}}}
      S:Frame(angle=30, option=1){

      S:Cowl(angle=-120, option=1){
      E:Cowl(angle=-70, color=Col1){N:Cowl(angle=-91, option=5, color=Col1){}S:Cowl(angle=-91, option=5, color=Col1){}}
      W:Cowl(angle=-70, color=Col1){N:Cowl(angle=-91, option=5, color=Col1){}S:Cowl(angle=-91, option=5, color=Col1){}}}

      S:RLW(name=ENG11, angle=-120, power=Engine1, brake=EB1){

      N:Cowl(angle=120, option=5, color=#aa0000){}
      S:Cowl(angle=120, option=5, color=#aa0000){}
      E:Cowl(angle=120, option=5, color=#000000){}
      W:Cowl(angle=120, option=5, color=#000000){}

      N:Trim(angle=-Prop1, color=Col2C){}S:Trim(angle=-Prop1, color=Col2C){}}
      S:RLW(name=ENG12, angle=-120, power=-Engine1, brake=EB1){

      N:Cowl(angle=105, option=5, color=#000000){}
      S:Cowl(angle=105, option=5, color=#000000){}
      E:Cowl(angle=105, option=5, color=#aa0000){}
      W:Cowl(angle=105, option=5, color=#aa0000){}

      N:Trim(angle=Prop1, color=Col2C){}S:Trim(angle=Prop1, color=Col2C){}}}
      S:Frame(name=Tail, option=1){}}}
}}
}}

Script(){

   print 0,"Cleared to Proceed, ANALOG Controlled"
   print 2,"Power at ", (Throttle+Chocke1)/2000,"%"
   print 1,"Speed: ", _VEL()*3600/1852," knots, ",_VEL()," m/s"
   print 3,"RPM 1: ", _ABS(_WY(ENG11)-_WY(ENG12))*5
   print 4,"Head, L/R: ",ViewA," , U/D: ",ViewB
   print 6,"Mass: ", _WEIGHT()," kg, Fuel:",_FUEL()
   print 7,"Fuel LVL: ",_FUEL()/660000,"%"
   print 8,"Heading: ",_TODEG(_AY())

   print 15,"Route Home: ",90-_TODEG(_ATAN2(_Z(), _X()))
   print 16,"Distance Home: ", _LEN2(_Z(),_X()), " m"
   print 9,"Trim: ",Trim,", Rudd: ",Rudd

   print 19,"Z to start/stop Engine"
   print 20,"A/D for Yaw, W/S to adjust trim with Auto Level"
   print 21,"V for Flaps, F for Gear"
   print 22,"G to toggle Auto Level, B to toggle Altitude Hold Autopilot"
   print 23,"Arrow keys to look around!"

   RollE=_ANALOG(0)/40
   RollW=-_ANALOG(0)/40
   Pbar=_ANALOG(1)/40
   Throttle=(_ANALOG(2)+1000)*100
   DuckE=Yaw-(_VZ(EW)-_VZ(WW))
   DuckW=Yaw+(_VZ(WW)-_VZ(EW))

   if ALVL=(0){
   TailE=Pitch+RollE
   TailW=Pitch+RollW}

   if ALVL=(1){
   TailE=Pitch+RollE
   TailW=Pitch+RollW}

   SO1=_MOD(SO1+_KEYDOWN(4),2)
   Prop1=45+_VEL()/(9-2*Gear)*2+Feat1

   if SO1=(1){
   Chocke1=2000
   Engine1=Throttle+Chocke1
   Feat1=Feat1-1/3
   Ex1=60}

   if SO1=(0){
   Chocke1=0
   Engine1=0
   Feat1=Feat1+1/3
   EB1=EB1+1
   Ex1=0}

   ALVL=_MOD(ALVL+_KEYDOWN(13),2)
   AALT=_MOD(AALT+_KEYDOWN(11),2)

   if ALVL=(0){
   Pitch=Pbar
   Trim=3+_TODEG(_AX(Nose))}

   Flap=_MOD(Flap+_KEYDOWN(10),2)

   if Flap=(0){
   FLP=FLP-1/2}

   if Flap=(1){
   FLP=FLP+1/2}

   if _VEL()>(15){
   Infl=Infl-10}

   Gear=_MOD(Gear+_KEYDOWN(12),2)

   if Gear=(0){
   Gear1=Gear1-1
   Gear2=Gear2+1
   Gear3=Gear3+1
   Gear4=Gear4+1
   Ster=Yaw}

   if Gear=(1){
   Gear1=Gear1+1
   Gear2=Gear2-1
   Gear3=Gear3-1
   Gear4=Gear4-1
   Ster=0
   BRK=BRK+1}

   Gear5=5+Gear4

   if ALVL=(1) & AALT=(0){
   TailE=-Trim+_TODEG(_AX(Nose))-_TODEG(_AZ(Nose))-Yaw*2-_VY(EW)
   TailW=-Trim+_TODEG(_AX(Nose))+_TODEG(_AZ(Nose))+Yaw*2-_VY(WW)
   print 12,"AUTO LEVEL ON"}

   if AALT=(0){
   Ypar=_Y(Control)}

   if ALVL=(1){
   Yaw=Rudd
   print 12,"AUTO LEVEL ON"}

   if ALVL=(1) & AALT=(1) & _ABS(Ypar-_Y())<20{
   Ypar=Ypar+Trim/100
   TailE=((_Y())-(Ypar+23))+_TODEG(_AX(Nose))+(_VY(Nose)-_VY(Tail))-_TODEG(_AZ(Nose))-Yaw*2-_VY(EW)
   TailW=((_Y())-(Ypar+23))+_TODEG(_AX(Nose))+(_VY(Nose)-_VY(Tail))+_TODEG(_AZ(Nose))+Yaw*2-_VY(EW)
   print 13,"AUTO ALTITUDE ON, FL: ", Ypar," m"}

   if ALVL=(1) & AALT=(1) & Ypar-_Y()>20{
   Ypar=Ypar+Trim/100
   TailE=-43+_TODEG(_AX(Nose))+(_VY(Nose)-_VY(Tail))-_TODEG(_AZ(Nose))-Yaw*2-_VY(EW)
   TailW=-43+_TODEG(_AX(Nose))+(_VY(Nose)-_VY(Tail))+_TODEG(_AZ(Nose))+Yaw*2-_VY(WW)
   print 13,"AUTO ALTITUDE ON, FL: ", Ypar," m"}

   if ALVL=(1) & AALT=(1) & Ypar-_Y()<(-20){
   Ypar=Ypar+Trim/100
   TailE=3+_TODEG(_AX(Nose))+(_VY(Nose)-_VY(Tail))-_TODEG(_AZ(Nose))-Yaw*2-_VY(EW)
   TailW=3+_TODEG(_AX(Nose))+(_VY(Nose)-_VY(Tail))+_TODEG(_AZ(Nose))+Yaw*2-_VY(WW)
   print 13,"AUTO ALTITUDE ON, FL: ", Ypar," m"}
   if ALVL=(1) & _KEY(9)>0{
   Rudd=Rudd+1/4}

   if ALVL=(1) & _KEY(7)>0{
   Rudd=Rudd-1/4}

   if ALVL=(1) & _KEY(15)>0{
   Trim=Trim-1/2}

   if ALVL=(1) & _KEY(8)>0{
   Trim=Trim+1/2}

   if ALVL=(0){
   Rudd=0
   print 12,"AUTO LEVEL OFF"}

   if Throttle>(170000) & SO1=(1){
   Timer=Timer+1/2}

   if Throttle>(178000) & SO1=(1){
   Timer=Timer+1}

   if Throttle>(190000) & SO1=(1){
   Timer=Timer+2}

   if Throttle<(170000){
   Timer=0}

   if Timer>(21){
   print 11,"POSSIBLE PROPELLER FAILURE!!!"}

   if Timer<(21) & Timer >(0){
   print 10,"CAUTION!!! ENGINE OVERHEATING!!!"}

   if Timer>=(41){
   Timer=1}

   if _ABS(_WY(ENG11)-_WY(ENG12))>=(160) & SO1=(1){
   Timer=0
   print 0,"ENGINE FAILURE DETECTED!"
   print 2,"ENGINE FAILURE DETECTED!"
   print 7,"ENGINE FAILURE DETECTED!"
   print 10,"ENGINE FAILURE DETECTED!"
   print 11,"ENGINE FAILURE DETECTED!"
   print 18,"ENGINE FAILURE DETECTED!"}

   if _KEY(11)>(0){
   Trim=0}

   if Feat1>(0){
   print 17,"Propeller 1, Feather Position! Caution!"}

}

R-89B (4-in-1 Engines, 50° sweepback, in picture)

Code:


Val
{
   RollE(default=0,min=-25,max=25,step=4)
   RollW(default=0,min=-25,max=25,step=4)
   ViewA(default=0,min=-150,max=150)
   ViewB(default=0,min=-15,max=15)
   PBar(default=0,min=-30,max=30,step=4)
   Pitch(default=-4,min=-30,max=30)
   Yaw(default=0, min=-20, max=20, step=2)
   DuckE(min=0, max=20)
   DuckW(min=-20, max=0)
   TailE(min=-55, max=55)
   TailW(min=-55, max=55)
   Rudd(default=0, min=-20, max=20, step=0)
   Ster(default=0, min=-20, max=20)
   Trim(default=0, min=-360, max=360, step=0)
   Throttle(default=0, min=0, max=198000, step=0)
   Engine1(default=0, min=0, max=200000, step=0)
   Chocke1(default=0, min=0, max=2000, step=0)
   Prop1(default=45, min=45, max=90)
   Feat1(default=45, min=0, max=45)
   SO1(default=0)
   Gear(default=0, min=0, max=1, step=0)
   Gear1(default=-30, min=-30, max=0)
   Gear2(default=0, min=-180, max=0)
   Gear3(default=50, min=0, max=50)
   Gear4(default=-90, min=-180, max=-90)
   Flap()
   FLP(default=165, max=180, min=165)
   ALVL(default=0, min=0, max=1, step=0)
   AALT(default=0, min=0, max=1, step=0)
   EB1(max=100, step=100)
   Ypar(default=0)
   BRK(default=0, min=0, max=200, step=200)
   EX1(default=0, min=0, max=10000)
   Smoke(default=1, min=1, max=4)
   Col1(default=#306030)
   Col1C(default=#508050)
   Col2(default=#800000)
   Col2C(default=#aa0000)
   Timer()

   
}

Key
{

   7:Yaw(step=-2)
   9:Yaw(step=2)
   2:ViewA(step=5)
   3:ViewA(step=-5)
   0:ViewB(step=-1)
   1:ViewB(step=1)
   16:BRK(step=10), ABR(step=-15)
   
   
   
   
   
}

Body {
   Core(){

      N:Frame(angle=ViewB, option=1){S:RudderF(angle=ViewA, option=1){
      S:Frame(angle=160, option=1){S:Frame(angle=-160, option=1){
      S:TrimF(angle=90, option=1){N:RudderF(angle=Gear1, option=1){N:RudderF(angle=Gear2, option=1){

      N:Cowl(angle=180, option=5, color=Col2){}

      N:TrimF(angle=Ster, option=1){N:Wheel(angle=180, brake=Gear, effect=2){}}}}}
      N:weight(name=Nose, option=5, color=Col2C){

      N:Cowl(angle=-150, effect=#a000){E:Cowl(angle=-92, option=4, effect=#a000){}w:Cowl(angle=-92, option=3, effect=#a000){}
      N:Cowl(angle=-30, effect=#a000){
      E:Cowl(angle=-92, effect=#a000){N:Cowl(angle=-20, color=Col1){}}
      W:Cowl(angle=-92, effect=#a000){N:Cowl(angle=-20, color=Col1){}}
      N:Cowl(angle=-20, color=Col1){}}}
      N:Cowl(angle=150, Color=Col2){E:Cowl(angle=92, option=4, effect=#a000){}w:Cowl(angle=92, option=3, effect=#a000){}
      N:Cowl(angle=30, Color=Col1){E:Cowl(angle=92, option=4, color=Col1){}w:Cowl(angle=92, option=3, color=Col1){}
      N:Cowl(angle=20, color=Col1){}}}

      E:RudderF(angle=50, color=Col1C){N:Chip(angle=FLP, color=Col1C){}

      S:Cowl(color=Col1){}

      E:Frame(color=Col1C){N:Chip(angle=FLP, color=Col1C){}

      S:Cowl(color=Col1){S:Cowl(color=Col1){}}

      E:Frame(color=Col1C){N:Chip(angle=FLP, color=Col1C){}

      S:Cowl(color=Col1){S:Cowl(option=3, color=Col1){}}

      E:Chip(color=Col1C){W:Frame(angle=Gear4, option=1){E:TrimF(angle=-Gear3, option=1){E:Wheel(brake=BRK, effect=2){}

      W:Cowl(angle=-179, option=5, color=Col2){}}}

      S:Chip(angle=DuckE, color=Col2C){}S:Chip(angle=-DuckE, color=Col2C){}
      E:Chip(name=EW, color=Col1C){

      E:Cowl(color=Col1){E:Cowl(color=Col1){E:Cowl(option=3, color=Col1){S:Cowl(option=3, color=Col1){}}}}

      S:Chip(angle=TailE, color=Col2C){E:Chip(color=Col2C){E:Chip(color=Col2C){}}}}}}}}
      W:RudderF(angle=-50, color=Col1C){N:Chip(angle=FLP, color=Col1C){}

      S:Cowl(color=Col1){}

      W:Frame(color=Col1C){N:Chip(angle=FLP, color=Col1C){}

      S:Cowl(color=Col1){S:Cowl(color=Col1){}}

      W:Frame(color=Col1C){N:Chip(angle=FLP, color=Col1C){}

      S:Cowl(color=Col1){S:Cowl(option=4, color=Col1){}}

      W:Chip(color=Col1C){E:Frame(angle=Gear4, option=1){W:TrimF(angle=Gear3, option=1){W:Wheel(brake=BRK, effect=2){}

      E:Cowl(angle=-179, option=5, color=Col2){}}}

      S:Chip(angle=DuckW, color=Col2C){}S:Chip(angle=-DuckW, color=Col2C){}
      W:Chip(name=WW, color=Col1C){

      W:Cowl(color=Col1){W:Cowl(color=Col1){W:Cowl(option=4, color=Col1){S:Cowl(option=4, color=Col1){}}}}

      S:Chip(angle=TailW, color=Col2C){W:Chip(color=Col2C){W:Chip(color=Col2C){}}}}}}}}}
      S:Frame(angle=30, option=1){

      S:Cowl(angle=-120, option=1){
      E:Cowl(angle=-70, color=Col1){N:Cowl(angle=-91, option=5, color=Col1){}S:Cowl(angle=-91, option=5, color=Col1){}}
      W:Cowl(angle=-70, color=Col1){N:Cowl(angle=-91, option=5, color=Col1){}S:Cowl(angle=-91, option=5, color=Col1){}}}

      S:RLW(name=ENG11, angle=-120, power=Engine1, brake=EB1){

      N:Cowl(angle=120, option=5, color=#aa0000){}
      S:Cowl(angle=120, option=5, color=#aa0000){}
      E:Cowl(angle=120, option=5, color=#000000){}
      W:Cowl(angle=120, option=5, color=#000000){}

      N:Trim(angle=-Prop1, color=Col2C){}S:Trim(angle=-Prop1, color=Col2C){}}
      S:RLW(name=ENG12, angle=-120, power=-Engine1, brake=EB1){

      N:Cowl(angle=-120, option=5, color=#000000){}
      S:Cowl(angle=-120, option=5, color=#000000){}
      E:Cowl(angle=-120, option=5, color=#aa0000){}
      W:Cowl(angle=-120, option=5, color=#aa0000){}

      N:Trim(angle=Prop1, color=Col2C){}S:Trim(angle=Prop1, color=Col2C){}}}
      S:Frame(name=Tail, option=1){
      S:Frame(angle=30, option=1){
      S:RLW(name=ENG13, angle=-120, power=Engine1, brake=EB1){

      N:Cowl(angle=120, option=5, color=#aa0000){}
      S:Cowl(angle=120, option=5, color=#aa0000){}
      E:Cowl(angle=120, option=5, color=#000000){}
      W:Cowl(angle=120, option=5, color=#000000){}

      N:Trim(angle=-Prop1, color=Col2C){}S:Trim(angle=-Prop1, color=Col2C){}}
      S:RLW(name=ENG14, angle=-120, power=-Engine1, brake=EB1){

      N:Cowl(angle=-120, option=5, color=#000000){}
      S:Cowl(angle=-120, option=5, color=#000000){}
      E:Cowl(angle=-120, option=5, color=#aa0000){}
      W:Cowl(angle=-120, option=5, color=#aa0000){}

      N:Trim(angle=Prop1, color=Col2C){}S:Trim(angle=Prop1, color=Col2C){}}}}}}
}}
}}

Script(){

   print 0,"Cleared to Proceed"
   print 2,"Power at ", (Throttle+Chocke1)/2000,"%"
   print 1,"Speed: ", _VEL()*3600/1852," knots, ",_VEL()," m/s"
   print 3,"RPM 1: ", _ABS(_WY(ENG11)+_WY(Eng13)-_WY(ENG12)-_WY(ENG14))*5/2
   print 4,"Head, L/R: ",ViewA," , U/D: ",ViewB
   print 6,"Mass: ", _WEIGHT()," kg, Fuel:",_FUEL()
   print 7,"Fuel LVL: ",_FUEL()/705000,"%"
   print 8,"Heading: ",_TODEG(_AY())

   print 15,"Route Home: ",90-_TODEG(_ATAN2(_Z(), _X()))
   print 16,"Distance Home: ", _LEN2(_Z(),_X()), " m"
   print 9,"Trim: ",Trim,", Rudd: ",Rudd
   print 19,"Z to start/stop Engine"
   print 20,"A/D for Yaw, W/S to adjust trim with Auto Level"
   print 21,"V for Flaps, F for Gear"
   print 22,"G to toggle Auto Level, B to toggle Altitude Hold Autopilot"
   print 23,"Arrow keys to look around!"

   RollE=_ANALOG(0)/40
   RollW=-_ANALOG(0)/40
   Pbar=_ANALOG(1)/40
   Throttle=(_ANALOG(2)+1000)*100
   DuckE=Yaw-(_VZ(EW)-_VZ(WW))
   DuckW=Yaw+(_VZ(WW)-_VZ(EW))

   if ALVL=(0){
   TailE=Pitch+RollE
   TailW=Pitch+RollW}

   if ALVL=(1){
   TailE=Pitch+RollE
   TailW=Pitch+RollW}

   SO1=_MOD(SO1+_KEYDOWN(4),2)
   Prop1=45+_VEL()/(9-2*Gear)*2+Feat1

   if SO1=(1){
   Chocke1=2000
   Engine1=Throttle+Chocke1
   Feat1=Feat1-1/3
   Ex1=60}

   if SO1=(0){
   Chocke1=0
   Engine1=0
   Feat1=Feat1+1/3
   EB1=EB1+1
   Ex1=0}

   ALVL=_MOD(ALVL+_KEYDOWN(13),2)
   AALT=_MOD(AALT+_KEYDOWN(11),2)

   if ALVL=(0){
   Pitch=Pbar
   Trim=3+_TODEG(_AX(Nose))}

   Flap=_MOD(Flap+_KEYDOWN(10),2)

   if Flap=(0){
   FLP=FLP-1/2}

   if Flap=(1){
   FLP=FLP+1/2}

   if _VEL()>(15){
   Infl=Infl-10}

   Gear=_MOD(Gear+_KEYDOWN(12),2)

   if Gear=(0){
   Gear1=Gear1-1
   Gear2=Gear2+1
   Gear3=Gear3+1
   Gear4=Gear4+1
   Ster=Yaw}

   if Gear=(1){
   Gear1=Gear1+1
   Gear2=Gear2-1
   Gear3=Gear3-1
   Gear4=Gear4-1
   Ster=0
   BRK=BRK+1}

   Gear5=5+Gear4

   if ALVL=(1) & AALT=(0){
   TailE=-Trim+_TODEG(_AX(Nose))-_TODEG(_AZ(Nose))-Yaw*2-_VY(EW)
   TailW=-Trim+_TODEG(_AX(Nose))+_TODEG(_AZ(Nose))+Yaw*2-_VY(WW)
   print 12,"AUTO LEVEL ON"}

   if AALT=(0){
   Ypar=_Y(Control)}

   if ALVL=(1){
   Yaw=Rudd
   print 12,"AUTO LEVEL ON"}

   if ALVL=(1) & AALT=(1) & _ABS(Ypar-_Y())<20{
   Ypar=Ypar+Trim/100
   TailE=((_Y())-(Ypar+23))+_TODEG(_AX(Nose))+(_VY(Nose)-_VY(Tail))-_TODEG(_AZ(Nose))-Yaw*2-_VY(EW)
   TailW=((_Y())-(Ypar+23))+_TODEG(_AX(Nose))+(_VY(Nose)-_VY(Tail))+_TODEG(_AZ(Nose))+Yaw*2-_VY(EW)
   print 13,"AUTO ALTITUDE ON, FL: ", Ypar," m"}

   if ALVL=(1) & AALT=(1) & Ypar-_Y()>20{
   Ypar=Ypar+Trim/100
   TailE=-43+_TODEG(_AX(Nose))+(_VY(Nose)-_VY(Tail))-_TODEG(_AZ(Nose))-Yaw*2-_VY(EW)
   TailW=-43+_TODEG(_AX(Nose))+(_VY(Nose)-_VY(Tail))+_TODEG(_AZ(Nose))+Yaw*2-_VY(WW)
   print 13,"AUTO ALTITUDE ON, FL: ", Ypar," m"}

   if ALVL=(1) & AALT=(1) & Ypar-_Y()<(-20){
   Ypar=Ypar+Trim/100
   TailE=3+_TODEG(_AX(Nose))+(_VY(Nose)-_VY(Tail))-_TODEG(_AZ(Nose))-Yaw*2-_VY(EW)
   TailW=3+_TODEG(_AX(Nose))+(_VY(Nose)-_VY(Tail))+_TODEG(_AZ(Nose))+Yaw*2-_VY(WW)
   print 13,"AUTO ALTITUDE ON, FL: ", Ypar," m"}
   if ALVL=(1) & _KEY(9)>0{
   Rudd=Rudd+1/4}

   if ALVL=(1) & _KEY(7)>0{
   Rudd=Rudd-1/4}

   if ALVL=(1) & _KEY(15)>0{
   Trim=Trim-1/2}

   if ALVL=(1) & _KEY(8)>0{
   Trim=Trim+1/2}

   if ALVL=(0){
   Rudd=0
   print 12,"AUTO LEVEL OFF"}

   if Throttle>(165000) & SO1=(1){
   Timer=Timer+1/2}

   if Throttle>(175000) & SO1=(1){
   Timer=Timer+1}

   if Throttle>(185000) & SO1=(1){
   Timer=Timer+2}

   if Throttle<(165000){
   Timer=0}

   if Timer>(21){
   print 11,"POSSIBLE PROPELLER FAILURE!!!"}

   if Timer<(21) & Timer >(0){
   print 10,"CAUTION!!! ENGINE OVERHEATING!!!"}

   if Timer>=(41){
   Timer=1}

   if _ABS(_WY(ENG11)+_WY(ENG13)-_WY(ENG12)-_WY(ENG14))>=(320) & SO1=(1){
   Timer=0
   print 0,"ENGINE FAILURE DETECTED!"
   print 2,"ENGINE FAILURE DETECTED!"
   print 7,"ENGINE FAILURE DETECTED!"
   print 10,"ENGINE FAILURE DETECTED!"
   print 11,"ENGINE FAILURE DETECTED!"
   print 18,"ENGINE FAILURE DETECTED!"}

   if _KEY(11)>(0){
   Trim=0}

   if Feat1>(0){
   print 17,"Propeller 1, Feather Position! Caution!"}

}


Commands in game.
avatar
Echo_Delta_Oscar
Hover
Hover

Posts : 105
Join date : 2011-03-24

View user profile

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum