I'm submitting a feature request
Describe the issue
I am using the Python interface to JSBSim. When I instantiate the object FGFDMExec like so:
PATH_TO_JSBSIM_FILES="../.." # I'm in jsbsim_root/examples/python
AIRCRAFT_NAME="c172x"
# Instantiate the FDMExec object and load the aircraft
fdm = jsbsim.FGFDMExec(PATH_TO_JSBSIM_FILES)
load_status = fdm.load_model(AIRCRAFT_NAME)
I do get access to the low-level FGPropagate object:
fg_propagate = fdm.get_propagate()
fg_propagate.get_uvw()
fg_propagate.get_Tec2b()
fg_propagate.get_Tl2b()
# fg_propagate.get_state() # not defined yet
but at the moment only the 3 above getter functions are available.
How to add the new getter function get_state() that will return a Python object corresponding to the public C++ struct FGPropagate::VehicleState?
In particular, I'm interested into getting the objects containing the state derivatives: dqPQRidot, dqUVWidot, dqInertialVelocity, dqQtrndot (stored as std::deque-s).
I'm submitting a feature request
Describe the issue
I am using the Python interface to JSBSim. When I instantiate the object
FGFDMExeclike so:I do get access to the low-level FGPropagate object:
but at the moment only the 3 above getter functions are available.
How to add the new getter function
get_state()that will return a Python object corresponding to the public C++ structFGPropagate::VehicleState?In particular, I'm interested into getting the objects containing the state derivatives:
dqPQRidot,dqUVWidot,dqInertialVelocity,dqQtrndot(stored asstd::deque-s).