Erik Hofman wrote:

Currently i wish to have some property values outputted out of the serial port and have some other property values inputted through the same serial port. How do i do that? Have two separate protocol files and configure them as in and out respectivesly to work over the same serial port?


Hmm, I never had that in mind. I don't think that would be possible, at least not in an interactive way. The generic protocol just sends data to the output port at regular intervals or reads data from the input port at regular intervals.


Hmmm, why wouldn't this work ... you can open up a single serial port and write to and read from it.

Another thing i would like to know is what are the minimal set of data i need to provide to allow me to define the state of the aircraft (these are my input values). Currently i can only input 6DOF (lat, lon, alt, roll, pitch, heading/yaw). Will this set of minimal input be sufficient to simulate the aircraft in GUI?


One place to look would be the native_fdm.cxx. Take a look at how that code takes a network packet and translates it into FG. For core flight dynamics stuff there is a set of function calls you need to make, but for everything else you just set property values.


Generally, if you are just using FlightGear as a visualization tool, you can just set position and orientation and you should see the world move past you as you'd expect. But if you add more data, you will start seeing things like instrument gauges, HUD, etc. come to life.

Regards,

Curt.

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


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

Reply via email to