Board index FlightGear Development Nasal

Elapsed time after each local_weather.nas call  Topic is solved

Nasal is the scripting language of FlightGear.

Re: Elapsed time after each local_weather.nas call  

Postby Hooray » Thu Jul 21, 2016 7:49 pm

actually, you can use any non-tied property to invoke an arbitrary Nasal callback - thus, you could use a property-rule to regularly invoke Nasal code, or modify a non-FDM property via a FDM system/component - that way, you will end up calling Nasal at FDM rate.
We've actually had a number of debates regarding this, including some with patches - For instance, see:

Actual programming language for autopilot implementation?

However, to be honest, you seem to be asking many fairly basic question that you could answer for yourself by spending a few hours going reviewing the wiki and other docs - e.g. a property that is invokes a listener is automatically also calling a callback function. At this point, it seems that you really need to do some reading to really understand the advice you are given - Thorsten basically answered all your original questions, but you apparently weren't able to process his feedback.

Anyway, once you do a little more research, you will also find postings and patches I shared on the forum to do exactly this sort of thing, including C++ code, i.e. dedicated SGSubsystem modifications
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Previous

Return to Nasal

Who is online

Users browsing this forum: No registered users and 2 guests