ChristopherRabotin / smd

Space Mission Design - A SPICE-enhanced continuous thrust interplanetary mission propagator and vizualizer
MIT License
27 stars 5 forks source link

Multiple calls to PropagateUntil fails #104

Closed ChristopherRabotin closed 7 years ago

ChristopherRabotin commented 7 years ago

The following code does not generate enough states:

            go func() {
                curDT := startDT
                for {
                    curDT = curDT.Add(10 * time.Second)
                    gonnaBreak := curDT.Equal(endDT)
                    mission.PropagateUntil(curDT, gonnaBreak)
                    if gonnaBreak {
                        break
                    }
                }
            }()

I don't know why.