Curtis L. Olson wrote:

Ryan Kellar wrote:

I am new to using FlightGear and am currently working on a project that involves a flight simulator with a Cessna cockpit and a screen that is divided into 3 sections in sort of a wrap around(not fully, but tilted to give a more panoramic view. Each board is displayed using a different projector run by three separate computers. Also, the cockpit controls are being read in as voltages to a separate computer. I am completely new to flight simulation and this software, and have some C++ software experience but never any software hardware integration so I’m a little lost. My questions are is there a way to display a simultaneous panoramic view using the three computers each running an instance of FlightGear and if so, how?


Yes, mutliple displays are well supported in FlightGear. There is a document called README.IO that touches on this. If you need more help, just ask. Note to document writers: this might be a good subject to add to the manual.

Also, how can I go about reading in the cockpit controls(which are now being read as voltage values) into the program to control the airplane?


How are the voltages being read? Is there some sort of circuit and/or board in your computer that senses the voltage?

A little more info on that topic would be helpful.


If your hardware already exists, then this is something you will likely have to figure out on your own. You will need to write some glue code that can read the voltage values and translate them into a control input position. FlightGear uses normalized control input positions so yoke, wheel, rudder pedals, etc. are mapped to [-1, 1]. Throttle, flaps, mixture, etc. are mapped to [0,1]. Once you are able to read in your voltage values and normalize them, it is pretty straightforward to send that data over to FlightGear. It's possible to embed some code into FlightGear, or you could just write a separate application that sends the data to FG over the network.


If you need some electronics to convert from analog to digital there are a number of products/boards to do the trick. Phidget now offers some boards that are supposed to work with Linux, you might check out www.opencockpits.org over in Spain (these are MS Windows based ATM), or www.lfstech.com (linux based) for more info on the topic. As Curt noted, you will then need some code to take the digital output of the boards and input that to the FG program.

Regards
John W.


_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to