Re: [Flightgear-devel] how to find remaining fuel

2005-02-28 Thread Seamus Thomas Carroll
Hi, I seemed to have had a feature in my code that caused the tanks to be filled making me think that the tanks were increasing in fuel. The code seems to work correctly now. Thanks, Seamus On Mon, 28 Feb 2005, Andy Ross wrote: Seamus Thomas Carroll wrote: The fuel levels seem to retrieve

Re: [Flightgear-devel] how to find remaining fuel

2005-02-26 Thread Seamus Thomas Carroll
Hi, I am using the following piece of code to read the fuel levels: double fueln = 0; // get the fuel levels; for( int count = 0; count 7; count++ ) { string tank = /consumables/fuel/tank[+ su-intTostring(count)+]/level-gal_us; cout setprecision(6) tank count :

[Flightgear-devel] How to check if plane is fully initialized

2005-02-08 Thread Seamus Thomas Carroll
Hi, Thanks for all the help with the fuel issue. I am curios if there is a way to check if the plane has been fully initialized. It seems to me that fgMainLoop starts executing about 6 seconds before the plane is fully initialized. I would like to call my update functions only after the

Re: [Flightgear-devel] how to find remaining fuel

2005-02-03 Thread Seamus Thomas Carroll
I have been using the c172 aircraft. Is it controlled by jsbsim or ysim? Thanks, Seamus On Fri, 4 Feb 2005, Innis Cunningham wrote: Lee Elliott writes /consumables/fuel/total-fuel-norm gives the total remaining fuel, normalised to 0-1. Hmm.Dont know that this is available under jsbsim. LeeE

[Flightgear-devel] how to find remaining fuel

2005-02-02 Thread Seamus Thomas Carroll
Hi, I am trying to find the variable that contains the remaining fuel on a plane. Also, is there a variable that contains the current km per litre? Thankyou, Seamus ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org

RE: [Flightgear-devel] how to find remaining fuel

2005-02-02 Thread Seamus Thomas Carroll
popped out at me as being the one i was looking for. Seamus On Thu, 3 Feb 2005, Innis Cunningham wrote: Hi Seamus Seamus Thomas Carroll writes Hi, I am trying to find the variable that contains the remaining fuel on a plane. I dont think there is a total fuel onboard or fuel remaining property. I

[Flightgear-devel] Neither GL/glut.h nor GLUT/glut.h found. Cannot continue

2004-05-28 Thread Seamus Thomas Carroll
Hi, I have installed plib and simgear and GL/glut.h is found in the configure but when i configure flight gear i get the following error: checking GL/glut.h usability... no checking GL/glut.h presence... no checking for GL/glut.h... no checking GLUT/glut.h usability... no checking GLUT/glut.h

Re: [Flightgear-devel] Neither GL/glut.h nor GLUT/glut.h found. Cannot continue

2004-05-28 Thread Seamus Thomas Carroll
sorry, turns out there is no GL/glut.h. I apologize for wasting anyones time. Seamus On Fri, 28 May 2004, Seamus Thomas Carroll wrote: Hi, I have installed plib and simgear and GL/glut.h is found in the configure but when i configure flight gear i get the following error: checking GL

Re: [Flightgear-devel] How to get cesna to follow a set of way points.

2004-05-20 Thread Seamus Thomas Carroll
the autopilot back to the generic version in the *-set.xml file. This was answered within the last couple of weeks but maybe it was someone else asking the same question. Best, Jim Seamus Thomas Carroll said: I went out of town for a coulple of weeks and looking through my list of emails i

Re: [Flightgear-devel] How to get cesna to follow a set of way points.

2004-05-20 Thread Seamus Thomas Carroll
the u_min and u_max but after modifying the heading bug hold i am not noticing and improvements. Does anyone have a hint? Seamus On Fri, 21 May 2004, Roy Vegard Ovesen wrote: On Thursday 20 May 2004 23:50, Seamus Thomas Carroll wrote: Hi Jim, I was the one who asked this question

[Flightgear-devel] How to get cesna to follow a set of way points.

2004-05-19 Thread Seamus Thomas Carroll
would be able to achieve this functionality? Seamus On Wed, 5 May 2004, Seamus Thomas Carroll wrote: Are there plans to add a route manager to the KAP140? If not what property do I change to use the generic autopilot? I have tried different changing values in different xml files

[Flightgear-devel] how to determine when flightgear has fully initialized

2004-05-05 Thread Seamus Thomas Carroll
Hi, Is there a simple way to test in the code to see if flightgear has initialized such as a boolean? Seamus ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Re: [Flightgear-devel] cesna autopilot seems messed up

2004-05-05 Thread Seamus Thomas Carroll
Thomas Carroll wrote: To test if a problem resides with the cesna autopilot i tested using Add Waypoint and instead of the autopilot guiding the plane to the waypoint it just flys in cirlces until it spirals into the ground. This autopilot with the cesna did work correctly that last time I

[Flightgear-devel] Has there been any changes to the use of FGRouteMgr

2004-05-04 Thread Seamus Thomas Carroll
Hi, Last week (maybe two) i was able to create a path for the plane to fly using the following code: void AgentUAV::processWaypointsTable( string flightPathTable ) { double lon, lat; string query = select NumPoints(the_geom) from + flightPathTable + where

[Flightgear-devel] cesna autopilot seems messed up

2004-05-04 Thread Seamus Thomas Carroll
of weeks ago. Has someone changed cesna autopilot config file to cause this incorrect behaviour? Is it a problem with the set up on my end? I have tried the pa28-161 and the autopilot works correctly. Seamus On Tue, 4 May 2004, Seamus Thomas Carroll wrote: Hi, Last week (maybe two) i

Re: [Flightgear-devel] how to set a planes altitude?

2004-03-31 Thread Seamus Thomas Carroll
. For now I will just accept it as black magic. Seamus On Wed, 31 Mar 2004, Erik Hofman wrote: Seamus Thomas Carroll wrote: Hi, I am tried setting the planes altitude with the following code: fgSetDouble(/position/altitude-ft, Alt) This worked find when using the ufo but when i tried

[Flightgear-devel] how to set a planes altitude?

2004-03-30 Thread Seamus Thomas Carroll
Hi, I am tried setting the planes altitude with the following code: fgSetDouble(/position/altitude-ft, Alt) This worked find when using the ufo but when i tried using the sesna it no longer worked. I then manually changed the property /fdm/jsbsim/position/h-sl-ft and again things worked.

[Flightgear-devel] How to save glbuffer as jpeg

2004-03-17 Thread Seamus Thomas Carroll
Hi, Does anyone know of a way to save the glbuffer as a jpeg? Currently the images are saved as a ppm but this requires a lot of space. A hint on what library to use might be enough for me to figure out the rest. Seamus ___ Flightgear-devel

Re: [Flightgear-devel] Compile error with latest simgear cvs.

2004-03-12 Thread Seamus Thomas Carroll
Hi, from g++ -v: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 2731 (Red Hat Linux 7.3 2.96-113) On Thu, 11 Mar 2004, Frederic Bouvier wrote: Seamus Thomas Carroll wrote: Hi, Just update my simgear cvs today and I now get the following error

Re: [Flightgear-devel] Compile error with latest simgear cvs.

2004-03-12 Thread Seamus Thomas Carroll
Thanks, compiles now. On Fri, 12 Mar 2004, Frederic BOUVIER wrote: Seamus Thomas Carroll wrote: Hi, from g++ -v: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 2731 (Red Hat Linux 7.3 2.96-113) Ok, pre 3 compiler. Hopefully, a fix

[Flightgear-devel] Compile error with latest simgear cvs.

2004-03-11 Thread Seamus Thomas Carroll
Hi, Just update my simgear cvs today and I now get the following error: In file included from sgstream.hxx:47, from sgstream.cxx:32: ../../simgear/misc/zfstream.hxx:144: `traits_type' is not a member of type `streambuf' ../../simgear/misc/zfstream.hxx:144: parse error before `::'

Re: [Flightgear-devel] fgDumpSnapShot(); producing blank screen and other corruptions

2004-02-25 Thread Seamus Thomas Carroll
I am currently using the main thread and it is producing these incorrect images. I have not even multithreaded it yet. When I do I will only be threading the writting of the image. Seamus On Wed, 25 Feb 2004, Frederic Bouvier wrote: Seamus Thomas Carroll wrote: Hi, I am trying to save

Re: [Flightgear-devel] fgDumpSnapShot();

2004-02-25 Thread Seamus Thomas Carroll
looks correct but the screen shot saved by sg_glDumpWindow does not. Are they not from the same buffer? You can find an example screen shot with corruption at http://pages.cpsc.ucalgary.ca/~carrolls/ppm/fgfs-screen---00075.jpeg Seamus On Wed, 25 Feb 2004, Martin Spott wrote: Seamus Thomas

[Flightgear-devel] fgDumpSnapShot(); producing blank screen and other corruptions

2004-02-24 Thread Seamus Thomas Carroll
Hi, I am trying to save images from flightgear to a file or database without explicitly using the gui. For a test of current capability I am calling fgDumpSnapShot every second but I am finding it produces saved images that are completely white or contain corruption, yet other images are

[Flightgear-devel] Help with activating route

2004-02-22 Thread Seamus Thomas Carroll
I am trying to update my autopilot route code to reflect the latest changes. I read a set of points from a table in a database. I used to use globals-get_route()-add_waypoint( *wp ); to add the waypoints and then I would activate the autopilot by calling,

Re: [Flightgear-devel] truncf undeclared rearing its ugly head

2004-02-20 Thread Seamus Thomas Carroll
The latest cvs compiled without a problem. Seamus On Fri, 20 Feb 2004, Erik Hofman wrote: Jim Wilson wrote: My apologies for not following up sooner. When I later did a make clean it became an issue for me as well. I cannot tell you why at this point, except that truncf is a)

[Flightgear-devel] Help\Advice for cvs update

2004-02-20 Thread Seamus Thomas Carroll
Hi, Every once and a while I update my cvs checkout. I have begun to notice that a cvs update -d -P does not merge my modified file with the checked out file. A conflict is not reported because the cvs update only presents an M. ie: cvs update: Updating . M fg_commands.cxx M fg_init.cxx M

[Flightgear-devel] truncf undeclared rearing its ugly head

2004-02-19 Thread Seamus Thomas Carroll
had successful compiles and others didnt. Seamus -- Forwarded message -- Date: Wed, 18 Feb 2004 18:49:27 -0700 (MST) From: Seamus Thomas Carroll [EMAIL PROTECTED] To: FlightGear developers discussions [EMAIL PROTECTED] Subject: Re: [Flightgear-devel] Re: Latest CVS not compiling I

Re: [Flightgear-devel] truncf undeclared rearing its ugly head

2004-02-19 Thread Seamus Thomas Carroll
I just added #include math.h source/src/Cockpit/panel.cxx recompiled and still the same error. Seamus On Thu, 19 Feb 2004, Andy Ross wrote: Seamus Thomas Carroll wrote: I have read the discussion about the truncf problem and with the latest cvs checkout i still recieve the error

[Flightgear-devel] Latest CVS not compiling

2004-02-18 Thread Seamus Thomas Carroll
Hi, I have just tried a cvs update and the compile of flightgear results in an error. I also did a cvs update and compile of plib and simgear without error. The error recieved is as follows: ++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src -I/scratch/simgear//include

Re: [Flightgear-devel] Latest CVS not compiling

2004-02-18 Thread Seamus Thomas Carroll
/globals.cxx M src/Main/globals.hxx C src/Main/main.cxx M src/Main/main.hxx M src/Main/options.cxx I could grab a new cvs but it will require that I add my changes to Main. Seamus On Wed, 18 Feb 2004, Seamus Thomas Carroll wrote: Hi, I have just tried a cvs update and the compile of flightgear results

Re: [Flightgear-devel] Re: Latest CVS not compiling

2004-02-18 Thread Seamus Thomas Carroll
identifier is reported only once for each function it appears in.) make[3]: *** [panel.o] Error 1 make[3]: Leaving directory `/home/grads/carrolls/downloads/flightgear/FlightGear/src/Cockpit' Any suggestions would be appreciated, Seamus On Thu, 19 Feb 2004, Melchior FRANZ wrote: * Seamus Thomas

[Flightgear-devel] autopilot, maintaining elevation

2004-01-08 Thread Seamus Thomas Carroll
Hi, I am playing with the autopilot and maintaining an altitidue above sea level works great. Is there a method for maintaining an elevation above the ground? Seamus ___ Flightgear-devel mailing list [EMAIL PROTECTED]

[Flightgear-devel] additional documentation on autopilot

2004-01-07 Thread Seamus Thomas Carroll
Hi, I have read Altitude Hold Module and Heading Hold Module in the flightgear docs and I would like to learn more about the theory of autopilots. Does anyone have a recomendation on books, articles, etc in this area? Thanks, Seamus ___

[Flightgear-devel] What is the camera angle in flightgear?

2003-12-05 Thread Seamus Thomas Carroll
Hi Flightgear Developers, The reasone I would like to know is given an altidude above the ground and a picture taken at that altitude I would like to know how much ground the picture covers. Seamus ___ Flightgear-devel mailing list [EMAIL

Re: [Flightgear-devel] What is the camera angle in flightgear?

2003-12-05 Thread Seamus Thomas Carroll
What variable do I pull from the property tree to get this value? Can I set this value when I configure the views? I have a view that looks down from the bottom of the plane for taking pictures of the ground. Seamus On Fri, 5 Dec 2003, David Megginson wrote: Seamus Thomas Carroll wrote

[Flightgear-devel] running flightgear without display

2003-12-03 Thread Seamus Thomas Carroll
Hi, Is there a way to run flightgear without outputting to the display? I would like to run flightgear from a remote computer and I dont want the display to show up on the local or calling computer. I would still like to be able to take screen shots so I would still require that the buffer

[Flightgear-devel] Checking if there is a connection with netChannel

2003-12-02 Thread Seamus Thomas Carroll
Hi, I have got the netChannel figured (thanks Bernie) out and the server is accepting multiple clients. The problem is if a client flightgear program is shut down the server still tries to send it information and the server crashes. I tried using netChannel::isConnected() but it returns

RE: [Flightgear-devel] Checking if there is a connection with netChannel

2003-12-02 Thread Seamus Thomas Carroll
I put a cerr delete globals endl; where you have delete globals; in the code below and when I exit flightgear delete globals is not printed. Does the same happen for you? Seamus On Tue, 2 Dec 2003, Norman Vine wrote: Seamus Thomas Carroll writes: On the client side I thought about

Re: [Flightgear-devel] Checking if there is a connection with netChannel

2003-12-02 Thread Seamus Thomas Carroll
for now. Seamus On Wed, 3 Dec 2003, Bernie Bright wrote: On Tue, 02 Dec 2003 20:40:51 -0500 Norman Vine [EMAIL PROTECTED] wrote: Seamus Thomas Carroll writes: On the client side I thought about using netChannel::close to inform the server that the socket is closed but the function

Re: [Flightgear-devel] read not excepting more than one client

2003-12-01 Thread Seamus Thomas Carroll
documentation on the plib website. Can someone explain why SGSocket restricts the number of clients to one? Would it not make more sense to allow up to some maximum number of clients? Seamus On Sun, 30 Nov 2003, Bernie Bright wrote: On Fri, 28 Nov 2003 22:45:24 -0700 Seamus Thomas Carroll

[Flightgear-devel] read not excepting more than one client

2003-11-28 Thread Seamus Thomas Carroll
Hi, I have created a server which has one SGSocket object listening for clients that want to connect. The problem I am having is when a second client sends its connect info to the server the server never gets the message. Note that the server is listening using readline and that the connection

Re: [Flightgear-devel] simgear SGSocket returning -1

2003-11-27 Thread Seamus Thomas Carroll
I have done some extensive testing with read() using tcp and it seems to be working great. Thanks, Seamus On Fri, 28 Nov 2003, Bernie Bright wrote: On Thu, 27 Nov 2003 07:23:30 -0600 Curtis L. Olson [EMAIL PROTECTED] wrote: Curtis L. Olson writes: Bernie Bright writes:

[Flightgear-devel] simgear SGSocket returning -1

2003-11-26 Thread Seamus Thomas Carroll
Hi, I am trying to recieve a message using SGSocket::read. SGSocket::read returns zero bytes read until about the time I am expecting the first message to be recieved. From here on SGSocket::read returns that -1 bytes have been read from the socket. I have looked around (simgear docs, plib)

Re: [Flightgear-devel] simgear SGSocket returning -1

2003-11-26 Thread Seamus Thomas Carroll
2003 16:59:53 -0700 Seamus Thomas Carroll [EMAIL PROTECTED] wrote: Hi, I am trying to recieve a message using SGSocket::read. SGSocket::read returns zero bytes read until about the time I am expecting the first message to be recieved. From here on SGSocket::read returns that -1

Re: [Flightgear-devel] easyxml

2003-11-18 Thread Seamus Thomas Carroll
Good point. I now understand how to read xml from a file but I cant figure out how to read xml from a char *. When a client recieves an xml document from the server it will read it into a char *buffer. Is it possible to then parse buffer using the property-tree code? I am looking at void

Re: [Flightgear-devel] easyxml

2003-11-18 Thread Seamus Thomas Carroll
I looked at the code for readxml and the path is simply a descriptor for the document being parsed (ie file name) and does not effect the parsing. The new question is how to cast? the char * to an istream? Seamus On Tue, 18 Nov 2003, Seamus Thomas Carroll wrote: Good point. I now

Re: [Flightgear-devel] FG AI with server

2003-11-18 Thread Seamus Thomas Carroll
True. If I take advantage of \n in the passed message it should be very simple to pull out relevant data. Seamus On Wed, 19 Nov 2003, [EMAIL PROTECTED] wrote: Am Montag, 17. November 2003 23:25 schrieb Seamus Thomas Carroll: Hi, Starting today (monday) I will be working on a ground

[Flightgear-devel] FG AI with server

2003-11-17 Thread Seamus Thomas Carroll
Hi, Starting today (monday) I will be working on a ground vehicle server that will manage the movement of ground vehicles over a road network. The server will be in charge of calculating the ground elevation and movement of each vehicle every second. Any connecting client (FG) will be passed

[Flightgear-devel] easyxml

2003-11-17 Thread Seamus Thomas Carroll
Hi, Is there a tutorial or can someone give or direct me to a simple example on how to use easyxml? I am trying to work my way through props_io.cxx but it is not an easy introduction. Seamus ___ Flightgear-devel mailing list [EMAIL PROTECTED]

Re: [Flightgear-devel] easyxml

2003-11-17 Thread Seamus Thomas Carroll
, double lon, double lat? Seamus On Mon, 17 Nov 2003, David Megginson wrote: Seamus Thomas Carroll wrote: Is there a tutorial or can someone give or direct me to a simple example on how to use easyxml? I am trying to work my way through props_io.cxx but it is not an easy introduction

Re: [Flightgear-devel] [Repost] Simulating ground activity (fwd)

2003-11-11 Thread Seamus Thomas Carroll
at 2:28 PM Seamus Thomas Carroll wrote: I now have cubes and cylinders of various colours moving around in the flightgear world. Currently I specify a starting lon, lat and the roaming distance in meters in either the lon, lat direction. I can have about 100 vehicles being updated 3 times

Re: [Flightgear-devel] Compliation of CVS Source Error --ssgCullandDraw

2003-11-07 Thread Seamus Thomas Carroll
I am thinking back as hard as I can and I cant pin point how things began working. I was having problems with CVS not updating files I had modified with cvs update -d -P. I downloaded a brand new cvs for flightgear and it began to compile (and maybe simgear). HTH, Seamus On Fri, 7 Nov

Re: [Flightgear-devel] [Repost] Simulating ground activity (fwd)

2003-11-06 Thread Seamus Thomas Carroll
of the plane using the lon, lat of the vehicle? If this is so I will be able to eliminate large amounts of computation. Seamus On Tue, 4 Nov 2003, Seamus Thomas Carroll wrote: Sorry, I modified transform a bit and forgot to * pos.elev by SG_METER_TO_FEET. I added that bit and models started

RE: [Flightgear-devel] [Repost] Simulating ground activity (fwd)

2003-11-06 Thread Seamus Thomas Carroll
Can you direct me to where i can find HitList::fgCurrentElevation()? i have run grep on simgear and flightgear plus searched in google and I still cant find mention of this function. Seamus On Thu, 6 Nov 2003, Norman Vine wrote: Seamus Thomas Carroll writes: Is it possible to determine

Re: [Flightgear-devel] loading 3D objects

2003-11-04 Thread Seamus Thomas Carroll
. Seamus On Tue, 4 Nov 2003, Innis Cunningham wrote: Hi Seamus Am I reading you right that you have got AC3D 4.0 to create models without giving a fatal error in FG. If so how as I went back to my previous copy untill the problem is solved Seamus Thomas Carroll I am loading the objects

Re: [Flightgear-devel] loading 3D objects

2003-11-03 Thread Seamus Thomas Carroll
OK, I will try it out. I did not notice that this was heavily talked about last week. I searched google but it does not know about these pages yet. Seamus On Mon, 3 Nov 2003, Andy Ross wrote: Seamus Thomas Carroll wrote (on flightgear-devel): I am trying to load a 3D object using

Re: [Flightgear-devel] [Repost] Simulating ground activity (fwd)

2003-11-03 Thread Seamus Thomas Carroll
visible. Is there any advice on this topic? Seamus On Thu, 23 Oct 2003, Seamus Thomas Carroll wrote: This is great, thanks for the reply. I have now started and will be asking questions as needed. What is the best way to create a simple vehicle taking into account I have no experience

Re: [Flightgear-devel] [Repost] Simulating ground activity (fwd)

2003-11-03 Thread Seamus Thomas Carroll
I just found the bug. DoGroundElev obtains a value in meters but the update in FGAIEntity expects a value in feet. I fixed the units and now the models are viewing correctly. Does anyone know why the code needs to feet and meters? Seamus On Mon, 3 Nov 2003, David Culp wrote: I am

Re: [Flightgear-devel] [Repost] Simulating ground activity (fwd)

2003-10-23 Thread Seamus Thomas Carroll
This is great, thanks for the reply. I have now started and will be asking questions as needed. What is the best way to create a simple vehicle taking into account I have no experience with graphics? Seamus On Thu, 23 Oct 2003, David Luff wrote: On 10/22/03 at 12:41 PM Seamus Thomas

[Flightgear-devel] [Repost] Simulating ground activity (fwd)

2003-10-22 Thread Seamus Thomas Carroll
level. Thanks for reading this far, Seamus -- Forwarded message -- Date: Mon, 20 Oct 2003 11:59:30 -0600 (MDT) From: Seamus Thomas Carroll [EMAIL PROTECTED] Reply-To: FlightGear user discussions [EMAIL PROTECTED] To: FlightGear user discussions [EMAIL PROTECTED] Subject: [Flightgear

RE: [Flightgear-devel] Understanding Autopilot and other topicsinflightgear

2003-10-20 Thread Seamus Thomas Carroll
2003, Norman Vine wrote: Seamus Thomas Carroll writesL Hi, I am trying to add a waypoint using the following code: SGWayPoint *wp = new SGWayPoint( 49.390545, -121.438942, 4000, SGWayPoint::WGS84, HOPE ); globals-get_route()-add_waypoint( *wp ); This looks OK. The waypoint

[Flightgear-devel] Understanding Autopilot and other topics in flightgear

2003-10-09 Thread Seamus Thomas Carroll
Hi, I now have flightgear running with the latest CVS and have a good understanding on how to use the program. I am now into coding in Flightgear. I have added to menubar.xml and have bound the commands to some functions I have created. I am now working on creating the autonomous flying

[Flightgear-devel] Flightgear CVS undefinded reference error

2003-10-06 Thread Seamus Thomas Carroll
Hi, I have just installed the latest CVS of Simgear and am now trying to install flightgear from the CVS tarball. I am recieving the error: /scratch/simgear//lib/libsgsky.a(cloud.o): In function `SGCloudLayer::draw(void)': /scratch/simgear/SimGear/simgear/scene/sky/cloud.cxx:453: undefined

[Flightgear-devel] Flightgear and Simgear CVS compile problems

2003-10-01 Thread Seamus Thomas Carroll
When trying to compile the CVS of flightgear or simgear I recieve a missing seperator error. I think I have installed the latest CVS of plib correctly but it does not seem to make a difference in the error. Simgear error: Making all in src-libs make[1]: Entering directory