Hi, sorry, errors in that code :( Now it runs, I got an error that screen wasn't defined, solved it by renaming param_print.nas to xparam_pring.nas ;-)
Regards
Manfred
Manfred Janßen schrieb:
> Hi Stefan,
>
> I did it an other way, because I only need some data.
> But there is one little problem I can't solve at the moment:
> This code:
>
> values = screen.window.new(10,150,4,1);
> values.fg = [1, 1, 1, 1];
> values.align = "left";
>
> var displaydata = func{
> Heading = getprop("/orientation/heading-deg");
> values.write("Heading: " ~ sprintf("%6.2f", Heading);
> Altitude = getprop("/position/altitude-ft");
> values.write("Altitude: " ~ sprintf("%6.2f", Altitude);
> Longitude = getprop("position/longitude-string");
> values.write("Longitude: "~ Longitude);
> Latitude = getprop("/position/latitude-string");
> values.write(values.write("Latitude: "~ Latitude););
>
> }
>
> _setlistener("/sim/signals/frame", displaydata);
>
> works fine for me and does that what I want, but it does it only if I
> start the code from the Nasal Console in Flightgear.
> Putting it into a file named param_print.nas and put that into the
> /%FGROOT/data/nasal folder has no effect.
>
> Is there one more step to do to keep it work?
>
> Regards
> Manfred
>
> Stefan Seifert schrieb:
>
>> On Monday 01 September 2008 15:44:50 Manfred Janßen wrote:
>>
>>
>>> Hi there,
>>>
>>> is it possible, to display some of the flight data, like heading,
>>> altitude, airspeed in the screen if flightgear is in chase view?
>>> And if, can you give me a short hint where to search for that?
>>>
>>>
>> Most of the time, you can just activate the HUD by pressing 'h'.
>>
>> Regards,
>> Stefan
>>
>>
>> ------------------------------------------------------------------------
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Flightgear-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>>
>>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Flightgear-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>
--
-----------------------------------------------------
Manfred Janßen
Eckfehler Leegstücken 11a
26605 Aurich
Fon: +49 49 41 60 19 360
Fax: +49 49 41 99 19 221
My status <skype:mjanssen%2Ede?call>
Get Skype <http://www.skype.com/go/download> and call me for free.
------------------------------------------------------
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

