There's a discussion about cyclic trimming in the German fgfs
forum. For those who want to save the trimming position at exit
and restore it next time, this is easy to achieve: just create a
Nasal file $FG_ROOT/Nasal/local.nas (you can use about any name),
and put something like this in it:

  setlistener("/sim/signals/fdm-initialized", func {
      var ac = getprop("/sim/aircraft");
      if (ac == "bo105") {
          aircraft.data.add("/controls/flight/aileron-trim");
          aircraft.data.add("/controls/flight/elevator-trim");
      } elsif (ac == "b1900d") {
          # do something else
      }
  });


Of for all helicopters:

      if (props.globals.getNode("rotors") != nil) {
          aircraft.data.add(...

The properties listed in aircraft.data.add() are saved in the
aircraft's config file under ~/.fgfs/aircraft-data/, and don't
affect other aircraft. You can also list several properties in
one function call:

  aircraft.data.add(
      "/controls/flight/aileron-trim",
      "/controls/flight/elevator-trim",
  );

m.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to