SGP.NET icon indicating copy to clipboard operation
SGP.NET copied to clipboard

`clipToStartTime: false` does not work

Open VE3NEA opened this issue 1 year ago • 0 comments

The clipToStartTime: false parameter of GroundStation.Observe does not work, because the last term in the condition to walk back always evaluates to false:

if (!clipToStartTime && obs.Count > 0 && obs[0].Start == start)

This happens because obs[0].Start, computed in FindCrossingTimeWithinInterval, is between start-deltaTime and start, not exactly equal to start.

Suggested solution: replace == with <= in the if statement.

VE3NEA avatar Jul 04 '24 19:07 VE3NEA