Re: [Flightgear-devel] Re: [BUG] [PATCH] (announcement) throwing stale exceptions and missing copy ctor/assignment

2005-11-29 Thread Ladislav Michnovič
2005/11/28, Vassilii Khachaturov [EMAIL PROTECTED]:
 problems). For the other parts of the patch, it is still relevant.
 I'm going to rework it later by eliminating the above redundancy when
 I have time (probably this weekend).
That I was afraid of. That the new patch is on the way. ;-)

  If yes, how to test if it works well?

 Depends on what kind of testing you want to do. Either look at the
 exceptions thrown and try to induce each one of them, or probably
 just do the regular flying and see if it is still OK.
Flying is OK. But I'm not sure where I have to look for exceptions.
Into terminal?
I didn't see anything before, neither after the patch was applied.

 Also look  at the code and see if you find something obviously stupid that 
 I've
 overlooked.
 Please don't  rely on me. I'm totally beginner programer.

 linux/Pentium IV 32 bit.
So we have the same platform. So I didn't catch the point of

 Since you are running on a different platform than I do
 (I have the errno there), I would like to ask you to run the exception
 checking snippet in this thread and report the results, while I'm doing
 the final testing of the shortened patch.
 Regards Ladislav.

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Re: [BUG] [PATCH] (announcement) throwing stale exceptions and missing copy ctor/assignment

2005-11-28 Thread Ladislav Michnovič
So I'm unsure if it is a good idea to include those patches.
If yes, how to test if it works well?
BTW. Vassilij, what's your platform? I overlooked it, maybe. (Mine is
Linux on AMD 32bit)
 Regards Ladislav.

2005/11/26, Vassilii Khachaturov [EMAIL PROTECTED]:

 thanks for catching this one. I'll 1) go to sleep and hope that
 the flu will go away enough to get thinking sanely again 2) will try
 not to submit lengthy patches coded up when being sick before
 reviewing them myself being sane 3) re-read the BS book ASAP in
 case I forgot smth else out of C++

 V.


 ___
 Flightgear-devel mailing list
 Flightgear-devel@flightgear.org
 http://mail.flightgear.org/mailman/listinfo/flightgear-devel
 2f585eeea02e2c79d7b1d8c4963bae2d


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] [BUG] [PATCH] (announcement) throwing stale exceptions and missing copy ctor/assignment

2005-11-25 Thread Ladislav Michnovič
 Hello.
  I've tried to compile FG with this patches. But there is a problem
to compile it because
no errno is declared in those files.
I don't know, how it is mentioned, I'm not up to the code. I don't
know how to fix it cleanly. So please, can you post the correction?
 Thank you.

BTW. Paste the patch into the body of email is not good idea. I have
to edit it manualy, because tabs and some spaces were lost. I don't
know how, maybe it is a feature of gmail. I'd prefer an attached
file.

 Regards Ladislav.

+++ ../../SimGear/source/simgear/xml/easyxml.cxx
+   ex.setMessage(strerror(errno)); // FIXME may
be bogus with threads
  ^

+++ ../../SimGear/source/simgear/props/props_io.cxx
+   static sg_io_exception ex(, SimGear writeProperties());
+   ex.setMessage(strerror(errno)); // FIXME may be bogus with threads
  

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] FlightGear v0.0.9-pre3 xglobe licence issue

2005-11-11 Thread Ladislav Michnovič
2005/11/11, Erik Hofman [EMAIL PROTECTED]:

 There's one thing I really like to see solved preferably before 0.9.9
 (but it is a must for 1.0) and that's the sun/moon azimuth calculation
 code to be replaced.

 If you are talking about code from xglobe ( src/Time/sunpos.cxx,
moonpos.cxx) , which licence is quite problematic, I hope it would be
solved as soon as possible.  This licence issue causes that FG is not
included in box SuSE Linux.  If fixed, it can be distributed within
next SuSE release.
 Is it a problem to substitute the code with this
http://home.cs.tum.edu/~roalter/libAstronomy/ ?

 Regards Ladislav Michnovic.

 Erik

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Re: FlightGear v0.0.9-pre3 xglobe licence issue

2005-11-11 Thread Ladislav Michnovič
2005/11/11, Erik Hofman [EMAIL PROTECTED]:

 This is the reason why I proposed to release a patch:
 http://www.a1.nl/~ehofman/fgfs/download/sunpos.diff
Great work. Thanks, but there is still moonpos.cxx which needs to be replaced.

 Erik
I'd also prefer to have this new code in 0.9.9.
 Regards Ladislav.

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Ear Candy: intro.mp3

2005-11-11 Thread Ladislav Michnovič
So can be this mp3 be removed or substitued with wav (ogg)?
 Regards Ladislav.

2005/11/11, Erik Hofman [EMAIL PROTECTED]:

 FlightGear doesn't use OpenAL for MP3 playback. In fact, it isn't even
 supported.

 Erik

 ___
 Flightgear-devel mailing list
 Flightgear-devel@flightgear.org
 http://mail.flightgear.org/mailman/listinfo/flightgear-devel
 2f585eeea02e2c79d7b1d8c4963bae2d


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Re: Freeglut on SuSE 10.0

2005-11-10 Thread Ladislav Michnovič
Or just
rpm -e --nodeps freeglut
rpm -ihv  /path/freeglut-2.2-xxx.rpm
 Ladislav.

2005/11/10, Stefan Seifert [EMAIL PROTECTED]:
 Steve Knoblock wrote:

 I tried a suggestion on the SuSE forums to issue an yast -i
 package.rpm command, but nothing seemed to happen. No error, nothing
 was added to my Yast config as far as I can tell. I am uncomfortable
 (prefer to let Yast handle it) issuing an rpm command, but perhaps I
 should try that?
 
 

 You should definitely try it. Just issue
 rpm -Uvh --oldpackage freeglut-2.2.0-83.i586.rpm

 The options mean:
 -U upgrade an existing package
 -v verbose
 -h print a nice progress bar while installing
 --oldpackage install even if it is an older package

 Using yast will not work, because you are actually downgrading, which is
 something normally only users do, that are already comfortable with the
 system and know what they are doing.

 Nine

 ___
 Flightgear-devel mailing list
 Flightgear-devel@flightgear.org
 http://mail.flightgear.org/mailman/listinfo/flightgear-devel
 2f585eeea02e2c79d7b1d8c4963bae2d


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] uninitialized variables used

2005-10-18 Thread Ladislav Michnovič
2005/10/16, Erik Hofman [EMAIL PROTECTED]:

 Thanks for the patch Ladislav, I've committed a slightly modified
 version to CVS now.

 Erik
Not at all.
Just I am not sure about computing of geoc in src/Scenery/hitlist.cxx .
 Regards Ladislav.

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


[Flightgear-devel] Does anybody try compile FG with gcc 4.0?

2005-10-07 Thread Ladislav Michnovič
Hello.
Does anybody tried to compile FG with gcc 4.0? Did you encounter any
problems, serious warning like uninitialized variable is used?
 Best Regards Ladislav Michnovic.

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


[Flightgear-devel] mp3 intro

2005-10-03 Thread Ladislav Michnovič
Hello.
I want to ask if it is poissible to  substitute intro mp3 with wav or
ogg format.
Because of legal problems distributing the mp3 playing software in USA
with  linux distro, like SuSE LINUX, it will be fine if this only mp3
dissapears.

 Best Regards, Ladislav.

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


[Flightgear-devel] uninitialized variables used

2005-10-03 Thread Ladislav Michnovič
 Hello.
Using new gcc 4.0 I have some serios warnings about uninitialized
variables, that are used. I created a patch, but I have no idea if it
is possible to do it my way. Can you check this out please? It would
be great if it will be fixed in next release. The CVS doesn't differ
in this case from 0.9.8. Thanks.
 Best Regards Ladislav.
--- src/Cockpit/hud_rwy.cxx
+++ src/Cockpit/hud_rwy.cxx
@@ -352,6 +352,8 @@
 
 void runway_instr::drawArrow() {
 	Point3D ac,rwy;
+	memset(ac,0,sizeof(ac));
+	memset(rwy,0,sizeof(rwy));
 	ac.setlat(current_aircraft.fdm_state-get_Latitude_deg());
 	ac.setlon(current_aircraft.fdm_state-get_Longitude_deg());
 	rwy.setlat(runway._lat);
--- src/FDM/Balloon/BalloonSim.cpp
+++ src/FDM/Balloon/BalloonSim.cpp
@@ -201,8 +201,8 @@
 
 sgScaleVec3(fTotal, gravity_vector, mTotal);

-sgAddVec3(fTotal, fLift);
-sgAddVec3(fTotal, fFriction);
+//sgAddVec3(fTotal, fLift); //FIXME: uninitialized fLift 
+//sgAddVec3(fTotal, fFriction); //FIXME: uninitialized fFriction
 
 //claculate acceleration: a = F / m
 sgVec3 aTotal, vTotal, dTotal;
--- src/Scenery/hitlist.cxx
+++ src/Scenery/hitlist.cxx
@@ -530,6 +530,7 @@
 int this_hit = -1;
 int max_hit = -1;
 Point3D geoc;
+double *hit_elev_point;
 double hit_elev = -;
 double max_elev = -;
 Point3D sc(scenery_center[0], scenery_center[1], scenery_center[2]) ;
@@ -564,6 +565,8 @@
 
 if ( hit_elev  -9000 ) {
 *terrain_elev = hit_elev;
+	hit_elev_point=hit_list-get_point(this_hit);
+	geoc=Point3D(hit_elev_point[0],hit_elev_point[1],hit_elev_point[2]);
 *radius = geoc.radius();
 sgVec3 tmp;
 sgSetVec3(tmp, hit_list-get_normal(this_hit));
@@ -623,6 +626,7 @@
 int this_hit = -1;
 int max_hit = -1;
 Point3D geoc;
+double *hit_elev_point;
 double hit_elev = -;
 double max_elev = -;
 Point3D sc(scenery_center[0], scenery_center[1], scenery_center[2]) ;
@@ -657,6 +661,8 @@
 
 if ( hit_elev  -9000 ) {
 *terrain_elev = hit_elev;
+	hit_elev_point=hit_list-get_point(this_hit);
+geoc=Point3D(hit_elev_point[0],hit_elev_point[1],hit_elev_point[2]);
 *radius = geoc.radius();
 sgVec3 tmp;
 sgSetVec3(tmp, hit_list-get_normal(this_hit));
___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d