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
Richard Harrison
f9eacd8be0
Nasal Debug.dump tweaks to make it readable as JSON
2020-04-09 23:56:43 +02:00
Richard Harrison
5f1784937e
Added Joystick Sensitivity Reduction to dialog.
...
This allows the setting of the <power> tag - which in turn will decreases the sensitivity around the zero position
2020-04-09 23:56:37 +02:00
James Turner
7a3a36eab2
Nasal modules: expose reload as a command
2020-04-07 14:28:30 +01:00
Richard Harrison
2dbe28d43b
Emesary MP bridge: fix lost messages on MP bridge.
...
When more than one message type being transmitted on the bridge only one of the types would be reliably received. Bug caused because the message index is per notification type (on MP bridge outgoing) but was being treated as per incoming bridge (rather than notification).
2020-03-24 17:13:37 +01:00
Eatdirt
f0a23d6ab1
Implement Earthview tiles loading based on visibility in spherical geometry
2020-03-23 23:47:31 +01:00
Stuart Buchanan
3caa899068
FG1000 - NRST PFD Function
...
Implement the Nearest Airports PFD softkey, displaying a scrollable
list of the closest 25 airports within 200nm.
Also fix a couple of minor bugs and add self-checking to the
GroupElement
2020-03-12 21:39:23 +00:00
Stuart Buchanan
76cfa2c077
FG1000 and MFD handle non-MFD Emesary notifications
...
Previously the FG1000 and MFD assumed that all notifications received
via Emesary had a Device_Id field. This is true for
notifications.PFDEventNotification.DefaultType but not for other
messages - e.g. those generated by the AN SPN 46 system on the
carrier.
The effect of this was that when Nimitz was loaded, the FG1000 stopped
working with various errors.
This fix checks the notification type before the Device_Id.
2020-03-12 17:25:34 +00:00
James Turner
556c19e1ee
Merge /u/dirteat/flightgear/ branch next into next
...
https://sourceforge.net/p/flightgear/fgdata/merge-requests/172/
2020-03-11 09:44:21 +00:00
Henning Stahlke
f547786fe4
add canvas/draw.nas library
2020-03-08 21:02:44 +01:00
Henning Stahlke
8b0fa9a08d
update canvas_efis/main.nas to get namespace via module API
2020-03-08 20:57:04 +01:00
Henning Stahlke
a1664a4759
add 'available' node for reloadable Nasal modules
2020-03-08 20:56:05 +01:00
Henning Stahlke
ce848ff916
remove dead code from addons.nas (forgotten when moving code out to modules.nas)
2020-03-08 20:48:28 +01:00
Henning Stahlke
4108652c94
remove unnecessary userarchive flags from defaults.xml
2020-03-08 20:46:56 +01:00
Henning Stahlke
11b05ebab2
modules.nas fix type in path; update comments
2020-02-23 19:39:42 +01:00
Henning Stahlke
6c92220d18
Merge branch 'next' of git://git.code.sf.net/p/flightgear/fgdata into next
2020-02-23 19:37:17 +01:00
Richard Harrison
1d0129bdd9
Fixed timers in wildfire
2020-02-22 19:51:41 +01:00
Eatdirt
5310734d4c
Add two new methods for geo objects
...
The method horizon() returns the distance to the horizon, along earth
surface, starting from current location. The method
greatcircle_distance_to(A,B) returns the shortest distance to a great
circle passing by A and B, along earth surface and from current location.
2020-02-20 21:36:54 +01:00
Henning Stahlke
b69f460ee5
Canvas EFIS framework
2020-02-20 00:02:33 +01:00
Henning Stahlke
c6e5244b13
update defaults.xml
...
add repair_config.nas to fix old userarchive flags
2020-02-15 14:39:36 +01:00
Stuart Buchanan
4b0d08975c
Merge /u/jsb1685/fgdata/ branch next into next
...
https://sourceforge.net/p/flightgear/fgdata/merge-requests/164/
2020-02-12 19:38:43 +00:00
Henning Stahlke
1b2014ed04
minor improvements to modules.nas
2020-02-03 09:59:38 +01:00
James Turner
53e3bac6ee
Merge /u/deltaecho/flightgear_fgdata/ branch next into next
...
https://sourceforge.net/p/flightgear/fgdata/merge-requests/163/
2020-01-30 10:40:01 +00:00
Henning Stahlke
e39ebd79e3
add Nasal loadable module support (modules.nas)
2020-01-26 18:13:08 +01:00
jano
c982d3e333
added a page with the unit toggle, to display lag statistics, to help diagnose and address lag issues
2020-01-14 11:58:26 +01:00
Richard Harrison
e9b12b302f
Fix Tanker when no offset specificed
2020-01-10 20:00:55 +01:00
Richard Harrison
94c9f3b428
Fix failure manager warning
...
ironically the warning message was causing a more serious failure.
2019-12-11 17:53:35 +01:00
Henning Stahlke
5676ce6c68
add is_directory(path) and subdirectories(path) to Nasal/io.nas
2019-11-09 23:26:49 +01:00
Henning Stahlke
43efd64dd2
add aspect ratio lock feature to canvas window; user window.lockAspectRatio() to activate
2019-11-06 22:59:08 +01:00
Julian Smith
3302620745
Nasal/multiplayer.nas: Make sure we update view if /sim/current-view/model-view is changed.
2019-10-25 21:03:36 +01:00
Thorsten Renk
8efa938ace
Add volcanic activity for Surtsey
2019-10-19 10:27:33 +03:00
Thorsten Renk
79af6d0fd0
Fix spurious altitude variation in improved analytical orbit of orbital target
2019-10-06 11:30:07 +03:00