Henning Stahlke
717ae92b23
canvas_efis/efis-canvas.nas bugfix
2020-06-15 11:17:56 +01:00
Erik Hofman
027d1e4e61
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
Henning Stahlke
92fe425e0a
efis-canvas.nas sanitize string
2020-06-08 19:52:48 +01:00
Henning Stahlke
ed1deacce8
props.nas: add isValidPropName and makeValidPropName; add props.nut
2020-06-08 19:52:48 +01:00
Erik Hofman
f8ce9398b9
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 Thomas Geymayer
2020-06-08 15:07:28 +02:00
Erik Hofman
6604cad250
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
Erik Hofman
6a4c9a2a81
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
Henning Stahlke
2f0f99826a
remove unused function floor from geo.nas
...
Signed-off-by: Stuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
2020-06-03 23:20:01 +01:00
Henning Stahlke
b5f00cb50e
replace typeof() by is<type>()
...
Signed-off-by: Stuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
2020-06-03 22:55:51 +01:00
Henning Stahlke
148328d793
Nasal loadpriority; remove nasal-dir-initialized listeners;
...
add more dependencies to loadpriority.xml and remove _setlistener stuff
2020-06-03 21:57:14 +01:00
Nikolai V Chr
b23d866690
Some fixes for Emesary MP Bridge (approved by Richard)
...
Make listeners for MP properties only fire when properties changes.
Enherit the notification before propagating to avoid StartMessageIndex being shared and thereby messages can get held back.
Some improvements to logging.
2020-05-31 05:18:04 +02:00
James Turner
f5f2a8fd33
Route-manager: sync with C++ approach trans API
...
When an explicit approach transition is used, route to it, otherwise
keep using the automatic selection based on IAF.
2020-05-28 09:08:30 +01:00
Stuart Buchanan
f0a999cb2c
Nasal library load order
...
Control the order in which fgdata/Nasal/*.nas files are loaded
on startup.
Previously all the files were loaded in order based on filename.
This was problematic for aaa.nas which might want to call
props.getNode(), and generally resolved by using
_setlistener("/sim/signals/nasal-dir-initialized")
This change allows us to configure a list of Nasal files that are
loaded first on startup - loadpriority.xml.
2020-05-25 19:47:50 +01:00
James Turner
d0d55ccb04
Route-manager: use Flightplan transition data
...
Explicitly use the flight-plan transition data when building the
routes for the SID and STAR. Previously we didn’t actually pick
this up reliably.
2020-05-21 22:34:28 +01:00
Henning Stahlke
11e36dd8a9
debug.nas subdir per probe class
2020-05-17 20:04:05 +01:00
Henning Stahlke
ec3cef2183
aircraft.nas data use maketimer instead of settimer loop; replace typeof by isType
2020-05-17 20:03:53 +01:00
Henning Stahlke
5a5d958dd9
replace typeof() == foo with isFoo
2020-05-17 20:03:43 +01:00
Henning Stahlke
627530cf5b
props.nas prevent endless recursion in copy if destination is a subnode of source
2020-05-17 20:03:30 +01:00
Henning Stahlke
eeb1b5e3d5
debug.nas add helpers for adding probes at runtime; add subnode to _debug for hit counters
...
add dumpProbeStats() and Breakpoint.dumpTrace()
dumpTrace to XML file separate tracer class
2020-05-17 20:01:43 +01:00
b44a1c1a7c
Added autopush
...
Signed-off-by: fly <merspieler@airmail.cc>
2020-05-15 11:29:07 +01:00
James Turner
acd37379ea
Add sample test file to Nasal/
2020-05-06 15:41:18 +01:00
Henning Stahlke
d1d3b6559e
compass.nas: add font to style hash; efis-canvas.nas: improve font mapping
2020-05-05 13:52:06 +01:00
Henning Stahlke
67c83d020f
make font_mapper more configurable
2020-05-05 13:52:00 +01:00
Henning Stahlke
49c8dcd442
modules/canvas_efis/efis.nas replace typeof(), use log constants, add {}
2020-05-05 13:51:56 +01:00
Henning Stahlke
17e3ba6698
debug.nas add dumpProbeStats() and Breakpoint.dumpTrace()
2020-05-05 13:51:52 +01:00
Henning Stahlke
bef5de6e81
debug.nas add helpers for adding probes at runtime; add subnode to _debug for hit counters
2020-05-05 13:51:45 +01:00
Henning Stahlke
a65cb738e5
re-enable reload prop on modules.nas
2020-04-30 11:47:25 +01:00
Henning Stahlke
551f4dab62
canvas/api/element.nas add getType
2020-04-30 08:59:25 +01:00
Henning Stahlke
e16bf79e91
move "hidden" constructor from api.nas to api/canvas.nas; add destructor support
2020-04-30 08:59:25 +01:00
Henning Stahlke
3892d2eddd
move fontmapper function from svg.nas to api/text.nas so it is generally avail
2020-04-30 08:59:25 +01:00
Henning Stahlke
e996f4c8c6
add getTranslation and setGeoPosition to transform.nas, adapt element.nas accordingly;
...
improve readability and comments
2020-04-30 08:59:25 +01:00
Henning Stahlke
2eb4c78794
improve code readability
2020-04-30 08:59:25 +01:00
Henning Stahlke
1094e5214e
split classes into separate files
2020-04-30 08:59:25 +01:00
James Turner
f074504326
setlistener: tolerate being call()-ed
...
Fix bug https://sourceforge.net/p/flightgear/codetickets/2219/
Changes to logging mean than setlistener breaks when invoked via
call(), which occurs in the Warthog Nasal scripting. The problem is
that call() forces caller() to return nil, which the setlistener()
debug code did not check for.
2020-04-27 22:50:34 +01:00
Henning Stahlke
95d0aa032e
bugfixes for debug.nas and props.nas
2020-04-24 16:00:09 +02:00
Henning Stahlke
4c867a79f0
adjust setlistener default in modules/addons to match globals.nas
2020-04-24 16:00:09 +02:00
Henning Stahlke
fba17e4d34
Replace printlog by logprint
2020-04-21 09:07:20 +02:00
Henning Stahlke
6078cff6b1
extend debug.Probe and debug.Breakpoint classes with trace option
2020-04-21 09:06:09 +02:00
Henning Stahlke
ed3568554d
Add toggleBool() to props.nas
2020-04-21 09:02:16 +02:00
James Turner
d1998f27ff
Default GPS handling of DISCON waypoints
...
When a DISCON is sequencing, revert to OSB mode at the current heading.
Also fix heading capture when reverting to OBS mode in various other
places.
2020-04-19 17:05:29 +01:00
James Turner
fc50680694
Use logprint() in various places
...
This reduces Nasal console spamming to match to the set log-level
2020-04-19 16:46:57 +01:00
Henning Stahlke
251a376f68
modules.nas: change reload trigger from property to fgcommand, fix a logprint call, add module name to debug output
2020-04-19 12:39:33 +01:00
Henning Stahlke
1035ed4269
add skip parameter to debug.nas breakpoint class
2020-04-19 12:29:01 +01:00
Henning Stahlke
93c48818fd
debug.nas: prevent stack overflow in dump; print function names in backtrace;
2020-04-16 16:25:20 +01:00
Henning Stahlke
8f6fd3cb79
props.nas add adjustValue()
2020-04-16 16:25:20 +01:00
Henning Stahlke
b4eaa3e438
props.nas add increment and decrement for int props
2020-04-16 16:25:17 +01:00
Henning Stahlke
f210a38011
addons.nas add fgcommand addon-reload
2020-04-16 16:23:51 +01:00
Henning Stahlke
2a48a3012b
add approx_eq to math.nas and is_regular_file io.nas
2020-04-16 16:19:29 +01:00
Henning Stahlke
d2d1fead76
modified output of debug.backtrace
2020-04-16 16:18:15 +01:00
James Turner
838ba8230b
Local-weather: Remove a debug print()
...
This caused random ‘0’ to appear on the console. Checked with
Thorsten R, okay to disable this.
2020-04-10 11:24:32 +01:00