Re: [Flightgear-devel] Configure errors

2005-02-07 Thread Erik Hofman
John Wojnaroski wrote:
Hi,
boy, this is my day for weird errors..
Finished installing gcc-3.4.3 and downloaded latest CVS versions of SimGear,
plib-1.8.4, and FlightGear
Built and installed plib; no problems, but
simgear configure reports wrong version when checking for plib-1.8.4
Maybe it's time to run autogen.sh again?
Erik
___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] STL help requested

2005-02-07 Thread Gerhard Wesp
On Fri, Feb 04, 2005 at 11:37:54PM +0100, Erik Hofman wrote:
 You could use qsort to sort the map just prior to using it:

No you cannot, neither is this necessary. std::map is always
maintained in sorted order.  For this it uses the comparision function
std::less or the one given in the template argument.  See Christian
Mayer's mail for details.

I recommend Nicolai Josuttis' book:  The C++ standard library.  A
tutorial and reference.  He also mentions another technique which could
be used to achive the desired behaviour:  Defining your own char_traits
char  class.  But IMO this is a bit awkward.

Cheers
-Gerhard
-- 
Gerhard Wesp o o   Tel.: +41 (0) 43 5347636
Bachtobelstrasse 56   |   http://www.cosy.sbg.ac.at/~gwesp/
CH-8045 Zuerich  \_/   See homepage for email address!

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


[Flightgear-devel] Mac joysticks

2005-02-07 Thread James Turner
I finally managed to get my FlightGear behaving itself last week - there are a few issues I want to investigate before I bring them up here, but one affected me almost immediately - the input code as it stands right now means Mac joysticks tend not to be recognised.

There are two issues: firstly, when support was added in the XML joystick definitions for platform specific axis / button identifiers, a case was added for 'mac' as well as 'unix' and 'windows' - but most (none?) of the joystick files actually use this tag. Now, one option is to go around adding 'mac' tags, but at least for my SideWinder, the OS-X axis / button assignments match the Unix ones. I would be prepared to bet a small sum of money that most of the time, the assignments are going to match ... but of course I can't be sure until Mac users with some of the existing joysticks test this. (Knowing what happens with the logitech and thrustmaster sticks would be interesting)

Anyway, I have a trivial patch to 'input.cxx' which adds in a fallback to 'unix' on OS-X; it works for me.

The second issue is probably my fault, since I did the original code to add joystick support to PLIB on OS-X (but various people have fixed bugs since then). The code that reports the device name is only using the Product ID, and not the manufacturer ID as well. Hence, on OS-X, the name returned for my joystick is 'SideWinder Precision 2 Joystick', whereas on Linux it would be 'Microsoft SideWinder Precision 2 Joystick'. Obviously this is breaking the config lookup logic.

I guess I should submit a patch to PLIB for this issue - in the short term I have just extended my joystick definition.

HH
James
--
That which does not kill me has poor aim___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Re: [Flightgear-devel] STL help requested

2005-02-07 Thread Gerhard Wesp
   bool operator()( const string x, const string y) const
   {
 return your ordering;
   }

Where your ordering can be written as

  std::lexicographical_compare
  ( x.begin() , x.end() , y.begin() , y.end() , ICAOcode_char_lt() )

where ICAOcode_char_lt implements the ``less than'' relation for the
individual characters for your ICAO codes:

struct ICAOcode_char_lt {

  bool operator()( char const x , char const y ) const {

// Numbers come after letters:
if( std::isalpha( x )  std::isdigit( y ) ) { return true ; }

// Upper-case only comparison:
return std::toupper( x )  std::toupper( y ) ;

  }

} ;

(hope this relation is transitive---please check!)

Cheers
-Gerhard
-- 
Gerhard Wesp o o   Tel.: +41 (0) 43 5347636
Bachtobelstrasse 56   |   http://www.cosy.sbg.ac.at/~gwesp/
CH-8045 Zuerich  \_/   See homepage for email address!

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


Re: [Flightgear-devel] Fun with the FAA DOF.

2005-02-07 Thread David Luff


On 31/01/2005 at 17:19 Chris Metzler wrote:

With building positions and heights from the FAA Digital Obstruction
File, and a few new buriable (thus, height-adjustable) models, here's
an approach into La Guardia Rwy 04, starting over Staten Island.

http://www.speakeasy.org/~cmetzler/KLGA_04_approach_001.jpg

thru

http://www.speakeasy.org/~cmetzler/KLGA_04_approach_023.jpg

Some highlights:

lower manhattan and downtown brooklyn start to come into view --
http://www.speakeasy.org/~cmetzler/KLGA_04_approach_003.jpg


That looks really, really good!  I think that having realistic default
buildings for US downtown areas will make a huge difference to how
newcomers percieve FlightGear - they're pretty major landmarks.  I'm
looking forward to seeing them propogate into the default scenery,
hopefully before v1.0 gets released.

Cheers - Dave


This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


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


[Flightgear-devel] Qt 4 will be GPLed for all supported systems

2005-02-07 Thread Christian Mayer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I've just read at the Heise Newsticker, that Trolltech is planning to
release the next version of Qt for all systems (including M$ Windows)
under it's dual license.

= We can start to use it!! :)

The attached text (including the reasons their marketing people see for
OSS to use it) was also posted there...

CU,
Christian



Dear Qt User/Qt Customer:

Trolltech is pleased to announce that we intend to make Qt 4 for
Windows
available under our successful dual licensing business model.  This
means that Open Source projects under the GNU GPL license will be
able
to target all major operating systems using Qt 4. We plan to release
the
Windows Open Source version of Qt at the same time as Qt 4.



What dual licensing means
=
Qt's dual licensing model is based on the principle of fair exchange.
If
you are using Qt commercially - that is, for creating proprietary
software for sale or use in a commercial setting - you must purchase
a
commercial license from Trolltech. Alternatively, if you wish to
write
Open Source software you can use the Open Source version of Qt,
released
under the GPL. If you use the Open Source version you must release
your
application and complete source code under the GPL as well.

This model has proven successful for a number of leading companies
such
as MySQL and Sleepycat, and has been important to the success of Qt
on
the X11 and Mac OS X platforms. For more information on Trolltechs
dual
licensing business model, visit
http://www.trolltech.com/company/model.html.


What this means for Trolltech customers
===
The need for customers to hold commercial licenses for all commercial
development will not change.

However, the extension of the dual license model to Windows will mean
that both the pool of available talent and the number of innovative
Qt-based applications on Windows will increase. Also we expect that
Open
Source users will contribute valuable feedback and quality assurance
for
the Windows version of Qt, just like our X11 and Mac users have in
the
past.

The commercial version of Qt will contain a number of product
elements
that only commercial license holders will have access to, including:

- - Trolltech support
- - The opportunity to purchase access to Qt Solutions
- - Commercial compiler support
- - Prebuilt Qt binaries (the GPL package is source only)
- - Commercial database drivers

Finally, we believe that Open Source users who have been exposed to
Qt
will choose the commercial version of Qt for their commercial work,
thus
boosting Trolltech's revenue and making more resources available for
development and improvement of the product.


What this means for the Open Source community
=
The Open Source movement has contributed huge amounts of innovative,
highly useful software. Numerous well-known Open Source projects such
as
Apache, Mozilla/Firefox and KDE have helped redefine the landscape of
computing and have propelled Open Source from a niche phenomenon into
a
mainstream movement.

By making Qt available under the GPL license on Windows, Trolltech
has
given cross-platform Open Source projects the option of jump-starting
their Windows development, using a mature, feature-rich framework
that
is consistent across platforms. Open Source developers can spend more
time developing and refining functionality and less time on fixing
and
debugging underlying architecture.


How Trolltech will enforce licensing

We depend on revenue from the commercial version of Qt in order to
develop and enhance new versions. It is therefore imperative that
users
of Qt understand our licensing and choose the correct license for
each
project. To determine which license you require, please visit
http://www.trolltech.com/products/qt/licensing.html, or contact a
Trolltech representative directly.

We kindly request our customers and users to ensure that they are in
possession of the appropriate number of commercial Qt licenses.

It is possible to find out if an application has been created using
Qt.
Trolltech is prepared to take steps against misuse of the Open Source
version for commercial development.


Availability, timing and further information

We plan to release the Windows Open Source version of Qt at the same
time as the final release of Qt 4.0.

For more information, please refer to the Windows Dual Licensing FAQ
on
http://www.trolltech.com/developer/faqs/duallicense.html

Best regards,
The Trolltech Team
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCB7ielhWtxOxWNFcRArtvAJwJB6iNXlAhwqsHvHT3Pz0ioyqYZwCeL3PE
64pWwTcBQnGVw1j/o1EXIz4=
=Idq2
-END PGP SIGNATURE-

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

[Flightgear-devel] Flightgear to demo 747 at Scale 3x.

2005-02-07 Thread Dave Martin
Just found this at http://www.linuxgames.com

Although the news story appears broken / mislinked, it states that someone 
will be demoing a full-scale 747 cockpit driven by FlightGear at Scale 3x 
this coming weekend.

Any idea who's hardware / project it is?

Dave Martin

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


Re: [Flightgear-devel] Flightgear to demo 747 at Scale 3x.

2005-02-07 Thread Erik Hofman
Dave Martin wrote:
Just found this at http://www.linuxgames.com
Although the news story appears broken / mislinked, it states that someone 
will be demoing a full-scale 747 cockpit driven by FlightGear at Scale 3x 
this coming weekend.

Any idea who's hardware / project it is?
It's the topmost item at Curt's weblog:
http://www.flightgear.org/~curt/
Erik
___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Flightgear to demo 747 at Scale 3x.

2005-02-07 Thread Dave Martin
On Monday 07 Feb 2005 20:18, Erik Hofman wrote:
 Dave Martin wrote:
  Just found this at http://www.linuxgames.com
 
  Although the news story appears broken / mislinked, it states that
  someone will be demoing a full-scale 747 cockpit driven by FlightGear at
  Scale 3x this coming weekend.
 
  Any idea who's hardware / project it is?

 It's the topmost item at Curt's weblog:

 http://www.flightgear.org/~curt/

 Erik

Thanks.

I hope it goes really well for them :-)

Dave Martin

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


Re: [Flightgear-devel] STL help requested

2005-02-07 Thread David Luff
Christian Mayer writes:


 The C++ Programming language 3rd ed. tells me:
 
 Basically you've got 2 options:
 
 1 - create a class with the  operator
 class IACOcode
 {
string the_code;
 }
 bool operator( const IACOcode a, const IACOcode b )
 {
   return your ordering;
 }
 mapIACOcode, ARP* apt_map;
 
 
 2 - create a custom sort order
 class IACOcode_compare
 {
 public:
   bool operator()( const string x, const string y) const
   {
 return your ordering;
   }
 }
 mapstring, ARP*, IACOcode_compare apt_map;
 
 
 Then you'll automatically get the desired result with your described lookup.
 

Thanks to everyone who replied.  I can see how to do it now, but unfortuanately 
it's now been complicated by the fact that the GPS unit appears to sometimes 
consider letters before numbers (forward prediction of airports), but sometime 
consider numbers before letters (scanning through the waypoint lists).  It 
seems that associative containers need the comparison operator specified at 
creation (for good reason when I think about it) so I guess I'll just carry on 
with my hack to avoid storing the data in memory twice.

Cheers - Dave

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


Re: [Flightgear-devel] Flightgear to demo 747 at Scale 3x.

2005-02-07 Thread Curtis L. Olson
Dave Martin wrote:
Just found this at http://www.linuxgames.com
Although the news story appears broken / mislinked, it states that someone 
will be demoing a full-scale 747 cockpit driven by FlightGear at Scale 3x 
this coming weekend.

Any idea who's hardware / project it is?
 

Yes, John Wojnaroski (retired military pilot and FG contributor), Jim 
Brennan (retired 747 pilot), Alex Perry (FG contributor, pilot, FAA 
safety inspector, phd, etc), and I will be at SCALE this coming weekend 
in the LA convention center.  John is building a full 747 cockpit 
simulator and basing his efforts largely on FlightGear, OpenGC, linux, 
and other open-source software.  If anyone else is in the area, please 
stop by and introduce yourself; we'd love to meet you.

There is a short note on my home page as Erik pointed out:
   http://www.flightgear.org/~curt/
There is also an entry on the FG events page:
   http://www.flightgear.org/events.html#scale05
Finally, there is a little bit larger description of the project with a 
few pictures here:

   http://www.flightgear.org/Projects/747-JW/
I hope to have a few more pictures and info after the event is 
finished.  John will be the first to point out the flaws and 
shortcomings of his sim (it's a lot of work to fully replicate a 747 
cockpit and he's not quite done yet.)  But to the average flight sim 
enthusiast or aviation enthusiast (and hopefully to the average linux 
geek) this is going to be a really awsome demo.  John has done some 
really impressive work with his cockpit both in software and hardware.

Regards,
Curt.
--
Curtis Olsonhttp://www.flightgear.org/~curt 
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:2f585eeea02e2c79d7b1d8c4963bae2d

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


Re: [Flightgear-devel] Flightgear to demo 747 at Scale 3x.

2005-02-07 Thread Ampere K. Hardraade
Please take some pictures and videos of the Expo.


Ampere

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


Re: [Flightgear-devel] Flightgear to demo 747 at Scale 3x.

2005-02-07 Thread Dave Martin
On Monday 07 Feb 2005 23:40, Curtis L. Olson wrote:

 Finally, there is a little bit larger description of the project with a
 few pictures here:

 http://www.flightgear.org/Projects/747-JW/

 I hope to have a few more pictures and info after the event is
 finished.  John will be the first to point out the flaws and
 shortcomings of his sim (it's a lot of work to fully replicate a 747
 cockpit and he's not quite done yet.)  But to the average flight sim
 enthusiast or aviation enthusiast (and hopefully to the average linux
 geek) this is going to be a really awsome demo.  John has done some
 really impressive work with his cockpit both in software and hardware.

 Regards,

 Curt.

Please take plenty of pictures :-)

Hope all goes well for you.

Dave Martin.

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