Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rugged
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Orekit
Rugged
Commits
b662c7f4
Commit
b662c7f4
authored
11 years ago
by
Luc Maisonobe
Browse files
Options
Downloads
Patches
Plain Diff
Started implementation of direct localization ...
parent
7914c3e7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rugged-core/src/main/java/org/orekit/rugged/core/AbstractRugged.java
+16
-5
16 additions, 5 deletions
.../src/main/java/org/orekit/rugged/core/AbstractRugged.java
with
16 additions
and
5 deletions
rugged-core/src/main/java/org/orekit/rugged/core/AbstractRugged.java
+
16
−
5
View file @
b662c7f4
...
...
@@ -304,15 +304,26 @@ public abstract class AbstractRugged implements Rugged {
/** {@inheritDoc} */
@Override
public
GroundPoint
[]
directLocalization
(
String
sensorName
,
int
lineNumber
)
public
GroundPoint
[]
directLocalization
(
String
sensorName
,
double
lineNumber
)
throws
RuggedException
{
try
{
checkContext
();
final
Sensor
sensor
=
getSensor
(
sensorName
);
checkContext
();
// TODO: implement direct localization
throw
RuggedException
.
createInternalError
(
null
);
// select the sensor
final
Sensor
sensor
=
getSensor
(
sensorName
);
// find the spacecraft state when line is active
final
AbsoluteDate
date
=
referenceDate
.
shiftedBy
(
sensor
.
getDatationModel
().
getDate
(
lineNumber
));
final
PVCoordinates
pv
=
pvProvider
.
getPVCoordinates
(
date
,
shape
.
getBodyFrame
());
final
Attitude
attitude
=
aProvider
.
getAttitude
(
pvProvider
,
date
,
shape
.
getBodyFrame
());
// TODO: implement direct localization
throw
RuggedException
.
createInternalError
(
null
);
}
catch
(
OrekitException
oe
)
{
throw
new
RuggedException
(
oe
,
oe
.
getSpecifier
(),
oe
.
getParts
());
}
}
/** {@inheritDoc} */
...
...
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