Re: [Flightgear-devel] implemented: interval timer (aka approach timer) [aka stopwatch]

2007-01-02 Thread AJ MacLeod
On Tuesday 02 January 2007 00:15, John Denker wrote:
 I cobbled up some XML code to implement an
   interval timer
 Anybody who wishes to make a more elegant interval timer is encouraged
 to do so.  It's really nice to have a good timer if you're doing anything
 resembling instrument training.

Indeed.  The first rule of developing something for FG is... check to make 
sure that nobody else has already done it :-)

There's actually a very useful stopwatch available from the debug menu 
(possibly not the most obvious place for it, but I'm not sure I have any 
better ideas).

You can find the code in gui/dialogs/stopwatch.xml

Cheers,

AJ
(P.S. it's not my code, I'm just alerting you to its presence)

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] implemented: interval timer (aka approach timer) [aka stopwatch]

2007-01-02 Thread Nick Warne
On Tuesday 02 January 2007 18:24, AJ MacLeod wrote:

 One shouldn't expect the documentation of a project like this to be 100% up
 to date, especially when referring to fairly trivial features.  Development
 happens quite quickly in FGFS and great new features are being added all
 the time.  It's well worth running a CVS version to keep abreast of them...

   You can find the code in gui/dialogs/stopwatch.xml

I have the latest CVS and I do not have that file either - plus it isn't in 
the on-line repository either:

http://cvs.flightgear.org/cgi-bin/viewvc/viewvc.cgi/FlightGear/src/GUI/?pathrev=HEAD

Nick

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] implemented: interval timer (aka approach timer) [aka stopwatch]

2007-01-01 Thread John Denker
Hi --

I cobbled up some XML code to implement an
  interval timer
  aka approach timer
  aka stopwatch.


Having an interval timer is more-or-less indispensible for performing
certain types of instrument approaches.

The XML can be found at:
  http://www.av8n.com/fly/fgfs/stopwatch.xml

This ought to work on most aircraft that have a clock based on the
clock.cxx backend.

My implementation is not terribly elegant, but it gets the job done well
enough to be perfectly usable ... and it was the best I could do without
being able to recompile clock.cxx.  (The FlightGear package refuses to
compile on my machine, x86 Debian etch, so I'm stuck with precompiled
binaries.)

Anybody who wishes to make a more elegant interval timer is encouraged
to do so.  It's really nice to have a good timer if you're doing anything
resembling instrument training.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] implemented: interval timer (aka approach timer) [aka stopwatch]

2007-01-01 Thread Ron Jensen
On Mon, 2007-01-01 at 19:15 -0500, John Denker wrote:
 (The FlightGear package refuses to
 compile on my machine, x86 Debian etch, so I'm stuck with precompiled
 binaries.)

What problems do you have?  I find including more libraries in some of
the Makefile.am's does the trick for me...  I'm attaching a diff of my
debian-etch build tree against today's CVS.

I have the latest CVS (OSG not PLIB) for Simgear and FlightGear and a
patched version of the release OSG as debian packages if you're
interested.  Simgear and FlightGear together are about 4 MBytes, OSG is
32 MBytes.

Ron

Index: src/Airports/Makefile.am
===
RCS file: /var/cvs/FlightGear-0.9/source/src/Airports/Makefile.am,v
retrieving revision 1.9
diff -U 3 -r1.9 Makefile.am
--- src/Airports/Makefile.am	6 Oct 2006 17:36:32 -	1.9
+++ src/Airports/Makefile.am	2 Jan 2007 04:45:59 -
@@ -13,6 +13,6 @@
 	trafficcontrol.hxx trafficcontrol.cxx
 
 calc_loc_SOURCES = calc_loc.cxx
-calc_loc_LDADD = -lsgmath -lsgdebug -lsgmisc -lz $(base_LIBS)
+calc_loc_LDADD = -lsgmath -lsgdebug -lsgmisc -lsgprops -lsgstructure -lsgxml -lz $(base_LIBS)
 
 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src
Index: src/FDM/YASim/Makefile.am
===
RCS file: /var/cvs/FlightGear-0.9/source/src/FDM/YASim/Makefile.am,v
retrieving revision 1.18
diff -U 3 -r1.18 Makefile.am
--- src/FDM/YASim/Makefile.am	17 Dec 2006 10:12:39 -	1.18
+++ src/FDM/YASim/Makefile.am	2 Jan 2007 04:46:00 -
@@ -45,9 +45,9 @@
 
 yasim_SOURCES = yasim-test.cpp $(SHARED_SOURCE_FILES)
 
-yasim_LDADD = -lsgxml -lsgprops -lsgdebug -lsgmisc -lsgstructure -lplibul -lplibsg $(opengl_LIBS) $(base_LIBS)
+yasim_LDADD = -lsgxml -lsgprops -lsgdebug -lsgmisc -lsgstructure -lplibul -lplibsg $(opengl_LIBS) $(base_LIBS) -lz
 
 proptest_SOURCES = proptest.cpp $(SHARED_SOURCE_FILES)
-proptest_LDADD = -lsgxml -lsgprops -lsgdebug -lsgmisc -lsgstructure -lplibul -lplibsg $(opengl_LIBS) $(base_LIBS)
+proptest_LDADD = -lsgxml -lsgprops -lsgdebug -lsgmisc -lsgstructure -lplibul -lplibsg $(opengl_LIBS) $(base_LIBS) -lz
 
 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src
Index: src/GUI/Makefile.am
===
RCS file: /var/cvs/FlightGear-0.9/source/src/GUI/Makefile.am,v
retrieving revision 1.15
diff -U 3 -r1.15 Makefile.am
--- src/GUI/Makefile.am	1 Nov 2006 22:48:34 -	1.15
+++ src/GUI/Makefile.am	2 Jan 2007 04:46:00 -
@@ -21,4 +21,4 @@
 
 layout_test_LDADD = libGUI.a \
 -lsgprops -lsgdebug -lsgstructure -lsgmisc -lsgxml \
--lplibpw -lplibpu -lplibfnt -lplibul $(opengl_LIBS)
+-lplibpw -lplibpu -lplibfnt -lplibul $(opengl_LIBS) -lz
Index: src/Input/Makefile.am
===
RCS file: /var/cvs/FlightGear-0.9/source/src/Input/Makefile.am,v
retrieving revision 1.7
diff -U 3 -r1.7 Makefile.am
--- src/Input/Makefile.am	4 Jul 2006 23:29:05 -	1.7
+++ src/Input/Makefile.am	2 Jan 2007 04:46:00 -
@@ -13,6 +13,7 @@
 fgjs_SOURCES = fgjs.cxx jsinput.cxx jsinput.h jssuper.cxx jssuper.h
 
 fgjs_LDADD = -lplibjs $(base_LIBS) $(joystick_LIBS) -lplibul \
-	-lsgprops -lsgmisc -lsgio -lsgdebug -lsgstructure -lsgxml -lz
+	-lsgprops -lsgmisc -lsgio -lsgdebug -lsgstructure -lsgxml -lz \
+	-lsgserial -lplibnet -lsgbucket
 
 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src -I$(top_srcdir)/src/Main
Index: src/Main/Makefile.am
===
RCS file: /var/cvs/FlightGear-0.9/source/src/Main/Makefile.am,v
retrieving revision 1.71
diff -U 3 -r1.71 Makefile.am
--- src/Main/Makefile.am	31 Oct 2006 06:19:53 -	1.71
+++ src/Main/Makefile.am	2 Jan 2007 04:46:01 -
@@ -113,6 +113,8 @@
 metar_LDADD = \
 -lsgenvironment -lsgio -lsgbucket -lsgmisc -lsgstructure -lsgdebug \
 -lplibnet -lplibul $(network_LIBS) \
--lz $(base_LIBS)
+-lz $(base_LIBS) \
+	-lsgserial -lsgprops -lsgxml -lsgsky -losg -losgDB -losgUtil -lsgprops \
+	-lplibsg -lsgscreen -lsgmodel -lsgutil -lsgmath
 
 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src -I$(top_srcdir)/src/FDM/JSBSim
Index: tests/Makefile.am
===
RCS file: /var/cvs/FlightGear-0.9/source/tests/Makefile.am,v
retrieving revision 1.6
diff -U 3 -r1.6 Makefile.am
--- tests/Makefile.am	31 Jan 2006 18:20:49 -	1.6
+++ tests/Makefile.am	2 Jan 2007 04:46:01 -
@@ -21,4 +21,6 @@
 test_text_SOURCES = test-text.cxx
 
 test_up_SOURCES = test-up.cxx
-test_up_LDADD = -lsgmath -lsgxml -lsgmisc -lsgdebug -lsgstructure -lsgtiming -lplibsg -lplibul -lz $(base_LIBS)
+test_up_LDADD = -lsgmath -lsgxml -lsgmisc -lsgdebug -lsgstructure -lsgtiming -lplibsg -lplibul -lz \
+ -lsgprops \
+ $(base_LIBS)
Index: utils/GPSsmooth/Makefile.am
===