Re: Seeking example Nasal script

"Jon S. Berndt" <[email protected]> Wed, 28 Feb 2007 07:12:30 -0600
Newsgroups gmane.games.flightgear.flightmodel
Message-ID <[email protected]>
> 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