Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
483bf475
Commit
483bf475
authored
3 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
javadoc
parent
0a9c02d4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/edu/nps/moves/spatial/RangeCoordinates.java
+27
-9
27 additions, 9 deletions
src/edu/nps/moves/spatial/RangeCoordinates.java
with
27 additions
and
9 deletions
src/edu/nps/moves/spatial/RangeCoordinates.java
+
27
−
9
View file @
483bf475
...
...
@@ -334,6 +334,15 @@ public class RangeCoordinates
return
null
;
}
/**
*
* @param lat latitude, decimal degrees
* @param lon longitude, decimal degrees
* @param alt altitude meters
* @param bank bank angle, decimal degrees from level, positive is right bank
* @param pitch pitch angle, decimal degrees
* @param head heading angle, decimal degrees
*/
public
void
c
(
double
lat
,
double
lon
,
double
alt
,
double
bank
,
double
pitch
,
double
head
)
{
...
...
@@ -368,7 +377,6 @@ public class RangeCoordinates
System
.
out
.
println
(
"mW2LTSE_ori:"
+
mW2LTSE_ori
);
//OrientationTaitBryanAngles
// tbDIS_ori = new OrientationTaitBryanAngles(tbE2NED_ori.composeWith(tbE2NED_ori.composeWith(mW2LTSE_ori)).getTaitBryanAngles());
}
catch
(
SrmException
e
)
{
...
...
@@ -376,6 +384,15 @@ public class RangeCoordinates
}
}
/**
*
* @param localX coordinate
* @param localY coordinate
* @param localZ coordinate
* @param bank bank angle, decimal degrees from level, positive is right bank
* @param noseUp in LTSE: 0 + positive up angle from horizon
* @param bearing heading angle, clockwise from true north is positive
*/
public
void
change
(
double
localX
,
double
localY
,
double
localZ
,
double
bank
,
double
noseUp
,
double
bearing
)
{
...
...
@@ -385,14 +402,14 @@ public class RangeCoordinates
// bank, degrees from level, positive is right bank
// bearing to LTSE: 360 - bearing - 270 = yaw in LTSE
// noseUp in LTSE: 0 + positive up angle from horizon
// roll in
ltse
: -180 + bank angle
// roll in
LTSE
: -180 + bank angle
try
{
Coord3D
localLTSEPosition
=
localTangentSurfaceReferenceFrame
.
createCoordinate3D
(
localZ
,
localY
,
localZ
);
Coord3D
localLTSEOrigin
=
localTangentSurfaceReferenceFrame
.
createCoordinate3D
(
0.0
,
0.0
,
0.0
);
Coord3D
localLTSEOrigin
=
localTangentSurfaceReferenceFrame
.
createCoordinate3D
(
0.0
,
0.0
,
0.0
);
Coord3D
disPosition
=
disCoordinateReferenceFrame
.
createCoordinate3D
();
Coord3D
disOrigin
=
disCoordinateReferenceFrame
.
createCoordinate3D
();
Coord3D
disOrigin
=
disCoordinateReferenceFrame
.
createCoordinate3D
();
//Coord3D geodeticPosition = earthSurfaceReferenceFrame.createCoordinate3D(latitudeOrigin, longitudeOrigin, altitudeOrigin);
// changes the contents of disPosition to reflect the geocentric coordinates of the LTSE position
...
...
@@ -423,16 +440,16 @@ public class RangeCoordinates
localLTSEPosition
,
// Position, in LTSE coordinates
taitBryanDis
);
// output: the orientation in DIS ref frame
System
.
out
.
println
(
"orientation in DIS:"
+
taitBryanDis
.
toString
());
}
catch
(
SrmException
e
)
{
System
.
err
.
println
(
e
);
}
}
/** Command-line invocation (CLI)
* @param args command-line arguments
*/
public
static
void
main
(
String
args
[])
{
// x-axis intercept: prime meridian, equator, and zero altitude.
...
...
@@ -460,7 +477,8 @@ public class RangeCoordinates
{
try
{
// The x,y,z location of the platform in range coordinates (ie, the LTSE).
// The x,y,z location of the platform in range coordinates (ie, the LTSE).
// TODO unused??
Coord3D
lococenter
=
localTangentSurfaceReferenceFrame
.
createCoordinate3D
(
rangePositionCoordinates
.
getX
(),
rangePositionCoordinates
.
getY
(),
rangePositionCoordinates
.
getZ
());
...
...
@@ -476,6 +494,6 @@ public class RangeCoordinates
{
System
.
err
.
println
(
e
);
}
return
null
;
return
null
;
// TODO compute and return correct value
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment