Commit 54a53118 authored by Jesse Mapel's avatar Jesse Mapel
Browse files

Fixed SpicePosition and SpiceRotation not generating enough points when...

 Fixed SpicePosition and SpiceRotation not generating enough points when setting the poylnomial of the first time.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/branches/PiecewisePolynomials@8237 41f8697f-d340-4b68-9986-7bafba869bb8
parent 1c1a5484
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1034,7 +1034,7 @@ namespace Isis {
    requiredSamples *= 3;
    // If there are not enough samples, generate more
    if ( (int)p_cacheTime.size() < requiredSamples ) {
      double sampleRate = ( p_cacheTime.back() - p_cacheTime.front() ) / requiredSamples;
      double sampleRate = ( p_cacheTime.back() - p_cacheTime.front() ) / (requiredSamples - 1);
      for (int i = 0; i < requiredSamples; i++) {
        double sampleTime = p_cacheTime.front() + sampleRate * i;
        SetEphemerisTime( sampleTime );
+1 −1
Original line number Diff line number Diff line
@@ -1743,7 +1743,7 @@ namespace Isis {
    // If there are not enough samples, generate equally spaced samples times
    // based on the extents of the time cache
    if ( (int)p_cacheTime.size() < requiredSamples ) {
      double sampleRate = ( p_cacheTime.back() - p_cacheTime.front() ) / requiredSamples;
      double sampleRate = ( p_cacheTime.back() - p_cacheTime.front() ) / (requiredSamples - 1);
      for (int i = 0; i < requiredSamples; i++) {
        double sampleTime = p_cacheTime.front() + sampleRate * i;
        SetEphemerisTime( sampleTime );