Board index FlightGear Development Aircraft

F-35 Lightning II

Questions and discussion about creating aircraft. Flight dynamics, 3d models, cockpits, systems, animation, textures.

Re: F-35 Lightning II

Postby pjedvaj » Sun Aug 26, 2012 1:45 pm

We have one error in fan-yasim.nas, I'm not very skilfull in nasal;

Code: Select all
Nasal runtime error: nil used in numeric context
  at /Applications/FlightGear.app/Contents/Resources/data/Aircraft/F-35B/Nasal/fan-yasim.nas, line 12
  called from: /Applications/FlightGear.app/Contents/Resources/data/Nasal/globals.nas, line 100


Code: Select all
var ffan = func{
var throttle   = getprop("/controls/engines/engine[0]/throttle");
var pitch    = 1-getprop("/controls/engines/engine[0]/mixture");
var thrust = 2*pitch-1; if (thrust<0) {thrust=0;}
var elevator = 1-getprop("/surface-positions/elevator-pos-norm");
var fan_target = throttle*thrust*elevator/2;
var flap_target = 1-(getprop("/velocities/airspeed-kt")-150)/50;
if (flap_target<0) {flap_target=0;}
if (flap_target>1) {flap_target=1;}
setprop("/controls/flight/fan", fan_target);
setprop("/controls/flight/flaps", flap_target);
setprop("/surface-positions/nozzle-yaw", (getprop("/surface-positions/rudder-pos-norm")*thrust));
}


setlistener("/surface-positions/elevator-pos-norm", ffan);
Retired
User avatar
pjedvaj
 
Posts: 682
Joined: Thu Mar 18, 2010 9:32 pm

Re: F-35 Lightning II

Postby StuartC » Tue Oct 02, 2012 11:14 am

StuartC
 
Posts: 3179
Joined: Fri Jun 18, 2010 9:18 pm
Location: Arse end of the Universe
Callsign: WF01
Version: 2019.1
OS: W10 64 bit

Re: F-35 Lightning II

Postby Theslayerbudgie » Tue Oct 02, 2012 7:35 pm

I have always wanted an f-35. great work!
does this work in 2.6?
Like a bird in the sky :)
Theslayerbudgie
 
Posts: 314
Joined: Fri Aug 31, 2012 2:59 pm
Location: Loviisa, Finland
Callsign: Jon
Version: 2.10
OS: Windows XP pro

Re: F-35 Lightning II

Postby StuartC » Tue Oct 02, 2012 8:02 pm

Yes it should be fine in 2.6
StuartC
 
Posts: 3179
Joined: Fri Jun 18, 2010 9:18 pm
Location: Arse end of the Universe
Callsign: WF01
Version: 2019.1
OS: W10 64 bit

Re: F-35 Lightning II

Postby StuartC » Sun Dec 16, 2012 6:38 pm

F-35 updated to V0.3

http://www.fguk.eu/fguk-hangar/viewdown ... ghtning-ii

YASIM FDM Updates based on new information from Lockheed martin:-

Internal fuel capacity altered and divided over 9 internal fuel tanks.

Engine power altered

Overall weight altered

Other updates:-

Temporary cockpit instruments fitted.

Landing light fitted.

Additional visual effects added.

Cannon now works ( press e to fire )

HUD is now helmet mounted.

Help file updated.
StuartC
 
Posts: 3179
Joined: Fri Jun 18, 2010 9:18 pm
Location: Arse end of the Universe
Callsign: WF01
Version: 2019.1
OS: W10 64 bit

Re: F-35 Lightning II

Postby Theslayerbudgie » Thu Dec 20, 2012 9:25 pm

How do i restart this? My fuel ran out, the engines stopped, i added fuel but i didnt know how to start it.

P.S. The ngine sound was still on even if the engines were shut.
Like a bird in the sky :)
Theslayerbudgie
 
Posts: 314
Joined: Fri Aug 31, 2012 2:59 pm
Location: Loviisa, Finland
Callsign: Jon
Version: 2.10
OS: Windows XP pro

Re: F-35 Lightning II

Postby StuartC » Thu Dec 20, 2012 11:23 pm

YASIM jet engines never actually shut down, thats why the sound was continuing.

refill the tanks then shut and open your throttle and you should have power again.
StuartC
 
Posts: 3179
Joined: Fri Jun 18, 2010 9:18 pm
Location: Arse end of the Universe
Callsign: WF01
Version: 2019.1
OS: W10 64 bit

Re: F-35 Lightning II

Postby Theslayerbudgie » Fri Dec 21, 2012 6:39 am

thx
Like a bird in the sky :)
Theslayerbudgie
 
Posts: 314
Joined: Fri Aug 31, 2012 2:59 pm
Location: Loviisa, Finland
Callsign: Jon
Version: 2.10
OS: Windows XP pro

Re: F-35 Lightning II

Postby Theslayerbudgie » Fri Dec 21, 2012 1:05 pm

I made a video with this:

Like a bird in the sky :)
Theslayerbudgie
 
Posts: 314
Joined: Fri Aug 31, 2012 2:59 pm
Location: Loviisa, Finland
Callsign: Jon
Version: 2.10
OS: Windows XP pro

Re: F-35 Lightning II

Postby StuartC » Fri Dec 21, 2012 1:17 pm

Once the FCS is built and installed you wont be able to do that. 8)
Not surprised you keep running out of fuel, you keep the afterburners on the whole time.
StuartC
 
Posts: 3179
Joined: Fri Jun 18, 2010 9:18 pm
Location: Arse end of the Universe
Callsign: WF01
Version: 2019.1
OS: W10 64 bit

Re: F-35 Lightning II

Postby Theslayerbudgie » Fri Dec 21, 2012 1:47 pm

Hehe :)
Like a bird in the sky :)
Theslayerbudgie
 
Posts: 314
Joined: Fri Aug 31, 2012 2:59 pm
Location: Loviisa, Finland
Callsign: Jon
Version: 2.10
OS: Windows XP pro

Re: F-35 Lightning II

Postby Gijs » Sat Jan 26, 2013 7:21 pm

Hi Stuart,

was looking for updates from the FGUK hangar that didn't make it to Git yet. The F-35 is one of them. Loading the aircraft in FG2.11.0 gives the following errors:
Code: Select all
Could not find at least one of the following objects for animation: 'StbyAsi.knob'
Could not find at least one of the following objects for animation: 'StbyAsi.knob'
Could not find at least one of the following objects for animation: 'airToAirBG'
Could not find at least one of the following objects for animation: 'Plane.032'
Could not find at least one of the following objects for animation: 'Plane.064'
Could not find at least one of the following objects for animation: 'Plane.096'
Could not find at least one of the following objects for animation: 'Plane.128'
Could not find at least one of the following objects for animation: 'Plane.160'
Could not find at least one of the following objects for animation: 'Plane.192'
Could not find at least one of the following objects for animation: 'Plane.224'
Could not find at least one of the following objects for animation: 'Plane.256'
Could not find at least one of the following objects for animation: 'Plane.288'
Could not find at least one of the following objects for animation: 'Plane.320'
Could not find at least one of the following objects for animation: 'Plane.352'
Could not find at least one of the following objects for animation: 'Plane.384'
Could not find at least one of the following objects for animation: 'Plane.416'
Could not find at least one of the following objects for animation: 'Plane.448'
Could not find at least one of the following objects for animation: 'Plane.480'
Could not find at least one of the following objects for animation: 'Plane.512'
Could not find at least one of the following objects for animation: 'Plane.544'
Could not find at least one of the following objects for animation: 'Plane.576'
Could not find at least one of the following objects for animation: 'Plane.608'
Could not find at least one of the following objects for animation: 'Plane.640'
Could not find at least one of the following objects for animation: 'Plane.672'
Could not find at least one of the following objects for animation: 'Plane.704'
Could not find at least one of the following objects for animation: 'Plane.736'
Could not find at least one of the following objects for animation: 'Plane.768'
Could not find at least one of the following objects for animation: 'Plane.800'
Could not find at least one of the following objects for animation: 'Plane.832'
Could not find at least one of the following objects for animation: 'Plane.864'
Could not find at least one of the following objects for animation: 'Plane.896'
Could not find at least one of the following objects for animation: 'Plane.928'
Could not find at least one of the following objects for animation: 'Plane.960'
Could not find at least one of the following objects for animation: 'Plane.992'
Could not find at least one of the following objects for animation: 'Plane.993'
Could not find at least one of the following objects for animation: 'Plane.994'
Could not find at least one of the following objects for animation: 'Plane.995'
Could not find at least one of the following objects for animation: 'Plane.996'
Could not find at least one of the following objects for animation: 'Plane.997'
Could not find at least one of the following objects for animation: 'Plane.998'
Could not find at least one of the following objects for animation: 'Plane.999'
Could not find at least one of the following objects for animation: 'Plane.1000'
Could not find at least one of the following objects for animation: 'Plane.1001'
Could not find at least one of the following objects for animation: 'Plane.1002'
Could not find at least one of the following objects for animation: 'Plane.1003'
Could not find at least one of the following objects for animation: 'Plane.1004'
Could not find at least one of the following objects for animation: 'Plane.1005'
Could not find at least one of the following objects for animation: 'Plane.1006'
Could not find at least one of the following objects for animation: 'Plane.1007'
Could not find at least one of the following objects for animation: 'Plane.1008'
Could not find at least one of the following objects for animation: 'Plane.1009'
Could not find at least one of the following objects for animation: 'Plane.1010'
Could not find at least one of the following objects for animation: 'Plane.1011'
Could not find at least one of the following objects for animation: 'Plane.1012'
Could not find at least one of the following objects for animation: 'Plane.1013'
Could not find at least one of the following objects for animation: 'Plane.1014'
Could not find at least one of the following objects for animation: 'Plane.1015'
Could not find at least one of the following objects for animation: 'Plane.1016'
Could not find at least one of the following objects for animation: 'Plane.1017'
Could not find at least one of the following objects for animation: 'Plane.1018'
Could not find at least one of the following objects for animation: 'Plane.1019'
Could not find at least one of the following objects for animation: 'Plane.1020'
Could not find at least one of the following objects for animation: 'Plane.1021'
Could not find at least one of the following objects for animation: 'Plane.1022'
Could not find at least one of the following objects for animation: 'Plane.1023'
Could not find at least one of the following objects for animation: 'Plane.1024'

Detected particle system using segment(s) with less than 2 vertices
Detected particle system using segment(s) with less than 2 vertices
Detected particle system using segment(s) with less than 2 vertices
Detected particle system using segment(s) with less than 2 vertices

Nasal runtime error: nil used in numeric context
  at C:/FlightGear/fgdata/Aircraft/F-35B/Nasal/fan-yasim.nas, line 12
  called from: C:/FlightGear/fgdata/Nasal/globals.nas, line 100
Nasal runtime error: nil used in numeric context
  at C:/FlightGear/fgdata/Nasal/gui.nas, line 755
  called from: C:/FlightGear/fgdata/Nasal/gui.nas, line 773


Would be nice if the (Nasal) errors could be fixed before I commit the update (if you appreciate that).

Cheers,
Gijs
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9549
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: F-35 Lightning II

Postby StuartC » Sat Jan 26, 2013 7:35 pm

i have no idea what those errors relate to.
I do have another version of the F-35 awaiting one final bit of animation before release which is REmbrant enabled and has variable payloads.
StuartC
 
Posts: 3179
Joined: Fri Jun 18, 2010 9:18 pm
Location: Arse end of the Universe
Callsign: WF01
Version: 2019.1
OS: W10 64 bit

Re: F-35 Lightning II

Postby Gijs » Sat Jan 26, 2013 7:55 pm

Ok, I'll wait for that one then.
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9549
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: F-35 Lightning II

Postby StuartC » Sun Feb 24, 2013 4:50 pm

V0.4 available now:-

http://www.fguk.eu/fguk-hangar/military ... ghtning-ii


V0.4

For FG version 2.8 +. will not work correctly with earlier versions !!!

Rembrandt auto detection enabled.
Variable payload active.
new afterburner animation ( rembrandt compatable )

Minor FDM tweek re external tanks.
StuartC
 
Posts: 3179
Joined: Fri Jun 18, 2010 9:18 pm
Location: Arse end of the Universe
Callsign: WF01
Version: 2019.1
OS: W10 64 bit

PreviousNext

Return to Aircraft

Who is online

Users browsing this forum: No registered users and 18 guests