On Tue, 31 May 2011, Curtis Olson wrote:

> I am working on a project where we are modeling a skydiver in free fall, and
> we want to display some basic information on the edge of the screen (like
> decent rate).  But because this is not an aircraft, it makes more sense to
> use external views.  Also we are trying hard to avoid needing to modify
> source code, and we'd like to do this in v2.0 (the most current "release").

You could use the display "class" in Nasal/screen.nas to display chosen 
properties. It might not be pretty enough for your application, though.
(I don't remember if it supports other presentations than just property 
values.)

Example (loosely) from ZLT-NT:

         var left  = screen.display.new(20, 10);
         # Static condition
         left.add
             ("/fdm/jsbsim/instrumentation/gas-pressure-psf");
         left.add
             ("/fdm/jsbsim/buoyant_forces/gas-cell/ballonet[0]/volume-ft3",
              "/fdm/jsbsim/buoyant_forces/gas-cell/ballonet[1]/volume-ft3");
         left.add("/fdm/jsbsim/static-condition/net-lift-lbs");
         left.add("/fdm/jsbsim/atmosphere/T-R");
         left.add("/fdm/jsbsim/buoyant_forces/gas-cell/temp-R");
         left.add("/fdm/jsbsim/ballonets/valve-pos-norm[0]",
                  "/fdm/jsbsim/ballonets/valve-pos-norm[1]");


Cheers,

Anders
-- 
---------------------------------------------------------------------------
Anders Gidenstam
WWW: http://www.gidenstam.org/FlightGear/

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to