Re: Seeking example Nasal script
leee <[email protected]> Thu, 1 Mar 2007 13:56:47 +0000
| Newsgroups | gmane.games.flightgear.flightmodel |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday 28 February 2007 15:42, Markus Zojer wrote: > Jon S. Berndt wrote: > >> Hello, I am looking for some simple Nasal script example to > >> automate a takeoff and flyaround. I have seen the concord > >> (posted by Ampere) example but it seems more complex than what I > >> need (note I know very little about planes). Does anyone have an > >> example using the autopilot similar to a JSBSim example script? > >> > >> Chris > > > > As an example of what Chris is referring to when he writes "similar to a > > JSBSim example script", here's an example of that (since many of you > > probably aren't familiar with the JSBSim scripting feature: > > > > <event name="engine start"> > > <description>Start the engine, and print a notification > > message.</description> > > <condition> > > sim-time-sec >= 0.25 > > </condition> > > <set name="fcs/throttle-cmd-norm" value="1.0" action="FG_RAMP" tc > > ="0.5"/> > > <set name="fcs/mixture-cmd-norm" value="0.87" action="FG_RAMP" tc > > ="0.5"/> > > <set name="propulsion/magneto_cmd" value="3"/> > > <set name="propulsion/starter_cmd" value="1"/> > > <notify/> > > </event> > > > > <event name="Set heading hold"> > > <description>Set Heading when 5 ft AGL is reached</description> > > <condition> > > position/h-agl-ft >= 5 > > </condition> > > <set name="ap/heading_setpoint" value="200"/> > > <set name="ap/attitude_hold" value="0"/> > > <set name="ap/heading_hold" value="1"/> > > <notify/> > > </event> > > > > Jon > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Flightgear-flightmodel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/flightgear-flightmodel > > The B-52 uses a nasal script for autotakeoff and landing, take a look at > it. g, > markus The B-52F probably isn't the best example as it doesn't go through a 'rotate' phase. The A-10 might be a better example but I think it still needs references to altitude-agl-ft changed to gear-agl-ft for it to work. I think that the 2d panel that contains the A/P instrument may also still need to be fixed following the 'clipping' patch but the script should make more sense. LeeE ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV