Jon S. Berndt
2014-01-29 04:24:51 UTC
I am using JSBSim on a major aerospace program, and have recently gotten to
the point where using FlightGear to visualize the real-time flight
performance of the vehicle has been very beneficial. Since I am running
scripted flights in JSBSim with some code modifications that have not made
it into the JSBSim codebase, my best option is to drive FlightGear over a
socket interface. This is done using FlightGear's net_fdm interface,
implemented on the JSBSim side by Bertrand (if I recall correctly).
I've discovered, though, that there are some things I cannot do using that
approach. I would like to be able to move the control surfaces on the 3D
model of our vehicle, but they are not conventional surfaces and must be
addressed specifically. I can't find a way to make that work using the
net_fdm interface.
After a little bit of digging, I found the README.protocol file. I'm not
sure if that's what I want, or not, but it seems promising. As I understand
it, one may define in an XML file a set of data to be shipped to (or from)
FlightGear using named properties. I suppose there would have to be a
corresponding capability on the JSBSim side, using the same data structures.
Is there enough documentation somewhere that would permit the implementation
of such a capability on the JSBSim side?
Alternatively, it might be possible for me to use the existing control
surface variables in the net_fdm structure to send the needed data to
FlightGear, but the parameters would need to be manipulated on the
FlightGear side and then distributed to specific named properties
representing the control surfaces in the 3D model. Does that seem possible?
Thanks for your input.
Jon
the point where using FlightGear to visualize the real-time flight
performance of the vehicle has been very beneficial. Since I am running
scripted flights in JSBSim with some code modifications that have not made
it into the JSBSim codebase, my best option is to drive FlightGear over a
socket interface. This is done using FlightGear's net_fdm interface,
implemented on the JSBSim side by Bertrand (if I recall correctly).
I've discovered, though, that there are some things I cannot do using that
approach. I would like to be able to move the control surfaces on the 3D
model of our vehicle, but they are not conventional surfaces and must be
addressed specifically. I can't find a way to make that work using the
net_fdm interface.
After a little bit of digging, I found the README.protocol file. I'm not
sure if that's what I want, or not, but it seems promising. As I understand
it, one may define in an XML file a set of data to be shipped to (or from)
FlightGear using named properties. I suppose there would have to be a
corresponding capability on the JSBSim side, using the same data structures.
Is there enough documentation somewhere that would permit the implementation
of such a capability on the JSBSim side?
Alternatively, it might be possible for me to use the existing control
surface variables in the net_fdm structure to send the needed data to
FlightGear, but the parameters would need to be manipulated on the
FlightGear side and then distributed to specific named properties
representing the control surfaces in the 3D model. Does that seem possible?
Thanks for your input.
Jon