Re: [Flightgear-users] Network Control of FG

2005-03-29 Thread Eric F Sorton
On Thu, Mar 24, 2005 at 03:24:01PM -0500, Jeff McBride wrote:
 I am looking into the possibility of using FlightGear as a simulator to 
 test flight control software that I am developing for a UAV (Unmanned 
 Aerial Vehicle) project. The idea is that I will take control values 
 (ailerons, throttle, etc) from the telemetry link and pass them to FG, 
 then take the resulting location, speed, etc. from FG and pass it back 
 to the UAV as if it were coming from the on-board GPS.

Sorry for the delayed response, I just noticed this thread yesterday and
wanted to talk to my employer before posting ...

We have had a similar setup working in our lab for over six monthes.  It is a
hardware-in-the-loop simulation for testing our UAV hardware and adaptive
autopilot.  I am hoping to get a paper out in late Summer (at AIAA's
[EMAIL PROTECTED]) which will cover the details.  I'll provide an overview
below.  If anyone is interested in more details, let me know.

 From what I can tell, FG has support for this kind of thing, but no 
 documentation of it. So, my question for the experts is what is the best 
 way to do this? I was going to try to use the generic network 
 interface, but as far as I can tell it doesn't support a bi-directional 
 link. Perhaps I can run two of these (one in, one out), but is there a 
 better way I should be looking at? There seem to be a lot of options.

Our hardware, an embedded computer running Linux, interfaces with sensors and
acuators via a serial port.  We wrote a small briding application which reads
the data from FlightGear using the native I/O (FGNetFDM and FGNetCtrls) and
translates the data to the same format as produced by the sensors (i.e. the
bridging application generates NMEA GPS packets).

As mentioned in the thread, the code is setup to read all available data from
the sockets and throw away all but the latest packet.  Once everything is
initialized, we can operate easily at 50Hz sending and receiving a single
packet to FG within the timeslice.

The controls packet contains quite a few fields and, in addition to the
expected aileron, elevator, rudder, and throttle, a few others are required.
I'd have to dig back through our code to see what we set if you are
interested.  All of the information you need to simulate your sensors should
be in the FDM packet; be careful with the units.

 Of course, my next problem will be creating a model of the plane I am 
 flying, but I am waiting until I get there to tackle that one.

Creating the model was definately the hardest task.  During initial testing,
we used the models available in Flightgear, mainly the Cub, as it was one of
the slowest flying airplanes.  We have since developed a working JSBSim
model of our R/C sized aircraft.  We should have some flight test data in
the next month which we will be able to compare to FlightGear to gauge how
accurate our model is.

Hope the information proved useful and as I mentioned above, if anyone is
interested in additional details, please let me know.

Eric

-- 
Eric F. Sorton [EMAIL PROTECTED]

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


Re: [Flightgear-users] problem in sending control data across the OS

2005-03-28 Thread Eric F Sorton
On Fri, Mar 25, 2005 at 05:33:47PM +0900, ? Keeyoung Choi wrote:
 I have a problem in sending control data from FG running on Windows (or
 Linux) to another FG on Linux (or Windows).  If I use UDP, the data are not
 transferred at all. For TCP/IP, the data are scrambled.
 
 I don't have any problem in exchanging the fdm data between the OS's.  
 
 Anyone have tried this?  Thanks in advance.

I tried this almost a year ago and experienced similar results.  I fixed my
problem by replacing Windows with Linux :-)

Eric

-- 
Eric F. Sorton [EMAIL PROTECTED]

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


Re: [Flightgear-users] Rotating the Display

2005-03-11 Thread Eric F Sorton
On Fri, Mar 11, 2005 at 04:34:43PM +, Jon Stockill wrote:
 Sorry to jump back to an ancient thread - but if you're using an nvidia 
 card, there's a new driver out today - and you may be interested in 
 Appendix W of the readme. It now supports the xrandr extension:

I'm not sure if I'd consider 2+ weeks ancient even in Internet time ... old
maybe, but not ancient :-)

 APPENDIX W: THE XRANDR X EXTENSION
 __
 
 X.org version X11R6.8.1 contains support for the rotation component of
 the XRandR extension.  This allows screens to be rotated at 90 degree
 increments.
 
 The driver supports rotation with the extension when 'Option 
 RandRRotation'
 is enabled in the X config file.
 
 Workstation RGB or CI overlay visuals will function at lower
 performance when RandRRotation is enabled.  The video overlay is
 not available when RandRRotation is enabled.

Thanks for the info.  I'll look into it.

I was still hoping to find a way to rotate the screen without using the X
driver.  The system I'm running FG on isn't your typical PC.  The official
flight simulator installed on the system doesn't require the X display to be
rotated.  FG is more of a side project that can't disturb the official
simulator, thus, I'm a bit limited on what I can do to the systems.

Thanks for the help,

Eric

-- 
Eric F. Sorton [EMAIL PROTECTED]

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


Re: [Flightgear-users] Rotating the Display

2005-02-23 Thread Eric F Sorton
On Wed, Feb 23, 2005 at 08:43:45AM -, Richard Bytheway wrote:
 If you are using a nVidia card on Windows, then the latest drivers support
 rotation of the screen at the driver level. The Linux driver may also do
 this, and I would hope that ATI would provide similar functionality.

I am using nVidia under Linux.  I do believe that the nVidia drivers under
Linux allow you to rotate the display, however, my past research showed that
hardware acceleration is disabled after the rotation.  This makes it useless
for FlightGear.  I am not sure if the same issue exists under Windows.  If
anyone is rotating the display under Linux through the nVidia drivers with
hardware acceleration, I'd love to hear how they do it.

Thanks for the info,

Eric

-- 
Eric F. Sorton [EMAIL PROTECTED]

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


Re: [Flightgear-users] Rotating the Display

2005-02-23 Thread Eric F Sorton
On Wed, Feb 23, 2005 at 03:12:12PM +0100, Arnt Karlsen wrote:
 ..this has been supported natiively for years in X11R6 (XFree86,
 X.org etc ) for at least all Linux distros (and I guess all Unix too) 
 I'm aware of, chk out Option Rotate string in ' man fbdev ' for
 details.

A quick search on Google turned up the following link:

http://www.nvidia.com/object/linux_readme_install.html

[...]
(app-d) APPENDIX D: XF86Config OPTIONS
[...]
Option Rotate CW
Option Rotate CCW
Rotate the display clockwise or counterclockwise.  This mode
forces NoAccel and SWCursor to both be TRUE.  Default: no
rotation.
[...]

The date at the top is May 14, 2001; a bit old.  I checked the latest README
installed with 6111 (the latest version I have handy), and it does not mention
the rotate option.  Can anyone confirm or deny that the hardware acceleration
under NVIDIA works with the hardware acceleration option?

I'd prefer to find a solution that does not involve mucking with the X config
if possible.

Any other suggestions are appreciated,

Eric

-- 
Eric F. Sorton [EMAIL PROTECTED]

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


[Flightgear-users] Rotating the Display

2005-02-22 Thread Eric F Sorton
Hi All,

Is there a way to rotate the display 90 degrees?  My monitor projects an
image 90.  I've played with /sim/current-view/roll-offset-deg.  It does rotate
the display, but something isn't quite right.  All is OK if the plane is
sitting still, but once you start to move, the view changes.

Any suggestions would be greatly appreciated,

Eric

-- 
Eric F. Sorton [EMAIL PROTECTED]

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