Error in fganimate (line 24)
Mostra commenti meno recenti
hi,
I face an issue and don't find any solution of it. the code which i put in matlab is:
tdata = csvread('fg_log.csv',1,0);
% ts = [tdata(:,1) convang(tdata(:,[3 2]),'deg','rad') tdata(:,4) ...
% convang(tdata(:,5:7),'deg','rad')];
ts = timeseries([convang(tdata(:,[3 2]),'deg','rad') ...
tdata(:,4) convang(tdata(:,5:7),'deg','rad')],tdata(:,1));
h = fganimation;
h.TimeseriesSourceType = 'Timeseries';
h.TimeseriesSource = ts;
h.FlightGearBaseDirectory = 'C:\Program Files (x86)\FlightGear';
h.FlightGearVersion = '0.9.10';
h.GeometryModelName = 'c172p';
h.DestinationIpAddress = '127.0.0.1';
h.DestinationPort = '5502';
h.AirportId = 'KSFO';
h.RunwayId = '01R';
h.InitialAltitude = 6;
h.InitialHeading = 10;
h.OffsetDistance = 0;
h.OffsetAzimuth = 0;
h.TimeScaling = 5;
get(h)
% GenerateRunScript(h)
system('runfg.bat &');
play(h)
But show the below error and don,t run flight gear simulator.
Error in Aero.FlightGearAnimation/play
Error in fganimate (line 34)
play(h)
Please help me out.
MATLAB 2020b
Risposte (1)
Shams ur Rehman
il 15 Mar 2022
Spostato: Steve Miller
il 9 Mag 2023
0 voti
Categorie
Scopri di più su Aerospace Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!