1
0
Fork 0
fgdata/Nasal
Richard Harrison 37729a8661 Added Nasal frame utils: (1) partition processor
The partition processor is a simple class that allows lists of data to be processed in chunks per invocation. It is designed to minimise per frame processing whilst keeping the code simple and the performance acceptable.

test code (use with F-14):

var pptest = func{
    var xx= frame_utils.PartitionProcessor.new("TEST", 6);

    var obj = {}; # just for testing

    for (ii=0;ii<5;ii+=1) {
        xx.process(obj, awg_9.tgts_list,
                   func(pp, obj, data){
                       print("init");
                       obj.designated = -1;
                       obj.search = "Nimitz";
                       obj.completed = 0;
                   }
                   ,
                   func(pp, obj, u){
                       printf("%-5d : %s",pp.data_index, u.Callsign.getValue());

                       if (u.Callsign.getValue() == obj.search)
                         obj.designated = pp.data_index;
                       return 1;
                   },
                   func(pp, obj, data)
                   {
                       obj.completed = 1;
                       printf("Completed: %s = %d\n", obj.search, obj.designated);
                   }
                  );
        if (obj.completed)
          break;
    }
    if (!obj.completed)
      print("partial list processed");
}

pptest();
2020-07-24 15:35:10 +02:00
..
Autopush Added autopush 2020-05-15 11:29:07 +01:00
canvas FG1000: Keyboard input for GCU 47X 2020-07-07 13:28:32 +01:00
console Replace printlog by logprint 2020-04-21 09:07:20 +02:00
debug move globals.Hash to std.Hash 2020-07-08 15:31:23 +01:00
FailureMgr Fix failure manager warning 2019-12-11 17:53:35 +01:00
input_helpers Replace printlog by logprint 2020-04-21 09:07:20 +02:00
jetways Fix elevation bug for jetways 2015-10-11 22:32:25 +02:00
jetways_edit Fix elevation bug for jetways 2015-10-11 22:32:25 +02:00
local_weather Local-weather: Remove a debug print() 2020-04-10 11:24:32 +01:00
modules extract base class SVGCanvas from EFIS framework to canvas/api/svgcanvas.nas 2020-07-06 10:09:33 +01:00
performance_monitor Change the performance monitor to use the font as specified in the style (rather than hardcoding it) 2018-09-02 11:53:32 +02:00
std Fix case errors and Vector.nas 2020-07-11 22:11:39 +01:00
towing [Nasal]Add possibility to recognise drag robots for glider towing 2019-08-31 10:20:15 +02:00
tutorial Add support for sprintf() formatting to tutorial 2017-03-28 21:38:34 +01:00
addons.nas Nasal loadpriority; remove nasal-dir-initialized listeners; 2020-06-03 21:57:14 +01:00
aircraft.nas Nasal loadpriority; remove nasal-dir-initialized listeners; 2020-06-03 21:57:14 +01:00
aurora.nas reset executable bit for nasal script 2017-07-18 10:57:13 +02:00
bits.nas Add a license exception to single owner (Melchoir Franz and myself) that clarifies that merely calling Nasal functions from third party aircraft does not invoce the derived-work clause of the GPL. Signed of by Melchoir. 2020-06-05 11:31:57 +02:00
checklist.nas Configurable auto-gen of tutorials from checklists 2020-06-27 15:20:02 +01:00
contrail.nas Nasal loadpriority; remove nasal-dir-initialized listeners; 2020-06-03 21:57:14 +01:00
controls.nas Patch from Huntley Palmer to control condition axis 2020-07-01 10:34:03 +01:00
debug.nas replace typeof() by is<type>() 2020-06-03 22:55:51 +01:00
dynamic_view.nas Add a license exception to single owner (Melchoir Franz and myself) that clarifies that merely calling Nasal functions from third party aircraft does not invoce the derived-work clause of the GPL. Signed of by Melchoir. 2020-06-05 11:31:57 +02:00
earthview.nas Implement Earthview tiles loading based on visibility in spherical geometry 2020-03-23 23:47:31 +01:00
emesary.nas move globals.Hash to std.Hash 2020-07-08 15:31:23 +01:00
emesary_mp_bridge.nas Some fixes for Emesary MP Bridge (approved by Richard) 2020-05-31 05:18:04 +02:00
environment.nas Nasal loadpriority; remove nasal-dir-initialized listeners; 2020-06-03 21:57:14 +01:00
events.nas Bugfixes and improvements to the Failure Manager 2014-12-21 12:39:52 +01:00
frame_utils.nas Added Nasal frame utils: (1) partition processor 2020-07-24 15:35:10 +02:00
fuel.nas #705: add sanity checks to fuel tank update 2012-04-22 15:19:20 +02:00
geo.nas remove unused function floor from geo.nas 2020-06-03 23:20:01 +01:00
glide_slope_tunnel.nas Fix glide slope tunnel altitude offset by moving it to correct runway touchdown zone. 2018-11-06 16:14:59 +01:00
globals.nas move globals.Hash to std.Hash 2020-07-08 15:31:23 +01:00
gui.nas Add support for ALS in shader lider settings 2020-07-14 12:09:28 +01:00
io.nas replace typeof() by is<type>() 2020-06-03 22:55:51 +01:00
joystick.nas Added Joystick Sensitivity Reduction to dialog. 2020-04-09 23:56:37 +02:00
lag_adjust.nas Nasal loadpriority; remove nasal-dir-initialized listeners; 2020-06-03 21:57:14 +01:00
loadpriority.xml move globals.Hash to std.Hash 2020-07-08 15:31:23 +01:00
local_weather_auto_init.nas Move AW auto-start detection outside AW namespace to avoid duplicate AW start issue when de-selected in launcher and selected in-sim 2018-10-06 09:41:22 +03:00
material.nas Fix #1310 - typo in material.nas 2014-01-19 15:52:38 -06:00
math.nas add approx_eq to math.nas and is_regular_file io.nas 2020-04-16 16:19:29 +01:00
modules.nas Add a license exception to single owner Nasal libraries which clarifies that merely calling Nasal functions from third party aircraft does not invoke the derived-work clause of the GPL. Signed off by the authors. 2020-06-09 16:05:10 +02:00
mp_broadcast.nas Replace printlog by logprint 2020-04-21 09:07:20 +02:00
multikey.nas Add a license exception to single owner (Melchoir Franz and myself) that clarifies that merely calling Nasal functions from third party aircraft does not invoce the derived-work clause of the GPL. Signed of by Melchoir. 2020-06-05 11:31:57 +02:00
multiplayer.nas Nasal loadpriority; remove nasal-dir-initialized listeners; 2020-06-03 21:57:14 +01:00
notifications.nas emesary.nas add comments, type checks; fix typos; add debug/emesary.deb.nas add fgcommand to use the global transmitter 2020-06-29 14:07:25 +01:00
orbital_target.nas Add a license exception to single owner Nasal libraries which clarifies that merely calling Nasal functions from third party aircraft does not invoke the derived-work clause of the GPL. Signed off by Thorsten 2020-06-08 15:07:10 +02:00
prop_key_handler.nas Nasal/prop_key_handler.nas: fixed couple of issues in search ('?') code. 2019-08-31 14:14:18 +01:00
props.nas props.nas: add isValidPropName and makeValidPropName; add props.nut 2020-06-08 19:52:48 +01:00
props.nut props.nas: add isValidPropName and makeValidPropName; add props.nut 2020-06-08 19:52:48 +01:00
README.txt add Nasal loadable module support (modules.nas) 2020-01-26 18:13:08 +01:00
redout.nas Tentative fix for accelerometers using YaSim properties in JSBSim or optionally generated properties 2016-11-23 15:34:04 +02:00
route_manager.nas Add a license exception to single owner Nasal libraries which clarifies that merely calling Nasal functions from third party aircraft does not invoke the derived-work clause of the GPL. Signed off by the authors. 2020-06-09 16:05:10 +02:00
scenery.nas Nasal loadpriority; remove nasal-dir-initialized listeners; 2020-06-03 21:57:14 +01:00
screen.nas Nasal loadpriority; remove nasal-dir-initialized listeners; 2020-06-03 21:57:14 +01:00
seaport.nas Nasal loadpriority; remove nasal-dir-initialized listeners; 2020-06-03 21:57:14 +01:00
std.nas Fix case errors and Vector.nas 2020-07-11 22:11:39 +01:00
std.nut move globals.Hash to std.Hash 2020-07-08 15:31:23 +01:00
string.nas Nasal loadpriority; remove nasal-dir-initialized listeners; 2020-06-03 21:57:14 +01:00
tanker.nas Nasal loadpriority; remove nasal-dir-initialized listeners; 2020-06-03 21:57:14 +01:00
test_emesary.nut Added Nasal unit tests for Emesary. 2020-06-15 13:31:54 +02:00
test_math.nut Add sample test file to Nasal/ 2020-05-06 15:41:18 +01:00
track_target.nas Tomaskom writes: 2015-05-28 10:29:38 -05:00
video.nas remove the infamous "A" console message 2016-04-24 11:12:18 +02:00
view.nas Nasal loadpriority; remove nasal-dir-initialized listeners; 2020-06-03 21:57:14 +01:00
volcano.nas Use logprint in more places 2020-06-28 07:27:29 +01:00
weather_scenario.nas Nasal loadpriority; remove nasal-dir-initialized listeners; 2020-06-03 21:57:14 +01:00
wildfire.nas Nasal loadpriority; remove nasal-dir-initialized listeners; 2020-06-03 21:57:14 +01:00
windsock.nas Add a license exception to single owner (Melchoir Franz and myself) that clarifies that merely calling Nasal functions from third party aircraft does not invoce the derived-work clause of the GPL. Signed of by Melchoir. 2020-06-05 11:31:57 +02:00

FGDATA/Nasal/ contains nasal core modules (*.nas).
All .nas files in this directory will be loaded automatically while Flightgear starts.

The first level sub-directories will be scanned for .nas files and this files will be 
also loaded while Flightgear starts unless disabled in defaults.xml.