On Sat, 15 Aug 2009, Behlül UÇAR wrote:
Hi, I'm researching for weeks to understand FlightGear system.
Actually what i want to do is that I want to print some logging properties
directly on the FlightGear screen. I couldn't see any information how to
print something directly on the FlightGear screen. I can handle properties
with Nasal and show them on terminal but as i said i want them to show up on
gamescreen.
Hi,
It's is easy to do that from Nasal via the module screen.nas.
Example for a JSBSim aircraft (you can e.g. run it in the Nasal console
available from the debug menu):
var left = screen.display.new(20, 10);
left.add("/orientation/pitch-deg");
var right = screen.display.new(-200, 10);
right.add("/fdm/jsbsim/propulsion/engine[0]/propeller-rpm");
right.add("/fdm/jsbsim/propulsion/engine[0]/power-hp");
right.add("/fdm/jsbsim/propulsion/engine[0]/thrust-lbs");
right.add("/fdm/jsbsim/propulsion/engine[0]/boost-psi");
With the developer extensions enabled (also in the debug menu) you can
also find any property via the '/' key and display its value by pressing
enter, or put it on-screen by pressing '!' (or open the propert browser
by pressing ':').
Cheers,
Anders
--
---------------------------------------------------------------------------
Anders Gidenstam
WWW: http://www.gidenstam.org/FlightGear/
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel