@saber-usa/node-common 1.7.7-alpha.1 → 1.7.7-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/astro.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saber-usa/node-common",
3
- "version": "1.7.7-alpha.1",
3
+ "version": "1.7.7-alpha.2",
4
4
  "description": "Common node functions for Saber",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/astro.js CHANGED
@@ -2744,7 +2744,7 @@ const detectManeuverMinDv = (initialTLE, finalTLE) => {
2744
2744
  *
2745
2745
  */
2746
2746
  const lambertThomsonAlgorithm
2747
- = (r1, r2, t, N, D = 0, v1Minus, mu = MU_SI, outOfPlaneError = 0) => {
2747
+ = (r1, r2, t, N, D = 0, v1Minus, mu = MU, outOfPlaneError = 0) => {
2748
2748
  // Out-Of-Plane error check
2749
2749
  const r1Mag = norm(r1);
2750
2750
  const r2Mag = norm(r2);
@@ -2938,7 +2938,7 @@ const lambertThomsonAlgorithm
2938
2938
  * @param {number} mu Gravitational parameter
2939
2939
  * @return {{v1: Array<number>, v2: Array<number>}} Initial and final velocity vectors
2940
2940
  */
2941
- const hodographVelocityAlgorithm = (r1, r2, t, v1Minus, theta, p, e, mu = MU_SI) => {
2941
+ const hodographVelocityAlgorithm = (r1, r2, t, v1Minus, theta, p, e, mu = MU) => {
2942
2942
  // Line 2: Define L180 (in meters)
2943
2943
  const L180 = 1.0;
2944
2944