Re: [Flightgear-devel] Controls

2005-06-06 Thread Erik Hofman
Todd L. Peters wrote: I have a couple questions regarding flightgear, please correct me if this is not the appropriate forum for these questions. 1. I want to set up a model utilizing more than one joystick and I want the second joystick to direct certain parameters in JSBsim. Can I configure

Re: [Flightgear-devel] Controls

2005-06-06 Thread Curtis L. Olson
Erik Hofman wrote: 2. Has anyone interfaced actual hardware, i.e. switches, etc. with flightgear? Again, are there any references for this? Yep, it has been done. No there is no single solution. However there is a network interface which could be used for this. The header files are also

Re: [Flightgear-devel] Controls

2005-06-06 Thread John Wojnaroski
2. Has anyone interfaced actual hardware, i.e. switches, etc. with flightgear? Again, are there any references for this? Adding to what Curtis has said. There is no standard per se regards connecting custom hardware to FlightGear. Off-the-shelf stuff like joysticks, throttle quadrants,

Re: [Flightgear-devel] controls-bind()

2003-04-02 Thread Gerhard Wesp
strstream would do the trick, but not all compilers support it yet. Note that strstream is *deprecated* in C++, one should use stringstreams (sstream) instead. No danger of overflowing any buffers there. Cf. Josuttis, The C++ Standard Library, Section 13.11.2. AFAIK, every major platform now

Re: [Flightgear-devel] controls-bind()

2003-04-02 Thread Erik Hofman
Gerhard Wesp wrote: strstream would do the trick, but not all compilers support it yet. Note that strstream is *deprecated* in C++, one should use stringstreams (sstream) instead. No danger of overflowing any buffers there. Cf. Josuttis, The C++ Standard Library, Section 13.11.2. AFAIK, every

Re: [Flightgear-devel] controls-bind()

2003-04-02 Thread Bernie Bright
On Wed, 02 Apr 2003 10:58:21 +0200 Erik Hofman [EMAIL PROTECTED] wrote: Gerhard Wesp wrote: strstream would do the trick, but not all compilers support it yet. Note that strstream is *deprecated* in C++, one should use stringstreams (sstream) instead. No danger of overflowing any

Re: [Flightgear-devel] controls-bind()

2003-04-02 Thread Frederic BOUVIER
Bernie Bright wrote : STLport has sstream but I doubt if it could be extracted as a stand alone file. Have you (Erik) tried STLport on your system? If it works then we probably wouldn't need the simgear compatibility stuff anymore. Note that MSVC6 does not have sstream while I think VC7

Re: [Flightgear-devel] controls-bind()

2003-04-02 Thread Erik Hofman
Bernie Bright wrote: STLport has sstream but I doubt if it could be extracted as a stand alone file. Have you (Erik) tried STLport on your system? If it works then we probably wouldn't need the simgear compatibility stuff anymore. If it did work, I wouldn't have tried generating simething like

Re: [Flightgear-devel] controls-bind()

2003-04-02 Thread Gerhard Wesp
Note that MSVC6 does not have sstream while I think VC7 does. Correct. I guess MSVC6 is the only platform which doesn't have sstream? Is there any specific reason why FG has to support a compiler more than 5 years old? Regards, -Gerhard -- | voice: +43 (0)676 6253725 *** web:

Re: [Flightgear-devel] controls-bind()

2003-04-01 Thread Erik Hofman
Curtis L. Olson wrote: I tracked down my crash to controls-bind() There you will find a plethora of places where the code is sprintf'ing to a char[32] array, but the contents is often longer than 32 bytes. Might not have been crashing everyone else (building with -g?) but it was crashing with

Re: [Flightgear-devel] controls-bind()

2003-04-01 Thread David Megginson
Erik Hofman writes: Is there still no replacement function to do this kind of operation in a C++ string? strstream would do the trick, but not all compilers support it yet. All the best, David -- David Megginson, [EMAIL PROTECTED], http://www.megginson.com/

Re: [Flightgear-devel] /controls/parking-brake

2002-04-16 Thread Julian Foad
David Megginson wrote: Frederic Bouvier writes: MSVC has no 'fmax' function. 'max' is ok (a macro !). Hmm -- max won't work under GCC because it's an inlined function. Heh? You mean the inlined (templated) max function from algorithm/stl_algobase.h? What's wrong with that? It is

Re: [Flightgear-devel] /controls/parking-brake

2002-04-11 Thread Jim Wilson
David Megginson [EMAIL PROTECTED] said: I've added a new property, /controls/parking-brake (also available through FGControls). For both JSBSim and the YASim C172, this property overrides the toe brakes for the main gear (actually, for YASim, it is just added then clamped). The 'B' key

Re: [Flightgear-devel] /controls/parking-brake

2002-04-11 Thread Frederic Bouvier
From: David Megginson [EMAIL PROTECTED] I've added a new property, /controls/parking-brake (also available through FGControls). For both JSBSim and the YASim C172, this property overrides the toe brakes for the main gear (actually, for YASim, it is just added then clamped). in JSBSim.cxx,

Re: [Flightgear-devel] /controls/parking-brake

2002-04-11 Thread David Megginson
Frederic Bouvier writes: MSVC has no 'fmax' function. 'max' is ok (a macro !). Hmm -- max won't work under GCC because it's an inlined function. I guess I'll have to write out the comparison. All the best, David -- David Megginson [EMAIL PROTECTED]