Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Daniel Bodmer
VTOL TCM
Commits
1e5638c8
Commit
1e5638c8
authored
May 13, 2022
by
Daniel Bodmer
Browse files
Upload New File
parent
2eeb8137
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
0 deletions
+73
-0
Code/generateManyGEPTS.m
Code/generateManyGEPTS.m
+73
-0
No files found.
Code/generateManyGEPTS.m
0 → 100644
View file @
1e5638c8
%**************************************************************************
% * Programmiersprache MATLAB
% * Dateiname: generateManyGEPTS.m
%
% * Initialisierung und Aufruf der TCM-Subroutinen
%
%
% ******************************** Inputs *********************************
% * Trajpoints: Struct-Variable mit Trajektoriendaten
% * minST: zeitlicher Mindestabstand zwischen zwei Datenpunkten [s]
%
%
% ******************************** Outputs ********************************
% * GEPTS: Matrix, die alle relevanten Informationen zur Darstellung
% * der Trajektorie mit Googlemaps beinhaltet
%
%
% * Einrichtung/Autoren: DLR-LY/F.Linke/B.Lhrs
% * Bearbeitungszustand: in Bearbeitung
% * Version: 1.0
% * Datum: 11032013
% * Letzte nderung: Kommentare hinzugefgt
%**************************************************************************
%**************************************************************************
%****************************Copyright (C) 2011****************************
%************DLR Deutsches Zentrum fuer Luft- und Raumfahrt e.V.***********
%************************German Aerospace Center e.V. *********************
%********************Institut fuer Lufttransportsysteme/*******************
%******************Institute of Air Transportation Systems*****************
%***************Tel. +49 531 295 3801, Fax: +49 531 295 2979***************
%
% www.dlr.de/ly
% www.tu-harburg.de/ilt
%
%* These coded instructions, statements, and computer programs contain****
%* unpublished proprietary information of the German Aerospace Center*****
%* e.V. and are protected by the copyright law. They may not be***********
%* disclosed to third parties or copied or duplicated in any form,********
%* in whole or in part, without the prior written consent of the German***
%* Aerospace Center e.V.**************************************************
%**************************************************************************
function
GEPTS
=
generateManyGEPTS
(
Trajpoints
,
minST
)
[
~
,
overall
]
=
size
(
Trajpoints
);
vorzeit
=
0
;
j
=
0
;
for
i
=
1
:
overall
% Fr alle Sampling Points
zeit
=
Trajpoints
(
i
)
.
SimTime
;
% Aktuelle Zeit
if
(
zeit
-
vorzeit
>=
minST
)
||
(
zeit
==
0
)
% Wenn Zeitdifferenz grer als minST ... nderungsvorschlag || i==1 || i==overall
j
=
j
+
1
;
% Zhler erhhen
matr
(
j
,
1
)
=
zeit
;
% Zeit speichern
matr
(
j
,
2
)
=
Trajpoints
(
i
)
.
poslat
;
% lat speichern
matr
(
j
,
3
)
=
Trajpoints
(
i
)
.
poslon
;
% lon speichern
matr
(
j
,
4
)
=
Trajpoints
(
i
)
.
h
;
% altitude speichern (Konvertierung in m)
matr
(
j
,
5
)
=
Trajpoints
(
i
)
.
course
;
% Kurs speichern
matr
(
j
,
6
)
=
Trajpoints
(
i
)
.
h
*
0
;
% Pitch speichern (nicht vorhanden daher NULL!)
matr
(
j
,
7
)
=-
1
*
Trajpoints
(
i
)
.
h
*
0
;
% Bank angle speichern (nicht vorhanden daher NULL!)
vorzeit
=
zeit
;
% Zeit zwischenspeichern
end
end
if
matr
(
j
,
1
)
~=
zeit
% Wenn letzter Datenpunkt nicht letztem Punkt in Trajpoints entspricht, dann wird dieser hinzugefgt
matr
(
j
+
1
,
1
)
=
Trajpoints
(
overall
)
.
SimTime
;
% Simtime
matr
(
j
+
1
,
2
)
=
Trajpoints
(
overall
)
.
poslat
;
% lat
matr
(
j
+
1
,
3
)
=
Trajpoints
(
overall
)
.
poslon
;
% lon
matr
(
j
+
1
,
4
)
=
Trajpoints
(
overall
)
.
h
;
% alt
matr
(
j
+
1
,
5
)
=
Trajpoints
(
overall
)
.
course
;
% Heading
matr
(
j
+
1
,
6
)
=
Trajpoints
(
i
)
.
h
*
0
;
% Pitch
matr
(
j
+
1
,
7
)
=-
1
*
Trajpoints
(
i
)
.
h
*
0
;
% Bank angle
end
GEPTS
=
matr
;
%endfunction
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment