Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Orekit Orekit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 76
    • Issues 76
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 17
    • Merge requests 17
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Orekit
  • OrekitOrekit
  • Issues
  • #663
Closed
Open
Created Mar 25, 2020 by mealta@mealta

PositionAngleDetector not initialized when using in ImpulseManeuver

When adding an ImpulseManeuver with a PositionAngleDetector as trigger to a propagator, a NullPointerException is raised.

Answered by @bryan

The problem is that the PositionAngleDetector is not initialized. Therefore, the offsetEstimators parameter of the PositionAngleDetector is not initialized too. That’s why you have a NullPointerException. I wonder if the init() method of the ImpulseManeuverDetector should call the init() method of the trigger parameter to make sure it is initialized. Something like:

/** {@inheritDoc} */
public void init(final SpacecraftState s0, final AbsoluteDate t) {
    trigger.init(s0, t);
    forward = t.durationFrom(s0.getDate()) >= 0;
}

Answered by @MaximeJ

I’m also wondering why we’re not calling super.init(s0, t) in ImpulseManeuver#init instead of repeating the line forward = t.durationFrom(s0.getDate()) >= 0;

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking