Hi all,
I have been trying to run FlightGear through a MATLAB/Simulink model with the dos command, and have been running into 2 key issues.
1) After starting the batch file from the MATLAB code, dos('runfg.bat'), FlightGear loads but the aircraft doesn't move even if the simulator isn't paused. The aircraft simply loads in the middle of the air and stays there.
2) After starting FlightGear from dos('runfg.bat'), I lose access to the MATLAB and Simulink windows of work. As a result, I can start FlightGear, but can not drive it with my Matlab/Simulink model.
Thank you in advance for any help!
Shown below is my batch file.
SET FG_ROOT=C:\Program Files\FlightGear\data
C:\"Program Files"\FlightGear\bin\fgfs.exe --aircraft=ASK21 --fdm=null --enable-auto-coordination --native-fdm=socket,in,30,localhost,5502,udp --uBody=30 --fog-disable --enable-clouds3d --start-date-lat=2004:06:01:09:00:00 --enable-sound --visibility=15000 --in-air --prop:/engines/engine0/running=true --disable-freeze --airport=KSFO --runway=01L --altitude=8000 --heading=0 --offset-distance=0 --offset-azimuth=0 --enable-rembrandt