1
0
Fork 0
Commit graph

2207 commits

Author SHA1 Message Date
mfranz
4ae3ab11df don't silently fix bad user input -- complain loudly 2006-11-04 11:33:08 +00:00
mfranz
2145558999 documentation fix 2006-11-03 19:39:08 +00:00
mfranz
dabf3f300c - aircraft.nas: add variable-interval EWMA lowpass filter class
- dynamic_view.nas: use aircraft.lowpass() class

This makes the dynamic view independent of the frame rate. Currently,
each filter instance reads out dt on its own, which is a bit inefficient.
I'll change that to just one read for all instances later (when Nasal
implemented predictable module loading order. :-)
2006-11-03 17:38:32 +00:00
mfranz
0ff3f5da2b boring cleanup 2006-11-02 21:06:36 +00:00
mfranz
07e3e2b05b - minor fix
- add info/debug messages
2006-10-31 13:59:50 +00:00
mfranz
ae1df38643 better atc-message repetition (Remember: '+'-key) 2006-10-31 12:19:42 +00:00
mfranz
46127405cb Maik JUSTUS: replace underscore with hyphen in config keywords, to be
consistent with the rest of YASim and almost all of fgfs
2006-10-28 21:14:52 +00:00
sydadams
bfe3053f62 Changed animaton to use autopilot passive-mode 2006-10-27 00:56:30 +00:00
mfranz
115b4a04ea replace cheesy wait_for_fdm() loop by a reliable signal callback 2006-10-26 09:23:53 +00:00
curt
e7ba2d6a4b Properly line everything up visually so standard rate turns end up taking
the right amount of time.
2006-10-22 12:51:50 +00:00
mfranz
fe0d940a8f - center title (like the other help dialogs)
- s/Configuration/Driver/
- yet more cosmetics  :-)
2006-10-21 22:03:01 +00:00
mfranz
543b47232e - add missing <desc>riptions
- random cosmetics
2006-10-21 14:58:24 +00:00
mfranz
9352c3ae4f more consistent capitalization 2006-10-21 13:51:42 +00:00
mfranz
cf332a5f33 - make it prettier
- add optional <help> text on the bottom
2006-10-21 13:50:54 +00:00
mfranz
d31c5389ef - s/Btn/Button/
- simplification
2006-10-21 11:46:43 +00:00
mfranz
b840984965 - add missing <desc>riptions
- random cosmetics
2006-10-21 11:27:58 +00:00
mfranz
7f31a17f72 no comma after last <name> 2006-10-21 10:50:42 +00:00
mfranz
018f89b932 improve descriptions, add button names
(if <name> isn't defined, "Axis #0", or "Btn #2" etc. are used in the
joystick info dialog; <name>s should at least be used for entries with
OS specific indices)
2006-10-21 10:21:45 +00:00
mfranz
76e6f5247a disable joystick info dialog if no js available 2006-10-21 10:19:24 +00:00
mfranz
f3d790eb26 add joystick info dialog 2006-10-21 10:19:04 +00:00
mfranz
e4ae076a21 remove entry for old property dialog (which will follow soon) 2006-10-21 10:16:23 +00:00
mfranz
2d2674d952 don't set nil values with props.setDoubleValue() 2006-10-17 20:33:02 +00:00
mfranz
82c4dd05ed - replace indentation tabs with spaces
- fix sliders: revisions 1.43/1.44 had introduced a mandatory <min-lb>;
  if that was missing, a slider without handle was generated, and a click
  on the slider lead to a crash.
  -> check for both <min-lb> and <max-lb> and set default values
     0, respectively 100

  var min = w.getNode("min-lb", 1).getValue();
  var max = w.getNode("max-lb", 1).getValue();
  slider.set("min", min != nil ? min : 0);
  slider.set("max", max != nil ? max : 100);
2006-10-17 19:22:36 +00:00
martin
26ac84dc67 Prepare for renaming in order to get closer to the original meaning in
the VMap0 spec.
2006-10-15 10:46:45 +00:00
martin
6d883e5fe5 My wife expects me to be correct about this .... ;-) 2006-10-14 22:32:04 +00:00
martin
bd560b9cd6 An early riser out of many steps in order to prepare for a cleanup of
the different Landcover material names. Completely harmless.
2006-10-14 22:06:20 +00:00
mfranz
f5544f0cb9 turn <power> off for cyclic control on helicopters, that is: when a
property /rotors is available at joystick driver laod time. Note that
the FDM creates /rotors *afterwards*, so it needs to be defined in the
*-set.xml file already (which is the case for all helicopters in CVS).
A simple, self-ending <rotors/> tag should do.
2006-10-12 13:55:15 +00:00
frohlich
9c52cbf4ac Modified Files:
preferences.xml gui/menubar.xml gui/dialogs/rendering.xml
Added Files:
	Nasal/multiplayer.nas gui/dialogs/chat.xml
	gui/dialogs/chat_full.xml:
	the data part of Stuarts multiplayer/chat patch
2006-10-10 05:23:38 +00:00
fredb
73878fc6b2 Fix axis numbers 2006-10-09 06:29:56 +00:00
andy
167c1cb319 Smaller spreadsheet tool thingies from Maik 2006-09-18 16:21:01 +00:00
andy
7a72ec6a08 Oops, this wasn't supposed to be removed. 2006-09-14 20:37:34 +00:00
andy
4ab5d1178b YASim helicopter documentation update from Maik (includes two copies of
some charted data in very large oofice/xls files, sorry).
2006-09-14 18:22:59 +00:00
mfranz
aad61698ff fix property_browser() 2006-08-27 19:27:21 +00:00
andy
d9ff131805 Oops, wrong sense of create predicte. Melchior was peeved. 2006-08-27 16:45:54 +00:00
andy
e2de2b4093 Melchior discovered an interpreter bug that is fixed (or seems to be
-- I need to verify) in current Nasal CVS.  Commit a workaround for
now.  Basically: don't return a tail call from a foreach.
2006-08-27 16:22:06 +00:00
mfranz
f6c6eaf5b7 minor cleanup & optmization
aar.nas disables $FG_ROOT/Nasal/fuel.nas' main loop, as it should be able
to fully replace it. Ideally, there would be no aar.nas at all, and fuel.nas
would do the job for YASim & JSBSim. Unfortunately, there's a problem with
fuel.nas that's not easy to fix ...
2006-08-27 13:38:29 +00:00
mfranz
8994a4df3f - merge YASim fuel management parts in (should still work with JSBSim as
far as this supports air refueling at all)
- make listeners keep variables up-to-date (for better performance)
- remove the ugly initialization stuff in the main loop, but wait in
  an extra loop for the FDM to come up

This script works now with the a4f, too. The vulcan2 is *supposed* to
work, but there's apparently a bug in it that prevents it.
/systems/refuel/contact is correcly set, and that should be enough for it.
2006-08-27 12:25:43 +00:00
mfranz
65d4a4ba0a add aar/radar capabilities (useful for aar testing) 2006-08-27 08:17:54 +00:00
mfranz
5011ae6ca4 generic aar.nas (air-to-air-refueling). Meant to replace all the files
lying around everywhere. Used by the vulcan2 already. Cleanup pending.
2006-08-26 17:47:53 +00:00
mfranz
1f57ea72b4 a global symbol must not only *contain* __dlg:property_browser, but
start with it. ("__dlg:" is the namespace prefix for Nasal embedded
in XML dialogs. Subsequent property browsers get a random number added.)
2006-08-26 13:23:06 +00:00
durk
499e47bede Added a new preference "instantaneous-action", which releases all
parked aircraft at program start. This is not only a useful test case
for the AIModels subsystem, but can also be used as an interesting demo.
2006-08-26 07:50:56 +00:00
mfranz
be8ca62fc9 cleanup: use new Widget.setBinding() 2006-08-26 07:32:16 +00:00
mfranz
74b5436cde call Dialog.load() from the new() constructor already 2006-08-25 20:13:58 +00:00
andy
b6fb9d031a Further augment the weight subsystem so that weights can be tagged with
tank indices, so that changing drop tanks automatically modifies the
corresponding FDM tank capacity (and load, if it is too high).

Add the new tank stuff to the harrier config, along with a few new
items (e.g. AMRAAMs on the outboard pylons) that aren't in the 3D
model yet, but correspond to actual usage.
2006-08-25 19:59:05 +00:00
mfranz
8751c296fa make KIAS and ALT tape equally wide (35) 2006-08-24 23:00:55 +00:00
andy
3e268e394c [Yes, Andy's writing code again. The world is ending.]
An IRC discussion about shavlir's (really nice) harrier model showed
that it had its own version of something like the Fuel & Weight
dialog, developed because the existing subsystem only supported
sliders and not "combo box" style selection for specific external
stores.  That seemed sub-optimal, so I spent a few hours extending the
F&W dialog to do this and forward-ported the harrier to use it.

Check the harrier-set.xml file for an example.  Basically, the weight
dialog reads a list of options for each weight listed under
/sim/weight[n] and manages a "selected" proprty telling us which one
is in use.  The FDM code can then read out the weight-lb property as
before, and the model animations can use the selected option to
predicate drawing the appropriate 3D content.  It seems to work pretty
well.
2006-08-24 22:29:16 +00:00
mfranz
e85c8708ce place left & right tape symmetrically 2006-08-24 22:06:09 +00:00
mfranz
d27df588a6 reduce slip effect speed (harrier VTOL) 2006-08-24 20:55:18 +00:00
mfranz
b5863d9cad use gui.Dialog() class instead of gui.loadXMLDialog() function (which has
been removed)
2006-08-24 16:32:58 +00:00
mfranz
8aa5947e7a - move bo105's Dialog class here; replaces gui.loadXMLDialog()
- fix indentation
2006-08-24 16:32:09 +00:00