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
8b775724
Commit
8b775724
authored
10 months ago
by
Clément Jonglez
Committed by
Clément Jonglez
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
use new PV and angular hermite interpolators
parent
eee53842
No related branches found
No related tags found
1 merge request
!8
Make rugged compatible with Orekit 12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/orekit/rugged/utils/SpacecraftToObservedBody.java
+13
-2
13 additions, 2 deletions
...ava/org/orekit/rugged/utils/SpacecraftToObservedBody.java
with
13 additions
and
2 deletions
src/main/java/org/orekit/rugged/utils/SpacecraftToObservedBody.java
+
13
−
2
View file @
8b775724
...
...
@@ -28,12 +28,15 @@ import org.orekit.rugged.errors.DumpManager;
import
org.orekit.rugged.errors.RuggedException
;
import
org.orekit.rugged.errors.RuggedMessages
;
import
org.orekit.time.AbsoluteDate
;
import
org.orekit.time.TimeInterpolator
;
import
org.orekit.utils.AngularDerivativesFilter
;
import
org.orekit.utils.CartesianDerivativesFilter
;
import
org.orekit.utils.ImmutableTimeStampedCache
;
import
org.orekit.utils.TimeStampedAngularCoordinates
;
import
org.orekit.utils.TimeStampedAngularCoordinatesHermiteInterpolator
;
import
org.orekit.utils.TimeStampedCache
;
import
org.orekit.utils.TimeStampedPVCoordinates
;
import
org.orekit.utils.TimeStampedPVCoordinatesHermiteInterpolator
;
/** Provider for observation transforms.
* @author Luc Maisonobe
...
...
@@ -123,9 +126,17 @@ public class SpacecraftToObservedBody implements Serializable {
final
TimeStampedCache
<
TimeStampedPVCoordinates
>
pvCache
=
new
ImmutableTimeStampedCache
<>(
pvInterpolationNumber
,
positionsVelocities
);
// set up the TimeStampedPVCoordinates interpolator
final
TimeInterpolator
<
TimeStampedPVCoordinates
>
pvInterpolator
=
new
TimeStampedPVCoordinatesHermiteInterpolator
(
pvInterpolationNumber
,
pvFilter
);
// set up the cache for attitudes
final
TimeStampedCache
<
TimeStampedAngularCoordinates
>
aCache
=
new
ImmutableTimeStampedCache
<>(
aInterpolationNumber
,
quaternions
);
// set up the TimeStampedAngularCoordinates Hermite interpolator
final
TimeInterpolator
<
TimeStampedAngularCoordinates
>
angularInterpolator
=
new
TimeStampedAngularCoordinatesHermiteInterpolator
(
aInterpolationNumber
,
aFilter
);
final
int
n
=
(
int
)
FastMath
.
ceil
(
maxDate
.
durationFrom
(
minDate
)
/
tStep
);
this
.
tStep
=
tStep
;
...
...
@@ -144,7 +155,7 @@ public class SpacecraftToObservedBody implements Serializable {
pvInterpolationDate
=
date
;
}
final
TimeStampedPVCoordinates
interpolatedPV
=
TimeStampedPVCoordinates
.
interpolate
(
pvInterpolationDate
,
pvFilter
,
pvInterpolator
.
interpolate
(
pvInterpolationDate
,
pvCache
.
getNeighbors
(
pvInterpolationDate
));
final
TimeStampedPVCoordinates
pv
=
interpolatedPV
.
shiftedBy
(
date
.
durationFrom
(
pvInterpolationDate
));
...
...
@@ -158,7 +169,7 @@ public class SpacecraftToObservedBody implements Serializable {
aInterpolationDate
=
date
;
}
final
TimeStampedAngularCoordinates
interpolatedQuaternion
=
TimeStampedAngularCoordinates
.
interpolate
(
aInterpolationDate
,
aFilter
,
angularInterpolator
.
interpolate
(
aInterpolationDate
,
aCache
.
getNeighbors
(
aInterpolationDate
).
collect
(
Collectors
.
toList
()));
final
TimeStampedAngularCoordinates
quaternion
=
interpolatedQuaternion
.
shiftedBy
(
date
.
durationFrom
(
aInterpolationDate
));
...
...
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