-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1) Added an initial implementation of Graphical Analysis for LVD. 2) Cleaned up a few files with incorrect header comments here and there.
- Loading branch information
Showing
18 changed files
with
1,308 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -237,5 +237,4 @@ | |
depVarValue = ma_OutboundHyperVelVectTask(subLog(i,:), 'mag', celBodyData); | ||
depVarUnit = 'km/s'; | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,5 +72,4 @@ | |
taskList{end+1} = 'Hyperbolic Velocity Magnitude'; | ||
|
||
taskList = setdiff(taskList,excludeList); | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
helper_methods/ksptot_ma/gui/substituteDefaultPropNamesWithCustomNamesInDepVarListbox.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
helper_methods/ksptot_ma/launch_vehicle_designer/process_data/lvd_SteeringAngleTask.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
function datapt = lvd_SteeringAngleTask(stateLogEntry, subTask) | ||
%lvd_SteeringAngleTask Summary of this function goes here | ||
% Detailed explanation goes here | ||
|
||
ut = stateLogEntry.time; | ||
rVect = stateLogEntry.position; | ||
vVect = stateLogEntry.velocity; | ||
bodyInfo = stateLogEntry.centralBody; | ||
|
||
[rollAngle, pitchAngle, yawAngle] = stateLogEntry.attitude.getEulerAngles(ut, rVect, vVect, bodyInfo); | ||
[bankAng,angOfAttack,angOfSideslip] = stateLogEntry.attitude.getAeroAngles(rVect, vVect); | ||
|
||
switch subTask | ||
case 'roll' | ||
datapt = rad2deg(rollAngle); | ||
case 'pitch' | ||
datapt = rad2deg(pitchAngle); | ||
case 'yaw' | ||
datapt = rad2deg(yawAngle); | ||
case 'bank' | ||
datapt = rad2deg(bankAng); | ||
case 'angleOfAttack' | ||
datapt = rad2deg(angOfAttack); | ||
case 'sideslip' | ||
datapt = rad2deg(angOfSideslip); | ||
|
||
end | ||
end |
50 changes: 50 additions & 0 deletions
50
helper_methods/ksptot_ma/launch_vehicle_designer/process_data/lvd_getDepVarValueUnit.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
function [depVarValue, depVarUnit, taskStr, refBodyInfo] = lvd_getDepVarValueUnit(i, subLog, taskStr, refBodyId, celBodyData, onlyReturnTaskStr) | ||
%lvd_getDepVarValueUnit Summary of this function goes here | ||
% Detailed explanation goes here | ||
|
||
if(~isempty(refBodyId)) | ||
refBodyInfo = getBodyInfoByNumber(refBodyId, celBodyData); | ||
else | ||
refBodyInfo = []; | ||
end | ||
|
||
% if(~isempty(oscId)) | ||
% otherSC = getOtherSCInfoByID(maData, oscId); | ||
% else | ||
% otherSC = []; | ||
% end | ||
% | ||
% if(~isempty(stnId)) | ||
% station = getStationInfoByID(maData, stnId); | ||
% else | ||
% station = []; | ||
% end | ||
|
||
if(onlyReturnTaskStr == true) | ||
depVarValue = NaN; | ||
depVarUnit = NaN; | ||
|
||
return; | ||
end | ||
|
||
switch taskStr | ||
case 'Yaw Angle' | ||
depVarValue = lvd_SteeringAngleTask(subLog(i), 'yaw'); | ||
depVarUnit = 'deg'; | ||
case 'Pitch Angle' | ||
depVarValue = lvd_SteeringAngleTask(subLog(i), 'pitch'); | ||
depVarUnit = 'deg'; | ||
case 'Roll Angle' | ||
depVarValue = lvd_SteeringAngleTask(subLog(i), 'roll'); | ||
depVarUnit = 'deg'; | ||
case 'Bank Angle' | ||
depVarValue = lvd_SteeringAngleTask(subLog(i), 'bank'); | ||
depVarUnit = 'deg'; | ||
case 'Angle of Attack' | ||
depVarValue = lvd_SteeringAngleTask(subLog(i), 'angleOfAttack'); | ||
depVarUnit = 'deg'; | ||
case 'SideSlip Angle' | ||
depVarValue = lvd_SteeringAngleTask(subLog(i), 'sideslip'); | ||
depVarUnit = 'deg'; | ||
end | ||
end |
14 changes: 14 additions & 0 deletions
14
helper_methods/ksptot_ma/launch_vehicle_designer/process_data/lvd_getGraphAnalysisTaskList.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
function [taskList] = lvd_getGraphAnalysisTaskList(excludeList) | ||
%ma_getGraphAnalysisTaskList Summary of this function goes here | ||
% Detailed explanation goes here | ||
taskList = ma_getGraphAnalysisTaskList(excludeList); | ||
|
||
taskList{end+1} = 'Yaw Angle'; | ||
taskList{end+1} = 'Pitch Angle'; | ||
taskList{end+1} = 'Roll Angle'; | ||
taskList{end+1} = 'Bank Angle'; | ||
taskList{end+1} = 'Angle of Attack'; | ||
taskList{end+1} = 'SideSlip Angle'; | ||
|
||
taskList = setdiff(taskList,excludeList); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+44.8 KB
kspTOT_MissionArchitect/LaunchVehicleDesigner/lvd_GraphicalAnalysisGUI.fig
Binary file not shown.
Oops, something went wrong.