#!/usr/bin/perl
+#
+# aircraft.pl - Handle aircraft functions
+#
+# Written by Curtis L. Olson, started January 2004
+#
+# Copyright (C) 2004 Curtis L. Olson - curt@flightgear.org
+#
+# This code is placed in the public domain by Curtis L. Olson.
+# There is no warranty, etc. etc. etc.
+#
+# $Id$
+# ----------------------------------------------------------------------------
require "telnet.pl";
&set_prop( $fgfs, "/controls/flight/elevator", $pos_norm );
}
+sub set_elevator_trim {
+ my( $fgfs ) = shift;
+ my( $pos_norm ) = shift;
+
+ &set_prop( $fgfs, "/controls/flight/elevator-trim", $pos_norm );
+}
+
sub set_rudder {
my( $fgfs ) = shift;
my( $pos_norm ) = shift;
#!/usr/bin/perl
+#
+# autopilot.pl - Handle autopilot functions
+#
+# Written by Curtis L. Olson, started January 2004
+#
+# Copyright (C) 2004 Curtis L. Olson - curt@flightgear.org
+#
+# This code is placed in the public domain by Curtis L. Olson.
+# There is no warranty, etc. etc. etc.
+#
+# $Id$
+# ----------------------------------------------------------------------------
+
require "telnet.pl";
#!/usr/bin/perl
+#
+# environment.pl - Handle environment setup
+#
+# Written by Curtis L. Olson, started January 2004
+#
+# Copyright (C) 2004 Curtis L. Olson - curt@flightgear.org
+#
+# This code is placed in the public domain by Curtis L. Olson.
+# There is no warranty, etc. etc. etc.
+#
+# $Id$
+# ----------------------------------------------------------------------------
+
require "telnet.pl";
foreach $prop ( keys(%HASH) ) {
$value = $HASH{$prop};
- print "setting $prop = $value\n";
+ # print "setting $prop = $value\n";
&set_prop( $fgfs, $prop, $value );
}
}
foreach $prop ( keys(%HASH) ) {
$value = $HASH{$prop};
- print "setting $prop = $value\n";
+ # print "setting $prop = $value\n";
&set_prop( $fgfs, $prop, $value );
}
}
foreach $prop ( keys(%HASH) ) {
$value = $HASH{$prop};
- print "setting $prop = $value\n";
+ # print "setting $prop = $value\n";
&set_prop( $fgfs, $prop, $value );
}
}
my( $field_index ) = 0;
-# my( $page );
-# my( $server, $port, $timeout );
-# my( $last_plot_image ) = "";
-# my( $image_handle );
-# my( $junk );
-# my( @PLOTFIELDS );
-# my( $field_choice );
-# my( $plot_field );
-
-# my( $home ) = $ENV{"HOME"};
-# my( $log_dir ) = "$home/ATC/data";
-# my( $log_file ) = "$log_dir/default.txt";
-# my( $plot_file ) = $log_file;
-
sub clear_logging {
my( $fgfs ) = shift;
# spaces seem to not work well.
$title =~ s/ /\_/g;
- print "$title - $prop\n";
+ # print "$title - $prop\n";
&set_prop( $fgfs,
"/logging/log[$lognum]/entry[$field_index]/title", $title );
&set_prop( $fgfs,
#!/usr/bin/perl
+#
+# position.pl - Handle repositioning aircraft (in air/on ground)
+#
+# Written by Curtis L. Olson, started January 2004
+#
+# Copyright (C) 2004 Curtis L. Olson - curt@flightgear.org
+#
+# This code is placed in the public domain by Curtis L. Olson.
+# There is no warranty, etc. etc. etc.
+#
+# $Id$
+# ----------------------------------------------------------------------------
+
require "telnet.pl";