-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
0002-patch-for-n66-subpnt.c-windows.patch
41 lines (33 loc) · 1.29 KB
/
0002-patch-for-n66-subpnt.c-windows.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From 56646633e7f2026fa745912d891af196d3d1962a Mon Sep 17 00:00:00 2001
From: Andrew Annex <[email protected]>
Date: Sun, 11 Apr 2021 18:28:26 -0400
Subject: [PATCH 1/2] patch for n66 subpnt.c windows
---
cspice/src/cspice/subpnt.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/cspice/src/cspice/subpnt.c b/cspice/src/cspice/subpnt.c
index b04fe98..f04630a 100644
--- a/cspice/src/cspice/subpnt.c
+++ b/cspice/src/cspice/subpnt.c
@@ -2095,6 +2095,13 @@ static integer c__3 = 3;
/* $ Version */
+/* - SPICELIB Version 2.1.0, 25-OCT-2017 (NJB) */
+
+/* Bug fix: TRGEPC is now initialized prior to first use. */
+/* Previously the lack of initialization could cause this routine */
+/* to fail to find DSK data within the time bounds of a DSK */
+/* segment. */
+
/* - SPICELIB Version 2.0.0, 04-APR-2017 (NJB) */
/* Added FAILED tests. */
@@ -2504,6 +2511,10 @@ static integer c__3 = 3;
vminus_(tpos, obspos);
+/* Make a first estimate of the target epoch. */
+
+ *trgepc = *et + s * lt;
+
/* Find the sub-observer point given the target epoch, */
/* observer-target position, and target body orientation we've */
/* already computed. If we're not using light time correction, this */
--
2.28.0